Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008534/0.0008534, allocations: 176.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007464/0.0007464, allocations: 91.8 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003354, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2595, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003256/0.2628, allocations: 2.035 MB / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.2648, allocations: 1.184 MB / 377.8 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001923/0.265, allocations: 10.38 kB / 377.8 MB, free: 42.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006103/0.2657, allocations: 204.8 kB / 378 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003954/0.2661, allocations: 128.1 kB / 378.1 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006029/0.2667, allocations: 224.1 kB / 378.3 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003646/0.2671, allocations: 420 kB / 378.7 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.2673, allocations: 149.8 kB / 378.9 MB, free: 42.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.2675, allocations: 154.5 kB / 379 MB, free: 42.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.2677, allocations: 166.2 kB / 379.2 MB, free: 42.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.2677, allocations: 10.44 kB / 379.2 MB, free: 42.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.2679, allocations: 86.67 kB / 379.3 MB, free: 41.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.268, allocations: 90.62 kB / 379.4 MB, free: 41.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.615e-05/0.2681, allocations: 96.95 kB / 379.5 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003192/0.2684, allocations: 382.6 kB / 379.8 MB, free: 41.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.2684, allocations: 0.6562 kB / 379.8 MB, free: 41.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2684, allocations: 0 / 379.8 MB, free: 41.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.2685, allocations: 0.9688 kB / 379.8 MB, free: 41.6 MB / 298.7 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.001068/0.2695, allocations: 0.7655 MB / 380.6 MB, free: 40.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.2696, allocations: 9.125 kB / 380.6 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.618e-05/0.2697, allocations: 56.28 kB / 380.7 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003891/0.2701, allocations: 383.4 kB / 381 MB, free: 40.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-05/0.2702, allocations: 60.38 kB / 381.1 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.877e-05/0.2702, allocations: 43 kB / 381.1 MB, free: 40.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/0.2708, allocations: 424 kB / 381.6 MB, free: 40.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.2708, allocations: 5 kB / 381.6 MB, free: 40.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.2709, allocations: 17.27 kB / 381.6 MB, free: 40.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.746e-05/0.2709, allocations: 12.09 kB / 381.6 MB, free: 40.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004499/0.2714, allocations: 267.1 kB / 381.9 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.2732, allocations: 1.689 MB / 383.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005814/0.2738, allocations: 291 kB / 383.8 MB, free: 38.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.274, allocations: 131.8 kB / 384 MB, free: 38.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.075e-05/0.2741, allocations: 11.08 kB / 384 MB, free: 38.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004542/0.2745, allocations: 333.7 kB / 384.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 2.034e-06/0.2746, allocations: 0 / 384.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0009046/0.2755, allocations: 489.9 kB / 384.8 MB, free: 37.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.2755, allocations: 172.6 kB / 384.9 MB, free: 37.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004736/0.276, allocations: 490.9 kB / 385.4 MB, free: 37.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.2761, allocations: 47.16 kB / 385.5 MB, free: 37.22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.2762, allocations: 223.9 kB / 385.7 MB, free: 37.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.741e-05/0.2763, allocations: 89.98 kB / 385.8 MB, free: 36.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.037e-05/0.2763, allocations: 10.22 kB / 385.8 MB, free: 36.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.075e-05/0.2764, allocations: 355.1 kB / 386.1 MB, free: 36.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.2766, allocations: 115.6 kB / 386.2 MB, free: 36.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002797/0.2769, allocations: 267.7 kB / 386.5 MB, free: 36.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.2772, allocations: 164.2 kB / 386.7 MB, free: 36.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2772, allocations: 0.9688 kB / 386.7 MB, free: 36.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006296/0.2778, allocations: 491.4 kB / 387.1 MB, free: 35.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.2779, allocations: 37.69 kB / 387.2 MB, free: 35.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.2779, allocations: 4 kB / 387.2 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.2779, allocations: 4 kB / 387.2 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.278, allocations: 43.86 kB / 387.2 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/0.2781, allocations: 15.92 kB / 387.2 MB, free: 35.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.2783, allocations: 55.98 kB / 387.3 MB, free: 35.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.2784, allocations: 24 kB / 387.3 MB, free: 35.57 MB / 298.7 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,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002038/0.2786, allocations: 244.6 kB / 387.6 MB, free: 35.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/0.2787, allocations: 47.39 kB / 387.6 MB, free: 35.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004182/0.2791, allocations: 280 kB / 387.9 MB, free: 34.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.2791, allocations: 4 kB / 387.9 MB, free: 34.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.2791, allocations: 4 kB / 387.9 MB, free: 34.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.2791, allocations: 3.984 kB / 387.9 MB, free: 34.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008505/0.28, allocations: 0.775 MB / 388.7 MB, free: 34.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.28, allocations: 0 / 388.7 MB, free: 34.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.439e-05/0.2801, allocations: 19.94 kB / 388.7 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2801, allocations: 0 / 388.7 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.2801, allocations: 15.98 kB / 388.7 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.2801, allocations: 0 / 388.7 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2801, allocations: 7.984 kB / 388.7 MB, free: 34.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005461/0.2807, allocations: 0.5122 MB / 389.2 MB, free: 33.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.051e-05/0.2808, allocations: 128.5 kB / 389.4 MB, free: 33.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.621e-05/0.2808, allocations: 12 kB / 389.4 MB, free: 33.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.281, allocations: 31.97 kB / 389.4 MB, free: 33.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.188e-05/0.2811, allocations: 39.94 kB / 389.4 MB, free: 33.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.2812, allocations: 19.98 kB / 389.5 MB, free: 33.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002438/0.2814, allocations: 319.1 kB / 389.8 MB, free: 33 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2814, allocations: 0 / 389.8 MB, free: 33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003992/0.2818, allocations: 123.9 kB / 389.9 MB, free: 32.88 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008629/0.2827, allocations: 456.6 kB / 390.3 MB, free: 32.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005682/0.2833, allocations: 391.2 kB / 390.7 MB, free: 32.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2833, allocations: 4 kB / 390.7 MB, free: 32.06 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.2836, allocations: 247.9 kB / 391 MB, free: 31.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.2841, allocations: 89.45 kB / 391 MB, free: 31.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.2852, allocations: 0.9145 MB / 392 MB, free: 30.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/0.2855, allocations: 0.8397 MB / 392.8 MB, free: 29.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.2856, allocations: 43.42 kB / 392.8 MB, free: 29.87 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2856, allocations: 0 / 392.8 MB, free: 29.87 MB / 298.7 MB Notification: Performance of Templates: time 0.007167/0.2928, allocations: 6.268 MB / 399.1 MB, free: 23.59 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches