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.001161/0.001161, allocations: 108.4 kB / 18.36 MB, free: 4.77 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.001256/0.001257, allocations: 191 kB / 19.29 MB, free: 3.848 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.499/1.499, allocations: 205.1 MB / 225.2 MB, free: 12.26 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: 47.92 kB / 282.1 MB, free: 2.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1089, allocations: 46.63 MB / 328.7 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005595/0.1145, allocations: 2.441 MB / 331.2 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002449/0.117, allocations: 1.248 MB / 332.4 MB, free: 56 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002326/0.1173, allocations: 7.938 kB / 332.4 MB, free: 48 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008551/0.1182, allocations: 239 kB / 332.7 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003674/0.1186, allocations: 155.2 kB / 332.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.1192, allocations: 279.4 kB / 333.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004768/0.1197, allocations: 483.5 kB / 333.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003321/0.1201, allocations: 213.8 kB / 333.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002026/0.1203, allocations: 187.3 kB / 333.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000232/0.1205, allocations: 211 kB / 334.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.498e-05/0.1206, allocations: 39.94 kB / 334.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.1208, allocations: 119.9 kB / 334.3 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.121, allocations: 123.6 kB / 334.4 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.1212, allocations: 222.7 kB / 334.6 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006405/0.1218, allocations: 0.5487 MB / 335.2 MB, free: 13.26 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1218, allocations: 0 / 335.2 MB, free: 13.26 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1218, allocations: 4 kB / 335.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1218, allocations: 0 / 335.2 MB, free: 13.25 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.001429/0.1233, allocations: 0.8552 MB / 336.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.1233, allocations: 8.031 kB / 336.1 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.1235, allocations: 60.28 kB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005797/0.1241, allocations: 391.1 kB / 336.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.869e-05/0.1242, allocations: 59.27 kB / 336.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.985e-05/0.1242, allocations: 39.94 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006639/0.1249, allocations: 428.7 kB / 337 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.1249, allocations: 7.875 kB / 337 MB, free: 11.28 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.125, allocations: 16 kB / 337 MB, free: 11.26 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.572e-05/0.125, allocations: 12.44 kB / 337.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.1255, allocations: 269.5 kB / 337.3 MB, free: 10.99 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.1273, allocations: 1.666 MB / 339 MB, free: 9.234 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005446/0.1279, allocations: 299.9 kB / 339.3 MB, free: 8.914 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.1281, allocations: 134.5 kB / 339.4 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.324e-05/0.1282, allocations: 11.98 kB / 339.4 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004657/0.1287, allocations: 332 kB / 339.7 MB, free: 8.398 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.793e-06/0.1287, allocations: 4 kB / 339.7 MB, free: 8.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009624/0.1297, allocations: 482.5 kB / 340.2 MB, free: 7.91 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.1298, allocations: 162.2 kB / 340.4 MB, free: 7.715 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005239/0.1303, allocations: 0.4894 MB / 340.9 MB, free: 7.219 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.1304, allocations: 41.7 kB / 340.9 MB, free: 7.172 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.1305, allocations: 228.5 kB / 341.1 MB, free: 6.945 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.297e-05/0.1306, allocations: 83 kB / 341.2 MB, free: 6.863 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.1308, allocations: 122.2 kB / 341.3 MB, free: 6.738 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1309, allocations: 362.7 kB / 341.7 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002299/0.1312, allocations: 113.1 kB / 341.8 MB, free: 6.266 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.1315, allocations: 262.7 kB / 342.1 MB, free: 5.949 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005288/0.132, allocations: 422.8 kB / 342.5 MB, free: 5.469 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1321, allocations: 4 kB / 342.5 MB, free: 5.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007551/0.1328, allocations: 482.4 kB / 342.9 MB, free: 4.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.843e-05/0.1329, allocations: 41.69 kB / 343 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1329, allocations: 4 kB / 343 MB, free: 4.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.1329, allocations: 4 kB / 343 MB, free: 4.926 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.1331, allocations: 47.84 kB / 343 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.1331, allocations: 12.41 kB / 343 MB, free: 4.867 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.1333, allocations: 51.67 kB / 343.1 MB, free: 4.816 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.1334, allocations: 20.16 kB / 343.1 MB, free: 4.797 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.0002862/0.1337, allocations: 248.6 kB / 343.4 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.826e-05/0.1338, allocations: 51.38 kB / 343.4 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005094/0.1343, allocations: 265.2 kB / 343.7 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1343, allocations: 8 kB / 343.7 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.1344, allocations: 3.984 kB / 343.7 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1344, allocations: 0 / 343.7 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.1355, allocations: 0.787 MB / 344.5 MB, free: 3.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1355, allocations: 0 / 344.5 MB, free: 3.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.616e-05/0.1355, allocations: 15.94 kB / 344.5 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1355, allocations: 3.984 kB / 344.5 MB, free: 3.336 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.1356, allocations: 16 kB / 344.5 MB, free: 3.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.1356, allocations: 3.938 kB / 344.5 MB, free: 3.316 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1356, allocations: 0 / 344.5 MB, free: 3.316 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007389/0.1363, allocations: 0.5095 MB / 345 MB, free: 2.781 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.1365, allocations: 120.6 kB / 345.1 MB, free: 2.645 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.544e-05/0.1365, allocations: 16 kB / 345.1 MB, free: 2.629 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.1368, allocations: 31.91 kB / 345.2 MB, free: 2.598 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.1369, allocations: 35.95 kB / 345.2 MB, free: 2.562 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.1369, allocations: 15.98 kB / 345.2 MB, free: 2.547 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003398/0.1373, allocations: 323.1 kB / 345.5 MB, free: 2.238 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.552e-06/0.1373, allocations: 0 / 345.5 MB, free: 2.238 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005157/0.1378, allocations: 123.7 kB / 345.7 MB, free: 2.117 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.001122/0.1389, allocations: 460 kB / 346.1 MB, free: 1.672 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007243/0.1397, allocations: 391.6 kB / 346.5 MB, free: 1.277 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1397, allocations: 256 / 346.5 MB, free: 1.277 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003713/0.1401, allocations: 243.6 kB / 346.7 MB, free: 1.027 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005586/0.1406, allocations: 89.66 kB / 346.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.142, allocations: 0.7848 MB / 347.6 MB, free: 124 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.1424, allocations: 0.8361 MB / 348.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001931/0.1426, allocations: 79.55 kB / 348.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.1427, allocations: 47.42 kB / 348.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1427, allocations: 4 kB / 348.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Templates: time 0.01089/0.1536, allocations: 5.473 MB / 354 MB, free: 9.648 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches