Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 111.1 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1979/0.1979, allocations: 46.1 MB / 345 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 79.86 kB / 482 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2767, allocations: 62.44 MB / 0.5317 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004208/0.281, allocations: 2.858 MB / 0.5345 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002763/0.2837, allocations: 1.637 MB / 0.5361 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.2839, allocations: 6.875 kB / 0.5361 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000808/0.2847, allocations: 342.5 kB / 0.5364 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006136/0.2854, allocations: 288.8 kB / 0.5367 GB, free: 9.676 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007655/0.2861, allocations: 372.9 kB / 0.537 GB, free: 9.395 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006457/0.2868, allocations: 0.6752 MB / 0.5377 GB, free: 8.988 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003333/0.2871, allocations: 230.3 kB / 0.5379 GB, free: 8.848 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000366/0.2875, allocations: 295.8 kB / 0.5382 GB, free: 8.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003255/0.2878, allocations: 324.9 kB / 0.5385 GB, free: 8.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.641e-05/0.2879, allocations: 52.81 kB / 0.5386 GB, free: 8.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002293/0.2882, allocations: 120.5 kB / 0.5387 GB, free: 8.406 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001747/0.2884, allocations: 171.6 kB / 0.5388 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.2886, allocations: 286.9 kB / 0.5391 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006628/0.2893, allocations: 0.6841 MB / 0.5398 GB, free: 7.547 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2893, allocations: 8.969 kB / 0.5398 GB, free: 7.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2893, allocations: 0 / 0.5398 GB, free: 7.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.2893, allocations: 0 / 0.5398 GB, free: 7.539 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001858/0.2912, allocations: 1.026 MB / 0.5408 GB, free: 6.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.2912, allocations: 10.02 kB / 0.5408 GB, free: 6.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002286/0.2915, allocations: 80.36 kB / 0.5409 GB, free: 6.641 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005672/0.292, allocations: 452.2 kB / 0.5413 GB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.278e-05/0.2921, allocations: 37.73 kB / 0.5413 GB, free: 6.227 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.777e-05/0.2922, allocations: 49.91 kB / 0.5414 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009004/0.2931, allocations: 471.6 kB / 0.5418 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.2931, allocations: 9.109 kB / 0.5418 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.646e-05/0.2931, allocations: 21.09 kB / 0.5419 GB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2932, allocations: 9.156 kB / 0.5419 GB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007935/0.294, allocations: 328 kB / 0.5422 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.2959, allocations: 1.183 MB / 0.5433 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.2972, allocations: 0.494 MB / 0.5438 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004398/0.2977, allocations: 194.6 kB / 0.544 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.811e-05/0.2977, allocations: 14.2 kB / 0.544 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006802/0.2984, allocations: 344 kB / 0.5443 GB, free: 4.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=55): time 2.475e-06/0.2984, allocations: 0 / 0.5443 GB, free: 4.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.001566/0.3, allocations: 0.6375 MB / 0.545 GB, free: 3.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.3001, allocations: 169 kB / 0.5451 GB, free: 3.684 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005955/0.3007, allocations: 0.5452 MB / 0.5457 GB, free: 3.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.671e-05/0.3008, allocations: 45.7 kB / 0.5457 GB, free: 3.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.3009, allocations: 265.4 kB / 0.546 GB, free: 2.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.3011, allocations: 134.3 kB / 0.5461 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.3012, allocations: 122.3 kB / 0.5462 GB, free: 2.586 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.3014, allocations: 366.8 kB / 0.5466 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004327/0.3018, allocations: 173.2 kB / 0.5467 GB, free: 2.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.3023, allocations: 271.6 kB / 0.547 GB, free: 1.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007214/0.3031, allocations: 326.9 kB / 0.5473 GB, free: 1.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3031, allocations: 0 / 0.5473 GB, free: 1.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001022/0.3041, allocations: 0.4982 MB / 0.5478 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.3041, allocations: 11.98 kB / 0.5478 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.3041, allocations: 0 / 0.5478 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.3042, allocations: 4 kB / 0.5478 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/0.3045, allocations: 71.77 kB / 0.5479 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.3045, allocations: 4 kB / 0.5479 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003976/0.3049, allocations: 87.56 kB / 0.5479 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.25e-05/0.3049, allocations: 16 kB / 0.548 GB, free: 0.7188 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,timer.entryTime,$PRE.timer.entryTime,timer.u,triggeredTrapezoid.T,triggeredTrapezoid.rate,triggeredTrapezoid.endValue,onOffController.y,$PRE.onOffController.y,hysteresis.y,$PRE.hysteresis.y,logicalSwitch.y,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,lessEqual.y,less.y,greaterEqual.y,greater.y,lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,change1.y,change1.u,$PRE.change1.u,fallingEdge.not_u,$PRE.fallingEdge.not_u,fallingEdge.y,edge1.y,edge1.u,$PRE.edge1.u,pre1.y,pre1.u,$PRE.pre1.u,nand.y,nor.y,xor.y,and1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,$whenCondition4,$whenCondition5,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002525/0.3052, allocations: 222.9 kB / 0.5482 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.563e-05/0.3053, allocations: 55.28 kB / 0.5482 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.3054, allocations: 65.64 kB / 0.5483 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.3055, allocations: 11.98 kB / 0.5483 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.3055, allocations: 0 / 0.5483 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.3056, allocations: 136.3 kB / 0.5484 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.17e-05/0.3057, allocations: 15.98 kB / 0.5484 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003951/0.3061, allocations: 55.94 kB / 0.5485 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.3062, allocations: 76.34 kB / 0.5486 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001358/0.3076, allocations: 0.6901 MB / 0.5492 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001099/0.3087, allocations: 0.7474 MB / 0.55 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004748/0.3092, allocations: 239.4 kB / 0.5502 GB, free: 14.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003919/0.3096, allocations: 379.1 kB / 0.5506 GB, free: 14 MB / 414.1 MB Notification: Performance of Backend: time 2.8e-07/0.3096, allocations: 0 / 0.5506 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.3115, allocations: 0.6984 MB / 0.5512 GB, free: 13.45 MB / 414.1 MB Notification: Performance of SimCode: time 0.001528/0.3131, allocations: 1.321 MB / 0.5525 GB, free: 12.08 MB / 414.1 MB Notification: Performance of Templates: time 0.01307/0.3262, allocations: 8.346 MB / 0.5607 GB, free: 3.77 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches