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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 102.7 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 187.2 kB / 19.39 MB, free: 3.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2088/0.2088, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 59.91 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3289, allocations: 60.82 MB / 0.5196 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.00391/0.3328, allocations: 2.726 MB / 0.5222 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002305/0.3352, allocations: 1.406 MB / 0.5236 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.3354, allocations: 5.844 kB / 0.5236 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008582/0.3363, allocations: 328 kB / 0.5239 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005272/0.3368, allocations: 237.1 kB / 0.5242 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000907/0.3377, allocations: 423.4 kB / 0.5246 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005933/0.3383, allocations: 0.6148 MB / 0.5252 GB, free: 280 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003271/0.3387, allocations: 222.1 kB / 0.5254 GB, free: 156 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003029/0.339, allocations: 272 kB / 0.5256 GB, free: 28 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003493/0.3393, allocations: 299.7 kB / 0.5259 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.296e-05/0.3394, allocations: 53.5 kB / 0.526 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.3396, allocations: 112.8 kB / 0.5261 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.3398, allocations: 172.8 kB / 0.5263 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.3401, allocations: 266.4 kB / 0.5265 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007087/0.3408, allocations: 0.6425 MB / 0.5271 GB, free: 15.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3408, allocations: 1.75 kB / 0.5271 GB, free: 15.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.3408, allocations: 0 / 0.5271 GB, free: 15.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.918e-06/0.3408, allocations: 3.938 kB / 0.5271 GB, free: 15.07 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001787/0.3426, allocations: 0.9958 MB / 0.5281 GB, free: 14.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3426, allocations: 13.19 kB / 0.5281 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.3428, allocations: 68.7 kB / 0.5282 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005301/0.3433, allocations: 429.2 kB / 0.5286 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.437e-05/0.3434, allocations: 40.55 kB / 0.5286 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-05/0.3435, allocations: 48.81 kB / 0.5287 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008847/0.3443, allocations: 457.3 kB / 0.5291 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.3444, allocations: 1.406 kB / 0.5291 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.387e-05/0.3444, allocations: 15.47 kB / 0.5291 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3444, allocations: 9.844 kB / 0.5291 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007739/0.3452, allocations: 314.6 kB / 0.5294 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.3471, allocations: 1.075 MB / 0.5305 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.3484, allocations: 482.1 kB / 0.531 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004395/0.3488, allocations: 178 kB / 0.5311 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.3489, allocations: 6.219 kB / 0.5311 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006391/0.3495, allocations: 295.2 kB / 0.5314 GB, free: 11.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=52): time 2.595e-06/0.3496, allocations: 0 / 0.5314 GB, free: 11.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.001557/0.3511, allocations: 0.6162 MB / 0.532 GB, free: 11.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.3512, allocations: 135.9 kB / 0.5321 GB, free: 11.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006116/0.3518, allocations: 0.5104 MB / 0.5326 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.622e-05/0.3519, allocations: 45.67 kB / 0.5327 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002634/0.3522, allocations: 246.6 kB / 0.5329 GB, free: 10.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.3523, allocations: 133.4 kB / 0.533 GB, free: 10.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.3525, allocations: 119.4 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3526, allocations: 368.2 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004143/0.3531, allocations: 164.3 kB / 0.5337 GB, free: 10.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006085/0.3537, allocations: 256.6 kB / 0.5339 GB, free: 10.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007391/0.3544, allocations: 304.3 kB / 0.5342 GB, free: 9.996 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3544, allocations: 0 / 0.5342 GB, free: 9.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001007/0.3555, allocations: 486.5 kB / 0.5347 GB, free: 9.758 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.3555, allocations: 4.844 kB / 0.5347 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3555, allocations: 1.094 kB / 0.5347 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.3555, allocations: 3.438 kB / 0.5347 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.3558, allocations: 64.45 kB / 0.5347 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.3559, allocations: 3.625 kB / 0.5347 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/0.3562, allocations: 84.73 kB / 0.5348 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.3563, allocations: 20.72 kB / 0.5348 GB, free: 9.676 MB / 398.1 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 ($PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,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,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002639/0.3566, allocations: 227.1 kB / 0.5351 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.427e-05/0.3566, allocations: 54.36 kB / 0.5351 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.3568, allocations: 65.52 kB / 0.5352 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3568, allocations: 0 / 0.5352 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3568, allocations: 0 / 0.5352 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.3569, allocations: 131.4 kB / 0.5353 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.562e-05/0.357, allocations: 13.03 kB / 0.5353 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003591/0.3574, allocations: 52.72 kB / 0.5354 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.3575, allocations: 70.66 kB / 0.5354 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001487/0.359, allocations: 0.566 MB / 0.536 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001257/0.3603, allocations: 0.6449 MB / 0.5366 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004676/0.3608, allocations: 226.9 kB / 0.5368 GB, free: 8.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003961/0.3612, allocations: 356.9 kB / 0.5372 GB, free: 8.137 MB / 398.1 MB Notification: Performance of Backend: time 4.31e-07/0.3612, allocations: 0 / 0.5372 GB, free: 8.137 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.3631, allocations: 0.6907 MB / 0.5378 GB, free: 7.828 MB / 398.1 MB Notification: Performance of SimCode: time 0.001535/0.3647, allocations: 1.275 MB / 0.5391 GB, free: 6.828 MB / 398.1 MB Notification: Performance of Templates: time 0.0141/0.3788, allocations: 7.638 MB / 0.5465 GB, free: 408 kB / 398.1 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/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_4.0.0_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches