Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(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_trunk_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_trunk_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009649/0.000965, allocations: 197.7 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 226.5 MB / 244.1 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000814/0.0008139, allocations: 103.5 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3216/0.3216, allocations: 44.82 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000252/0.0002521, allocations: 11.98 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3043, allocations: 62.95 MB / 0.5165 GB, free: 36.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1137/0.418, allocations: 95.75 MB / 0.61 GB, free: 9.617 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/0.4183, allocations: 71.97 kB / 0.61 GB, free: 9.547 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03804/0.4563, allocations: 14.08 MB / 0.6238 GB, free: 11.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4563, allocations: 0 / 0.6238 GB, free: 11.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.836e-05/0.4564, allocations: 12 kB / 0.6238 GB, free: 11.43 MB / 442.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.001711/0.4581, allocations: 0.9429 MB / 0.6247 GB, free: 10.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4582, allocations: 12.03 kB / 0.6247 GB, free: 10.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.4584, allocations: 76.17 kB / 0.6248 GB, free: 10.33 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007246/0.4591, allocations: 458.7 kB / 0.6252 GB, free: 9.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.021e-05/0.4592, allocations: 33.38 kB / 0.6253 GB, free: 9.809 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.93e-05/0.4593, allocations: 44.38 kB / 0.6253 GB, free: 9.766 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008801/0.4602, allocations: 468.1 kB / 0.6258 GB, free: 9.289 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.4602, allocations: 4 kB / 0.6258 GB, free: 9.285 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.273e-05/0.4603, allocations: 23.98 kB / 0.6258 GB, free: 9.262 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.4603, allocations: 8 kB / 0.6258 GB, free: 9.254 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007948/0.4611, allocations: 347.7 kB / 0.6261 GB, free: 8.914 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.4634, allocations: 1.134 MB / 0.6272 GB, free: 7.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.4649, allocations: 0.4994 MB / 0.6277 GB, free: 7.227 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004241/0.4653, allocations: 198.1 kB / 0.6279 GB, free: 7.031 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-05/0.4654, allocations: 4.438 kB / 0.6279 GB, free: 7.023 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005965/0.466, allocations: 301.3 kB / 0.6282 GB, free: 6.715 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 3.387e-06/0.466, allocations: 0 / 0.6282 GB, free: 6.715 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.001511/0.4675, allocations: 0.6545 MB / 0.6288 GB, free: 6.059 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.004e-05/0.4676, allocations: 136.9 kB / 0.629 GB, free: 5.895 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006665/0.4683, allocations: 0.5289 MB / 0.6295 GB, free: 5.359 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.852e-05/0.4684, allocations: 49.7 kB / 0.6295 GB, free: 5.305 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.4686, allocations: 253.4 kB / 0.6298 GB, free: 5.051 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.4687, allocations: 118.5 kB / 0.6299 GB, free: 4.934 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.619e-05/0.4687, allocations: 8 kB / 0.6299 GB, free: 4.926 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.4689, allocations: 370.8 kB / 0.6302 GB, free: 4.555 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004172/0.4693, allocations: 181 kB / 0.6304 GB, free: 4.379 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004818/0.4698, allocations: 268.9 kB / 0.6307 GB, free: 4.094 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006958/0.4705, allocations: 321.2 kB / 0.631 GB, free: 3.766 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4705, allocations: 0 / 0.631 GB, free: 3.766 MB / 442.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009666/0.4715, allocations: 0.4905 MB / 0.6315 GB, free: 3.273 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.4715, allocations: 8 kB / 0.6315 GB, free: 3.266 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4716, allocations: 7.875 kB / 0.6315 GB, free: 3.258 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.4716, allocations: 7.938 kB / 0.6315 GB, free: 3.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.4719, allocations: 71.89 kB / 0.6316 GB, free: 3.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.4719, allocations: 4 kB / 0.6316 GB, free: 3.176 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003542/0.4722, allocations: 83.78 kB / 0.6316 GB, free: 3.094 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.4723, allocations: 16 kB / 0.6317 GB, free: 3.078 MB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * 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 0.0002871/0.4726, allocations: 218.9 kB / 0.6319 GB, free: 2.855 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.505e-05/0.4727, allocations: 51.34 kB / 0.6319 GB, free: 2.805 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.4738, allocations: 0.5328 MB / 0.6324 GB, free: 2.262 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.4738, allocations: 8 kB / 0.6324 GB, free: 2.254 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4738, allocations: 0 / 0.6324 GB, free: 2.254 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.4739, allocations: 0 / 0.6324 GB, free: 2.254 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.4758, allocations: 1.158 MB / 0.6336 GB, free: 1.039 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4758, allocations: 0 / 0.6336 GB, free: 1.039 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.476, allocations: 47.91 kB / 0.6336 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.476, allocations: 7.938 kB / 0.6336 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.659e-05/0.476, allocations: 20.05 kB / 0.6336 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4761, allocations: 0 / 0.6336 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4761, allocations: 0 / 0.6336 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.4771, allocations: 0.5892 MB / 0.6342 GB, free: 372 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.4772, allocations: 140.4 kB / 0.6344 GB, free: 212 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.926e-05/0.4773, allocations: 20 kB / 0.6344 GB, free: 192 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003463/0.4777, allocations: 67.94 kB / 0.6344 GB, free: 124 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.4778, allocations: 80.31 kB / 0.6345 GB, free: 40 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.708e-05/0.4779, allocations: 19.98 kB / 0.6345 GB, free: 20 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004441/0.4783, allocations: 363.1 kB / 0.6349 GB, free: 15.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4783, allocations: 0 / 0.6349 GB, free: 15.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0004696/0.4788, allocations: 139.8 kB / 0.635 GB, free: 15.53 MB / 458.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) * Number of clocked states: 0 () * 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.001007/0.4798, allocations: 471 kB / 0.6355 GB, free: 15.22 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.4809, allocations: 465.6 kB / 0.6359 GB, free: 14.76 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4809, allocations: 0 / 0.6359 GB, free: 14.76 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004939/0.4814, allocations: 246.4 kB / 0.6361 GB, free: 14.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005685/0.482, allocations: 97.89 kB / 0.6362 GB, free: 14.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.4836, allocations: 1.101 MB / 0.6373 GB, free: 13.29 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.484, allocations: 0.8724 MB / 0.6382 GB, free: 12.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.4842, allocations: 47.42 kB / 0.6382 GB, free: 12.33 MB / 458.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4842, allocations: 0 / 0.6382 GB, free: 12.33 MB / 458.7 MB Notification: Performance of Templates: time 0.009677/0.4938, allocations: 7.312 MB / 0.6453 GB, free: 5.043 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Logical/Logical.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches