Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001818/0.001817, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 221.5 MB / 230.7 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009373/0.0009373, allocations: 83.11 kB / 281.6 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2252/0.2252, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.467e-05/1.469e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 61.92 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3867/0.498, allocations: 93.64 MB / 0.5861 GB, free: 2.844 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.4983, allocations: 71.95 kB / 0.5862 GB, free: 2.773 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03656/0.5349, allocations: 12.95 MB / 0.5988 GB, free: 5.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.535, allocations: 4 kB / 0.5988 GB, free: 5.816 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.791e-05/0.535, allocations: 16 kB / 0.5988 GB, free: 5.801 MB / 410.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.001527/0.5365, allocations: 0.8455 MB / 0.5997 GB, free: 4.891 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.5366, allocations: 11.98 kB / 0.5997 GB, free: 4.879 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.5367, allocations: 67.25 kB / 0.5997 GB, free: 4.812 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006799/0.5374, allocations: 412.5 kB / 0.6001 GB, free: 4.367 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.825e-05/0.5375, allocations: 19.95 kB / 0.6002 GB, free: 4.348 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.35e-05/0.5375, allocations: 28 kB / 0.6002 GB, free: 4.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004877/0.538, allocations: 254.5 kB / 0.6004 GB, free: 4.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006304/0.5387, allocations: 366 kB / 0.6008 GB, free: 3.699 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.5387, allocations: 4 kB / 0.6008 GB, free: 3.695 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.5387, allocations: 3.984 kB / 0.6008 GB, free: 3.691 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.5388, allocations: 8 kB / 0.6008 GB, free: 3.684 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.5407, allocations: 1.055 MB / 0.6018 GB, free: 2.586 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000926/0.5417, allocations: 438.2 kB / 0.6022 GB, free: 2.148 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.5419, allocations: 142.2 kB / 0.6024 GB, free: 2.008 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.5419, allocations: 4.438 kB / 0.6024 GB, free: 2.004 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000408/0.5424, allocations: 244.5 kB / 0.6026 GB, free: 1.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 2.575e-06/0.5424, allocations: 0 / 0.6026 GB, free: 1.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008172/0.5432, allocations: 387.5 kB / 0.603 GB, free: 1.367 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.707e-05/0.5433, allocations: 144.9 kB / 0.6031 GB, free: 1.195 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005221/0.5438, allocations: 452.9 kB / 0.6036 GB, free: 0.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.5439, allocations: 37.7 kB / 0.6036 GB, free: 0.707 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.5441, allocations: 249.3 kB / 0.6038 GB, free: 468 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.5442, allocations: 114.5 kB / 0.6039 GB, free: 352 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.5442, allocations: 0 / 0.6039 GB, free: 352 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.5444, allocations: 370.7 kB / 0.6043 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/0.5446, allocations: 133.1 kB / 0.6044 GB, free: 15.84 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/0.5449, allocations: 227.8 kB / 0.6046 GB, free: 15.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001902/0.5451, allocations: 110.1 kB / 0.6047 GB, free: 15.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.5451, allocations: 0 / 0.6047 GB, free: 15.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007808/0.5459, allocations: 435.2 kB / 0.6052 GB, free: 15.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.546, allocations: 5.406 kB / 0.6052 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.546, allocations: 0 / 0.6052 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001383/0.5461, allocations: 36.83 kB / 0.6052 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002651/0.5464, allocations: 67.89 kB / 0.6053 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/0.5476, allocations: 1.384 MB / 0.6066 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003896/0.548, allocations: 75.91 kB / 0.6067 GB, free: 13.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.548, allocations: 20.05 kB / 0.6067 GB, free: 13.35 MB / 426.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.000155/0.5482, allocations: 138.2 kB / 0.6068 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.55e-05/0.5482, allocations: 47.44 kB / 0.6069 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000706/0.549, allocations: 433.2 kB / 0.6073 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.549, allocations: 4.094 kB / 0.6073 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.549, allocations: 3.984 kB / 0.6073 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.549, allocations: 4 kB / 0.6073 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.5504, allocations: 0.9751 MB / 0.6083 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5504, allocations: 0 / 0.6083 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.5506, allocations: 43.91 kB / 0.6083 GB, free: 11.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.5506, allocations: 3.953 kB / 0.6083 GB, free: 11.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.5506, allocations: 11.98 kB / 0.6083 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.5507, allocations: 4 kB / 0.6083 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5507, allocations: 0 / 0.6083 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006257/0.5513, allocations: 499.5 kB / 0.6088 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.5514, allocations: 136.4 kB / 0.6089 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.605e-05/0.5515, allocations: 15.94 kB / 0.6089 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003875/0.5519, allocations: 63.94 kB / 0.609 GB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.5521, allocations: 72.33 kB / 0.6091 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.542e-05/0.5521, allocations: 15.98 kB / 0.6091 GB, free: 10.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003966/0.5525, allocations: 338.9 kB / 0.6094 GB, free: 10.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5525, allocations: 0 / 0.6094 GB, free: 10.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005/0.553, allocations: 115.8 kB / 0.6095 GB, free: 10.37 MB / 426.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.0008347/0.5539, allocations: 385.7 kB / 0.6099 GB, free: 10.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007485/0.5546, allocations: 482.4 kB / 0.6103 GB, free: 9.574 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5546, allocations: 0 / 0.6103 GB, free: 9.574 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000287/0.5549, allocations: 201.5 kB / 0.6105 GB, free: 9.375 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004795/0.5554, allocations: 69.75 kB / 0.6106 GB, free: 9.309 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.5566, allocations: 0.65 MB / 0.6112 GB, free: 8.641 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000434/0.557, allocations: 0.8879 MB / 0.6121 GB, free: 7.727 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002509/0.5573, allocations: 71.42 kB / 0.6122 GB, free: 7.652 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.5575, allocations: 47.42 kB / 0.6122 GB, free: 7.605 MB / 426.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5575, allocations: 4 kB / 0.6122 GB, free: 7.602 MB / 426.7 MB Notification: Performance of Templates: time 0.01135/0.5688, allocations: 6.13 MB / 0.6182 GB, free: 1.504 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Logical/Logical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches