Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 198.6 kB / 18.07 MB, free: 3.652 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.5 MB / 245.4 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007467/0.0007468, allocations: 98.48 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002016/0.0002016, allocations: 12 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.1807, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08198/0.2627, allocations: 77.89 MB / 486.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.2629, allocations: 75.95 kB / 486.6 MB, free: 13.63 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003318/0.2663, allocations: 1.459 MB / 488.1 MB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2663, allocations: 0.7812 kB / 488.1 MB, free: 12.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.2663, allocations: 4 kB / 488.1 MB, free: 12.17 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0003271/0.2666, allocations: 373 kB / 488.5 MB, free: 11.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.2667, allocations: 8.031 kB / 488.5 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.2667, allocations: 8.844 kB / 488.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001679/0.2669, allocations: 197.3 kB / 488.7 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.2669, allocations: 384 / 488.7 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.2669, allocations: 16.38 kB / 488.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.2673, allocations: 188.8 kB / 488.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.2673, allocations: 192 / 488.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.2673, allocations: 4.719 kB / 488.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2673, allocations: 4 kB / 488.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.892e-05/0.2674, allocations: 43.92 kB / 488.9 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003627/0.2678, allocations: 369.9 kB / 489.3 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001605/0.268, allocations: 119.8 kB / 489.4 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.022e-05/0.2681, allocations: 54.62 kB / 489.4 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.2681, allocations: 11.97 kB / 489.5 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.2681, allocations: 42.5 kB / 489.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.2681, allocations: 0 / 489.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003015/0.2684, allocations: 125.5 kB / 489.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.2685, allocations: 114.8 kB / 489.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.2686, allocations: 142.1 kB / 489.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.2686, allocations: 29.7 kB / 489.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.899e-05/0.2687, allocations: 88.67 kB / 490 MB, free: 10.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.2687, allocations: 15.83 kB / 490 MB, free: 10 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.2687, allocations: 7.938 kB / 490 MB, free: 9.996 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2688, allocations: 310.8 kB / 490.3 MB, free: 9.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.572e-05/0.2689, allocations: 19.98 kB / 490.3 MB, free: 9.664 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.093e-05/0.269, allocations: 81.44 kB / 490.4 MB, free: 9.551 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.2691, allocations: 114.4 kB / 490.5 MB, free: 9.406 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.2691, allocations: 4 kB / 490.5 MB, free: 9.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000184/0.2693, allocations: 117.4 kB / 490.6 MB, free: 9.281 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.2693, allocations: 4 kB / 490.6 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2693, allocations: 4 kB / 490.7 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2694, allocations: 7.984 kB / 490.7 MB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.963e-05/0.2694, allocations: 7.938 kB / 490.7 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2694, allocations: 352 / 490.7 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.003e-05/0.2694, allocations: 8 kB / 490.7 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.2695, allocations: 8 kB / 490.7 MB, free: 9.242 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.u,hold1.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.238e-05/0.2696, allocations: 134.7 kB / 490.8 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.2697, allocations: 85.53 kB / 490.9 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.541e-05/0.2697, allocations: 16.72 kB / 490.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2697, allocations: 0 / 490.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.2698, allocations: 0 / 490.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2698, allocations: 7.984 kB / 490.9 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002204/0.27, allocations: 189.6 kB / 491.1 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.27, allocations: 0 / 491.1 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.527e-05/0.27, allocations: 4 kB / 491.1 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.27, allocations: 0 / 491.1 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.27, allocations: 4 kB / 491.1 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.27, allocations: 3.984 kB / 491.1 MB, free: 8.742 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2701, allocations: 3.938 kB / 491.1 MB, free: 8.738 MB / 362.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7938:5-7938:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003346/0.2704, allocations: 342.2 kB / 491.5 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.478e-05/0.2705, allocations: 97 kB / 491.6 MB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.2705, allocations: 0 / 491.6 MB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.296e-05/0.2706, allocations: 12 kB / 491.6 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.767e-05/0.2706, allocations: 8.078 kB / 491.6 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.2706, allocations: 7.938 kB / 491.6 MB, free: 8.246 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.907e-05/0.2707, allocations: 105.9 kB / 491.7 MB, free: 8.145 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2707, allocations: 0 / 491.7 MB, free: 8.145 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002685/0.271, allocations: 12 kB / 491.7 MB, free: 8.133 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.832e-05/0.2711, allocations: 107.1 kB / 491.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001566/0.2712, allocations: 71.86 kB / 491.9 MB, free: 7.945 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2712, allocations: 0 / 491.9 MB, free: 7.945 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.388e-05/0.2713, allocations: 15.92 kB / 491.9 MB, free: 7.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004424/0.2717, allocations: 58.3 kB / 491.9 MB, free: 7.875 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000357/0.2721, allocations: 261.6 kB / 492.2 MB, free: 7.582 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.2724, allocations: 0.6965 MB / 492.9 MB, free: 6.859 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.976e-05/0.2724, allocations: 15.42 kB / 492.9 MB, free: 6.844 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2724, allocations: 0 / 492.9 MB, free: 6.844 MB / 362.7 MB Notification: Performance of Templates: time 0.00193/0.2743, allocations: 0.9773 MB / 493.9 MB, free: 5.867 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches