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.002308/0.002307, allocations: 180.6 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 90.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2737/0.2737, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.327e-05/3.33e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1213, allocations: 58.86 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4826/0.6039, allocations: 92.79 MB / 0.5634 GB, free: 10.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.6042, allocations: 68.88 kB / 0.5635 GB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05823/0.6625, allocations: 12.79 MB / 0.576 GB, free: 8 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6626, allocations: 15.86 kB / 0.576 GB, free: 15.99 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.234e-05/0.6626, allocations: 8 kB / 0.576 GB, free: 15.98 MB / 394.7 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.002212/0.6649, allocations: 0.8437 MB / 0.5768 GB, free: 15.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.6649, allocations: 12.03 kB / 0.5768 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002001/0.6651, allocations: 63.25 kB / 0.5769 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009742/0.6661, allocations: 417.9 kB / 0.5773 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-05/0.6662, allocations: 35.19 kB / 0.5773 GB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.6663, allocations: 42.8 kB / 0.5774 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.6674, allocations: 428.5 kB / 0.5778 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.6674, allocations: 0 / 0.5778 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.534e-05/0.6675, allocations: 21.67 kB / 0.5778 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.6675, allocations: 11.94 kB / 0.5778 GB, free: 14.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007876/0.6683, allocations: 272 kB / 0.5781 GB, free: 14.08 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003247/0.6716, allocations: 1.132 MB / 0.5792 GB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/0.6732, allocations: 464.7 kB / 0.5796 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004073/0.6737, allocations: 159.4 kB / 0.5798 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.234e-05/0.6737, allocations: 4.438 kB / 0.5798 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000679/0.6744, allocations: 261.8 kB / 0.58 GB, free: 12.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=52): time 5.991e-06/0.6744, allocations: 3.984 kB / 0.58 GB, free: 12.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=52): time 0.00128/0.6757, allocations: 415.7 kB / 0.5804 GB, free: 12.17 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.152e-05/0.6759, allocations: 138.1 kB / 0.5805 GB, free: 12.01 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009633/0.6768, allocations: 479 kB / 0.581 GB, free: 11.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.677, allocations: 43.64 kB / 0.581 GB, free: 11.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002182/0.6772, allocations: 287.4 kB / 0.5813 GB, free: 11.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.6774, allocations: 111.4 kB / 0.5814 GB, free: 11.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.921e-05/0.6774, allocations: 15.12 kB / 0.5814 GB, free: 11.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.6776, allocations: 333.7 kB / 0.5818 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004247/0.678, allocations: 144.5 kB / 0.5819 GB, free: 10.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005553/0.6786, allocations: 228.8 kB / 0.5821 GB, free: 10.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.679, allocations: 136.1 kB / 0.5822 GB, free: 10.61 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.679, allocations: 0 / 0.5822 GB, free: 10.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001382/0.6804, allocations: 445 kB / 0.5827 GB, free: 10.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.6804, allocations: 11.94 kB / 0.5827 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.6804, allocations: 4.062 kB / 0.5827 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001979/0.6806, allocations: 39.41 kB / 0.5827 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004585/0.6811, allocations: 58.59 kB / 0.5828 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.6828, allocations: 1.426 MB / 0.5842 GB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008179/0.6836, allocations: 85.72 kB / 0.5842 GB, free: 8.598 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-05/0.6837, allocations: 15.44 kB / 0.5843 GB, free: 8.586 MB / 394.7 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.0002417/0.684, allocations: 159.1 kB / 0.5844 GB, free: 8.441 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.6841, allocations: 51.42 kB / 0.5845 GB, free: 8.391 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.6854, allocations: 466.2 kB / 0.5849 GB, free: 8.062 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.6854, allocations: 8.062 kB / 0.5849 GB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.6854, allocations: 4 kB / 0.5849 GB, free: 8.051 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.6855, allocations: 3.984 kB / 0.5849 GB, free: 8.047 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002472/0.6879, allocations: 1.082 MB / 0.586 GB, free: 7.156 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.688, allocations: 3.984 kB / 0.586 GB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003373/0.6883, allocations: 39.91 kB / 0.586 GB, free: 7.113 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-05/0.6883, allocations: 4 kB / 0.586 GB, free: 7.109 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.008e-05/0.6884, allocations: 11 kB / 0.586 GB, free: 7.105 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.656e-06/0.6884, allocations: 7.984 kB / 0.586 GB, free: 7.098 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.6884, allocations: 0 / 0.586 GB, free: 7.098 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.6896, allocations: 0.5169 MB / 0.5866 GB, free: 6.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.6898, allocations: 149.2 kB / 0.5867 GB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.6899, allocations: 10.31 kB / 0.5867 GB, free: 6.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007175/0.6907, allocations: 73.31 kB / 0.5868 GB, free: 6.438 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002523/0.6909, allocations: 72.5 kB / 0.5868 GB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-05/0.691, allocations: 19.05 kB / 0.5869 GB, free: 6.363 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006711/0.6917, allocations: 358.7 kB / 0.5872 GB, free: 6.098 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6917, allocations: 0 / 0.5872 GB, free: 6.098 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007467/0.6925, allocations: 124.4 kB / 0.5873 GB, free: 5.992 MB / 394.7 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.001238/0.6937, allocations: 425 kB / 0.5877 GB, free: 5.633 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.6951, allocations: 0.4956 MB / 0.5882 GB, free: 5.246 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.6951, allocations: 0 / 0.5882 GB, free: 5.246 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005289/0.6956, allocations: 206.8 kB / 0.5884 GB, free: 5.105 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007281/0.6964, allocations: 87.97 kB / 0.5885 GB, free: 5.047 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.6983, allocations: 0.7205 MB / 0.5892 GB, free: 4.406 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005689/0.6989, allocations: 0.8835 MB / 0.5901 GB, free: 3.496 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003162/0.6992, allocations: 54.59 kB / 0.5901 GB, free: 3.445 MB / 394.7 MB Notification: Performance of SimCode: time 1.462e-06/0.6992, allocations: 0 / 0.5901 GB, free: 3.445 MB / 394.7 MB Notification: Performance of Templates: time 0.01865/0.7179, allocations: 8.081 MB / 0.598 GB, free: 11.43 MB / 410.7 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