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.0009481/0.0009476, allocations: 90.81 kB / 17.3 MB, free: 6.336 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.001473/0.001473, allocations: 185 kB / 18.21 MB, free: 5.52 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.68/1.68, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004817/0.0004817, allocations: 8.375 kB / 281.4 MB, free: 3.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1149, allocations: 47.6 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004479/0.1194, allocations: 2.097 MB / 331.1 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.1222, allocations: 1.225 MB / 332.3 MB, free: 436 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004012/0.1227, allocations: 7.938 kB / 332.3 MB, free: 428 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001089/0.1238, allocations: 207.3 kB / 332.5 MB, free: 220 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005588/0.1243, allocations: 139.5 kB / 332.6 MB, free: 80 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009492/0.1253, allocations: 239.6 kB / 332.9 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005228/0.1258, allocations: 455.7 kB / 333.3 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003827/0.1262, allocations: 193.8 kB / 333.5 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001991/0.1264, allocations: 143.2 kB / 333.6 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002138/0.1267, allocations: 167.1 kB / 333.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.888e-05/0.1267, allocations: 12 kB / 333.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002231/0.1269, allocations: 95.88 kB / 333.9 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.1271, allocations: 99.59 kB / 334 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002257/0.1273, allocations: 208.3 kB / 334.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006295/0.128, allocations: 498.4 kB / 334.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.128, allocations: 0 / 334.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.128, allocations: 0 / 334.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.128, allocations: 0 / 334.7 MB, free: 13.99 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.001636/0.1296, allocations: 0.7657 MB / 335.5 MB, free: 13.17 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.1297, allocations: 12.03 kB / 335.5 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.1299, allocations: 60.27 kB / 335.5 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005589/0.1304, allocations: 387 kB / 335.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.1306, allocations: 63.25 kB / 336 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/0.1306, allocations: 39.94 kB / 336 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006992/0.1313, allocations: 428.7 kB / 336.4 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.1314, allocations: 0 / 336.4 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.434e-05/0.1314, allocations: 23.97 kB / 336.4 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.514e-05/0.1314, allocations: 16.44 kB / 336.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000465/0.1319, allocations: 269.5 kB / 336.7 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.1339, allocations: 1.686 MB / 338.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005731/0.1344, allocations: 302.6 kB / 338.7 MB, free: 9.719 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.1347, allocations: 134.5 kB / 338.8 MB, free: 9.578 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.817e-05/0.1348, allocations: 15.97 kB / 338.9 MB, free: 9.562 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004629/0.1352, allocations: 327.7 kB / 339.2 MB, free: 9.203 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 3.827e-06/0.1353, allocations: 4 kB / 339.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009222/0.1362, allocations: 490.4 kB / 339.7 MB, free: 8.707 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.973e-05/0.1363, allocations: 174.2 kB / 339.8 MB, free: 8.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005079/0.1368, allocations: 489.3 kB / 340.3 MB, free: 8.016 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.588e-05/0.1369, allocations: 41.7 kB / 340.3 MB, free: 7.969 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.1371, allocations: 220.6 kB / 340.6 MB, free: 7.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.33e-05/0.1371, allocations: 86.98 kB / 340.6 MB, free: 7.664 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.676e-05/0.1372, allocations: 81.67 kB / 340.7 MB, free: 7.578 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002504/0.1375, allocations: 362.7 kB / 341.1 MB, free: 7.215 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.1377, allocations: 117.1 kB / 341.2 MB, free: 7.102 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003369/0.1381, allocations: 266.7 kB / 341.5 MB, free: 6.777 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005367/0.1386, allocations: 434.3 kB / 341.9 MB, free: 6.285 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1386, allocations: 0 / 341.9 MB, free: 6.285 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007299/0.1394, allocations: 482.2 kB / 342.3 MB, free: 5.801 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.1394, allocations: 33.7 kB / 342.4 MB, free: 5.762 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1394, allocations: 4 kB / 342.4 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1395, allocations: 4.469 kB / 342.4 MB, free: 5.754 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.1396, allocations: 51.84 kB / 342.4 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.1396, allocations: 8 kB / 342.4 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.1399, allocations: 51.67 kB / 342.5 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.1399, allocations: 27.98 kB / 342.5 MB, free: 5.617 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.0003066/0.1402, allocations: 256.5 kB / 342.8 MB, free: 5.348 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.113e-05/0.1403, allocations: 43.44 kB / 342.8 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004867/0.1408, allocations: 265.6 kB / 343.1 MB, free: 5.031 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.1408, allocations: 11.94 kB / 343.1 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1408, allocations: 0 / 343.1 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.1408, allocations: 0 / 343.1 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.1419, allocations: 0.7867 MB / 343.9 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1419, allocations: 0 / 343.9 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.354e-05/0.142, allocations: 11.98 kB / 343.9 MB, free: 4.164 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.142, allocations: 4 kB / 343.9 MB, free: 4.16 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/0.142, allocations: 19.88 kB / 343.9 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.1421, allocations: 7.938 kB / 343.9 MB, free: 4.133 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1421, allocations: 4 kB / 343.9 MB, free: 4.129 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007191/0.1428, allocations: 0.5067 MB / 344.4 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.016e-05/0.1429, allocations: 120.6 kB / 344.5 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.205e-05/0.143, allocations: 15.92 kB / 344.6 MB, free: 3.441 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.1432, allocations: 31.98 kB / 344.6 MB, free: 3.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.1433, allocations: 39.94 kB / 344.6 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.27e-05/0.1433, allocations: 16 kB / 344.7 MB, free: 3.355 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003434/0.1437, allocations: 327.1 kB / 345 MB, free: 3.039 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1437, allocations: 0 / 345 MB, free: 3.039 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004642/0.1442, allocations: 116 kB / 345.1 MB, free: 2.926 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.001126/0.1453, allocations: 466.5 kB / 345.5 MB, free: 2.477 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000678/0.146, allocations: 396.1 kB / 345.9 MB, free: 2.078 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.146, allocations: 0 / 345.9 MB, free: 2.078 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003405/0.1463, allocations: 242.9 kB / 346.2 MB, free: 1.828 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006184/0.147, allocations: 86.06 kB / 346.2 MB, free: 1.742 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.1485, allocations: 0.9401 MB / 347.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.1489, allocations: 0.8397 MB / 348 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002066/0.1491, allocations: 79.25 kB / 348.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.1492, allocations: 43.36 kB / 348.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1493, allocations: 0 / 348.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01061/0.1599, allocations: 5.068 MB / 353.2 MB, free: 10.71 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