Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.y|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.y|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002176/0.002176, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.103/2.103, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 91.06 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2983/0.2983, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.698e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.3927, allocations: 58.86 MB / 477.1 MB, free: 5.242 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1682/0.5609, allocations: 92.13 MB / 0.5559 GB, free: 7.164 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.5612, allocations: 67.97 kB / 0.5559 GB, free: 7.098 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05868/0.6199, allocations: 12.7 MB / 0.5683 GB, free: 10.38 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.62, allocations: 3.938 kB / 0.5683 GB, free: 10.38 MB / 411.1 MB Notification: Performance of Transformations before backend: time 5.306e-05/0.62, allocations: 12 kB / 0.5684 GB, free: 10.36 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002318/0.6224, allocations: 0.8378 MB / 0.5692 GB, free: 9.461 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.6224, allocations: 12.03 kB / 0.5692 GB, free: 9.449 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002185/0.6227, allocations: 63.25 kB / 0.5692 GB, free: 9.387 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.6237, allocations: 432.3 kB / 0.5697 GB, free: 8.926 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.94e-05/0.6238, allocations: 12 kB / 0.5697 GB, free: 8.914 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.567e-05/0.6239, allocations: 28 kB / 0.5697 GB, free: 8.887 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008004/0.6247, allocations: 250.6 kB / 0.5699 GB, free: 8.641 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009443/0.6257, allocations: 370 kB / 0.5703 GB, free: 8.262 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.6257, allocations: 0 / 0.5703 GB, free: 8.262 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.654e-05/0.6258, allocations: 7.969 kB / 0.5703 GB, free: 8.254 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.6258, allocations: 8 kB / 0.5703 GB, free: 8.246 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003174/0.629, allocations: 1.051 MB / 0.5713 GB, free: 7.152 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.6306, allocations: 436.7 kB / 0.5717 GB, free: 6.715 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003808/0.631, allocations: 146.2 kB / 0.5719 GB, free: 6.57 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.462e-05/0.6311, allocations: 4.438 kB / 0.5719 GB, free: 6.566 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000615/0.6317, allocations: 245.7 kB / 0.5721 GB, free: 6.316 MB / 411.1 MB Notification: Performance of pre-optimization done (n=52): time 3.797e-06/0.6317, allocations: 0 / 0.5721 GB, free: 6.316 MB / 411.1 MB Notification: Performance of matching and sorting (n=52): time 0.001188/0.6329, allocations: 387.5 kB / 0.5725 GB, free: 5.93 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.296e-05/0.633, allocations: 136.9 kB / 0.5726 GB, free: 5.766 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008892/0.6339, allocations: 452.9 kB / 0.5731 GB, free: 5.32 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 8.572e-05/0.634, allocations: 37.7 kB / 0.5731 GB, free: 5.277 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.6343, allocations: 291.7 kB / 0.5734 GB, free: 4.988 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.6345, allocations: 114.6 kB / 0.5735 GB, free: 4.875 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.679e-05/0.6345, allocations: 0 / 0.5735 GB, free: 4.875 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.6347, allocations: 334.8 kB / 0.5738 GB, free: 4.539 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003953/0.6351, allocations: 129.1 kB / 0.5739 GB, free: 4.414 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/0.6356, allocations: 219.9 kB / 0.5741 GB, free: 4.176 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003645/0.636, allocations: 110.1 kB / 0.5742 GB, free: 4.07 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.636, allocations: 0 / 0.5742 GB, free: 4.07 MB / 411.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001302/0.6373, allocations: 407.7 kB / 0.5746 GB, free: 3.66 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.6374, allocations: 15.89 kB / 0.5746 GB, free: 3.645 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.6374, allocations: 0 / 0.5746 GB, free: 3.645 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001864/0.6376, allocations: 44.7 kB / 0.5747 GB, free: 3.598 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/0.638, allocations: 59.89 kB / 0.5747 GB, free: 3.539 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/0.6397, allocations: 1.376 MB / 0.5761 GB, free: 2.047 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007941/0.6406, allocations: 75.88 kB / 0.5762 GB, free: 1.973 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.222e-05/0.6406, allocations: 16 kB / 0.5762 GB, free: 1.957 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.u2,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002371/0.6409, allocations: 155.6 kB / 0.5763 GB, free: 1.805 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.641, allocations: 47.44 kB / 0.5764 GB, free: 1.758 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.6422, allocations: 425.4 kB / 0.5768 GB, free: 1.34 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.6423, allocations: 4 kB / 0.5768 GB, free: 1.336 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.6423, allocations: 0 / 0.5768 GB, free: 1.336 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.6423, allocations: 4 kB / 0.5768 GB, free: 1.332 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.6447, allocations: 0.9789 MB / 0.5777 GB, free: 312 kB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.6447, allocations: 0 / 0.5777 GB, free: 312 kB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.6451, allocations: 43.91 kB / 0.5778 GB, free: 268 kB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.084e-05/0.6451, allocations: 8 kB / 0.5778 GB, free: 260 kB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.56e-05/0.6451, allocations: 7.984 kB / 0.5778 GB, free: 252 kB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.6452, allocations: 0 / 0.5778 GB, free: 252 kB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.6452, allocations: 0 / 0.5778 GB, free: 252 kB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.6463, allocations: 0.4916 MB / 0.5783 GB, free: 15.74 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.6465, allocations: 144.4 kB / 0.5784 GB, free: 15.58 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.6467, allocations: 8 kB / 0.5784 GB, free: 15.57 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006824/0.6474, allocations: 67.92 kB / 0.5785 GB, free: 15.5 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/0.6476, allocations: 68.33 kB / 0.5785 GB, free: 15.44 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-05/0.6477, allocations: 19.98 kB / 0.5786 GB, free: 15.42 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0006565/0.6484, allocations: 338.9 kB / 0.5789 GB, free: 15.09 MB / 427.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6484, allocations: 0 / 0.5789 GB, free: 15.09 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0007751/0.6492, allocations: 107.9 kB / 0.579 GB, free: 14.98 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 (and1.u2,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,change1.u,fallingEdge.not_u,edge1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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 0.001191/0.6504, allocations: 399.7 kB / 0.5794 GB, free: 14.62 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.6517, allocations: 477.5 kB / 0.5798 GB, free: 14.15 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6517, allocations: 0 / 0.5798 GB, free: 14.15 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005346/0.6522, allocations: 193.6 kB / 0.58 GB, free: 13.96 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007553/0.653, allocations: 79.91 kB / 0.5801 GB, free: 13.89 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.6549, allocations: 0.7025 MB / 0.5808 GB, free: 13.16 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006051/0.6555, allocations: 0.8762 MB / 0.5816 GB, free: 12.26 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003396/0.6559, allocations: 55.41 kB / 0.5817 GB, free: 12.21 MB / 427.1 MB Notification: Performance of SimCode: time 8.72e-07/0.6559, allocations: 0 / 0.5817 GB, free: 12.21 MB / 427.1 MB Notification: Performance of Templates: time 0.01936/0.6753, allocations: 8.06 MB / 0.5896 GB, free: 4.141 MB / 427.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Logical/Logical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches