Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 107.4 kB / 17.15 MB, free: 6.328 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.001471/0.001471, allocations: 198 kB / 18.07 MB, free: 5.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 51.92 kB / 280 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1147, allocations: 46.63 MB / 326.6 MB, free: 4.918 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005271/0.12, allocations: 2.475 MB / 329.1 MB, free: 2.422 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.1225, allocations: 1.248 MB / 330.3 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003429/0.1229, allocations: 7.938 kB / 330.3 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008733/0.1238, allocations: 211.2 kB / 330.5 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005079/0.1244, allocations: 135.5 kB / 330.7 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000752/0.1251, allocations: 251.7 kB / 330.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004875/0.1256, allocations: 447.7 kB / 331.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00037/0.126, allocations: 201.8 kB / 331.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.1262, allocations: 175.2 kB / 331.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.1264, allocations: 207 kB / 331.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.368e-05/0.1265, allocations: 27.94 kB / 331.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002265/0.1267, allocations: 99.88 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.1269, allocations: 111.6 kB / 332.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001927/0.1271, allocations: 206.7 kB / 332.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005431/0.1276, allocations: 0.5024 MB / 332.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1277, allocations: 4 kB / 332.9 MB, free: 14.61 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1277, allocations: 0 / 332.9 MB, free: 14.61 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.1277, allocations: 0 / 332.9 MB, free: 14.61 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001566/0.1292, allocations: 0.8435 MB / 333.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1293, allocations: 12.02 kB / 333.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.1294, allocations: 56.28 kB / 333.8 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005408/0.13, allocations: 395 kB / 334.1 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.599e-05/0.1301, allocations: 55.27 kB / 334.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.644e-05/0.1301, allocations: 43.94 kB / 334.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007029/0.1308, allocations: 428.6 kB / 334.7 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.1309, allocations: 4 kB / 334.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.675e-05/0.1309, allocations: 19.98 kB / 334.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.165e-05/0.1309, allocations: 12.44 kB / 334.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004795/0.1314, allocations: 257.5 kB / 334.9 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.1333, allocations: 1.682 MB / 336.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.1339, allocations: 303.9 kB / 336.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.1342, allocations: 130.5 kB / 337.1 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.023e-05/0.1343, allocations: 15.98 kB / 337.1 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004943/0.1348, allocations: 323.7 kB / 337.4 MB, free: 9.762 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.334e-06/0.1348, allocations: 3.938 kB / 337.4 MB, free: 9.758 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009679/0.1357, allocations: 490.6 kB / 337.9 MB, free: 9.266 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.736e-05/0.1359, allocations: 170.1 kB / 338 MB, free: 9.062 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005007/0.1364, allocations: 493.2 kB / 338.5 MB, free: 8.574 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.1364, allocations: 37.7 kB / 338.6 MB, free: 8.531 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.1366, allocations: 228.6 kB / 338.8 MB, free: 8.305 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.797e-05/0.1367, allocations: 82.98 kB / 338.9 MB, free: 8.223 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.1369, allocations: 118.2 kB / 339 MB, free: 8.102 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.137, allocations: 362.7 kB / 339.3 MB, free: 7.738 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.1373, allocations: 121 kB / 339.4 MB, free: 7.621 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.1376, allocations: 274.6 kB / 339.7 MB, free: 7.289 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005693/0.1382, allocations: 422.8 kB / 340.1 MB, free: 6.809 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1382, allocations: 0 / 340.1 MB, free: 6.809 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007682/0.139, allocations: 482.1 kB / 340.6 MB, free: 6.324 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.358e-05/0.139, allocations: 41.62 kB / 340.6 MB, free: 6.277 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.139, allocations: 4 kB / 340.6 MB, free: 6.273 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.1391, allocations: 8 kB / 340.7 MB, free: 6.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.1392, allocations: 39.92 kB / 340.7 MB, free: 6.227 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.1393, allocations: 11.92 kB / 340.7 MB, free: 6.215 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.1395, allocations: 52.14 kB / 340.8 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.63e-05/0.1395, allocations: 23.98 kB / 340.8 MB, free: 6.141 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0002974/0.1399, allocations: 256.5 kB / 341 MB, free: 5.871 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.972e-05/0.1399, allocations: 43.44 kB / 341.1 MB, free: 5.828 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005156/0.1405, allocations: 261.6 kB / 341.3 MB, free: 5.559 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.1405, allocations: 4 kB / 341.3 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1405, allocations: 0 / 341.3 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1405, allocations: 7.984 kB / 341.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.1416, allocations: 0.7827 MB / 342.1 MB, free: 4.707 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1416, allocations: 4 kB / 342.1 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.725e-05/0.1417, allocations: 15.94 kB / 342.1 MB, free: 4.688 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.1417, allocations: 4 kB / 342.1 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.98e-05/0.1417, allocations: 15.92 kB / 342.2 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.1417, allocations: 4 kB / 342.2 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1417, allocations: 0 / 342.2 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007296/0.1425, allocations: 0.5095 MB / 342.7 MB, free: 4.129 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.812e-05/0.1426, allocations: 120.6 kB / 342.8 MB, free: 3.992 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.785e-05/0.1427, allocations: 15.94 kB / 342.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.1429, allocations: 23.97 kB / 342.8 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.143, allocations: 35.95 kB / 342.9 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.728e-05/0.1431, allocations: 19.98 kB / 342.9 MB, free: 3.898 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003314/0.1434, allocations: 319.1 kB / 343.2 MB, free: 3.59 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1434, allocations: 0 / 343.2 MB, free: 3.59 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.1439, allocations: 124 kB / 343.3 MB, free: 3.469 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001064/0.145, allocations: 457.2 kB / 343.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006694/0.1456, allocations: 399.8 kB / 344.2 MB, free: 2.625 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1456, allocations: 0 / 344.2 MB, free: 2.625 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.146, allocations: 239.5 kB / 344.4 MB, free: 2.379 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005578/0.1466, allocations: 89.83 kB / 344.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.148, allocations: 0.9233 MB / 345.4 MB, free: 1.336 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.1484, allocations: 0.8474 MB / 346.2 MB, free: 472 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000204/0.1486, allocations: 83.75 kB / 346.3 MB, free: 388 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.1487, allocations: 43.42 kB / 346.4 MB, free: 348 kB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1487, allocations: 4 kB / 346.4 MB, free: 344 kB / 286.1 MB Notification: Performance of Templates: time 0.01063/0.1594, allocations: 5.107 MB / 351.5 MB, free: 11.22 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches