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.001007/0.001007, allocations: 114.9 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001043/0.001043, allocations: 214.8 kB / 19.41 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.202/0.202, allocations: 46.1 MB / 345 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 75.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.327, allocations: 62.44 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.003975/0.331, allocations: 2.861 MB / 0.5345 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002644/0.3337, allocations: 1.63 MB / 0.5361 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002046/0.3339, allocations: 10.31 kB / 0.5361 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008427/0.3347, allocations: 341.6 kB / 0.5364 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005824/0.3353, allocations: 288.4 kB / 0.5367 GB, free: 9.676 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007856/0.3361, allocations: 372.5 kB / 0.537 GB, free: 9.395 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006309/0.3368, allocations: 0.6794 MB / 0.5377 GB, free: 8.984 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003234/0.3371, allocations: 226.2 kB / 0.5379 GB, free: 8.848 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003756/0.3375, allocations: 294.8 kB / 0.5382 GB, free: 8.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003266/0.3378, allocations: 317.6 kB / 0.5385 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.701e-05/0.3379, allocations: 52.25 kB / 0.5385 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002453/0.3382, allocations: 128.3 kB / 0.5387 GB, free: 8.406 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.3383, allocations: 168 kB / 0.5388 GB, free: 8.281 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002442/0.3386, allocations: 294.2 kB / 0.5391 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007131/0.3393, allocations: 0.6815 MB / 0.5398 GB, free: 7.547 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3393, allocations: 0 / 0.5398 GB, free: 7.547 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3393, allocations: 3.938 kB / 0.5398 GB, free: 7.543 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.3393, allocations: 0 / 0.5398 GB, free: 7.543 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.001789/0.3411, allocations: 1.034 MB / 0.5408 GB, free: 6.676 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.3412, allocations: 10.27 kB / 0.5408 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002326/0.3414, allocations: 80.58 kB / 0.5409 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005504/0.342, allocations: 451.5 kB / 0.5413 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.715e-05/0.342, allocations: 37.25 kB / 0.5413 GB, free: 6.223 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.158e-05/0.3421, allocations: 46.19 kB / 0.5414 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008628/0.343, allocations: 477.1 kB / 0.5418 GB, free: 5.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.343, allocations: 4 kB / 0.5418 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.818e-05/0.3431, allocations: 24.2 kB / 0.5419 GB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.3431, allocations: 11 kB / 0.5419 GB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007854/0.3439, allocations: 327.5 kB / 0.5422 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.3457, allocations: 1.174 MB / 0.5433 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.3469, allocations: 0.4996 MB / 0.5438 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004307/0.3473, allocations: 198.4 kB / 0.544 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.683e-05/0.3474, allocations: 10.3 kB / 0.544 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006581/0.3481, allocations: 332.5 kB / 0.5443 GB, free: 4.188 MB / 398.1 MB Notification: Performance of pre-optimization done (n=55): time 2.354e-06/0.3481, allocations: 0 / 0.5443 GB, free: 4.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.001542/0.3496, allocations: 0.6443 MB / 0.545 GB, free: 3.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.934e-05/0.3497, allocations: 165.7 kB / 0.5451 GB, free: 3.688 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006299/0.3504, allocations: 0.5454 MB / 0.5457 GB, free: 3.164 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.849e-05/0.3504, allocations: 49.7 kB / 0.5457 GB, free: 3.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.3506, allocations: 261.4 kB / 0.546 GB, free: 2.848 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.3508, allocations: 130.3 kB / 0.5461 GB, free: 2.719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.3509, allocations: 122.3 kB / 0.5462 GB, free: 2.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3511, allocations: 366.8 kB / 0.5465 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004065/0.3515, allocations: 177.2 kB / 0.5467 GB, free: 2.051 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004623/0.3519, allocations: 275.6 kB / 0.547 GB, free: 1.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006648/0.3526, allocations: 330.9 kB / 0.5473 GB, free: 1.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3526, allocations: 0 / 0.5473 GB, free: 1.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.000986/0.3536, allocations: 0.4943 MB / 0.5478 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3537, allocations: 4 kB / 0.5478 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3537, allocations: 4 kB / 0.5478 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3537, allocations: 4 kB / 0.5478 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.354, allocations: 63.83 kB / 0.5478 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.354, allocations: 7.938 kB / 0.5479 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004028/0.3544, allocations: 99.48 kB / 0.5479 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.253e-05/0.3545, allocations: 16 kB / 0.548 GB, free: 0.7148 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.0002776/0.3548, allocations: 222.9 kB / 0.5482 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.729e-05/0.3548, allocations: 55.52 kB / 0.5482 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.355, allocations: 73.47 kB / 0.5483 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.355, allocations: 11.98 kB / 0.5483 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.355, allocations: 0 / 0.5483 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.3551, allocations: 132.3 kB / 0.5484 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.273e-05/0.3552, allocations: 16 kB / 0.5484 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.3556, allocations: 55.92 kB / 0.5485 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.3557, allocations: 76.34 kB / 0.5486 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001282/0.357, allocations: 0.6901 MB / 0.5492 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001077/0.3581, allocations: 0.7397 MB / 0.55 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004544/0.3586, allocations: 243.3 kB / 0.5502 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004253/0.359, allocations: 379.1 kB / 0.5506 GB, free: 14 MB / 414.1 MB Notification: Performance of Backend: time 4.71e-07/0.359, allocations: 0 / 0.5506 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.3609, allocations: 0.6911 MB / 0.5512 GB, free: 13.45 MB / 414.1 MB Notification: Performance of SimCode: time 0.001548/0.3625, allocations: 1.327 MB / 0.5525 GB, free: 12.07 MB / 414.1 MB Notification: Performance of Templates: time 0.01596/0.3785, allocations: 8.609 MB / 0.5609 GB, free: 3.504 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