Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(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_4.0.0_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_4.0.0_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.001676/0.001676, allocations: 115.7 kB / 17.74 MB, free: 5.312 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.001963/0.001963, allocations: 185.6 kB / 18.67 MB, free: 4.395 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.557/1.557, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 47.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3449, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004297/0.3492, allocations: 2.463 MB / 403.9 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.3519, allocations: 1.325 MB / 405.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002444/0.3521, allocations: 11.94 kB / 405.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008563/0.353, allocations: 235 kB / 405.4 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004078/0.3534, allocations: 159.1 kB / 405.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008134/0.3542, allocations: 301.6 kB / 405.9 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005298/0.3548, allocations: 479.7 kB / 406.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003618/0.3551, allocations: 205.8 kB / 406.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002296/0.3554, allocations: 195.2 kB / 406.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.3556, allocations: 211 kB / 407 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.268e-05/0.3557, allocations: 36 kB / 407 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002596/0.356, allocations: 123.9 kB / 407.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.3561, allocations: 123.6 kB / 407.2 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.3563, allocations: 210.8 kB / 407.4 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006714/0.357, allocations: 0.5731 MB / 408 MB, free: 2.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.357, allocations: 0 / 408 MB, free: 2.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.357, allocations: 0 / 408 MB, free: 2.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.357, allocations: 0 / 408 MB, free: 2.234 MB / 318.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.001414/0.3585, allocations: 0.8554 MB / 408.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3585, allocations: 12.03 kB / 408.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.3586, allocations: 60.28 kB / 408.9 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000572/0.3592, allocations: 402.8 kB / 409.3 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.909e-05/0.3593, allocations: 54.7 kB / 409.4 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.321e-05/0.3594, allocations: 40 kB / 409.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007342/0.3601, allocations: 428.7 kB / 409.8 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.3601, allocations: 3.938 kB / 409.8 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.873e-05/0.3602, allocations: 16 kB / 409.9 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.704e-05/0.3602, allocations: 12.44 kB / 409.9 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004926/0.3607, allocations: 265.5 kB / 410.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.3627, allocations: 1.662 MB / 411.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.3633, allocations: 303.9 kB / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00024/0.3636, allocations: 126.5 kB / 412.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.296e-05/0.3636, allocations: 15.91 kB / 412.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005162/0.3642, allocations: 329 kB / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.124e-06/0.3642, allocations: 0 / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009705/0.3651, allocations: 488.2 kB / 413 MB, free: 12.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.3653, allocations: 166.2 kB / 413.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005434/0.3658, allocations: 497.2 kB / 413.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.3659, allocations: 37.7 kB / 413.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.3661, allocations: 232.6 kB / 413.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.489e-05/0.3662, allocations: 82.94 kB / 414 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002205/0.3664, allocations: 122.1 kB / 414.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3666, allocations: 358.8 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.3668, allocations: 113.1 kB / 414.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.3672, allocations: 270.7 kB / 414.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005622/0.3678, allocations: 426.5 kB / 415.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3678, allocations: 0 / 415.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008264/0.3687, allocations: 474.7 kB / 415.7 MB, free: 9.961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.014e-05/0.3687, allocations: 37.7 kB / 415.8 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.3688, allocations: 4 kB / 415.8 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.56e-05/0.3688, allocations: 8 kB / 415.8 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.3689, allocations: 48.16 kB / 415.8 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.912e-05/0.369, allocations: 11.88 kB / 415.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.3692, allocations: 59.52 kB / 415.9 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.862e-05/0.3693, allocations: 23.98 kB / 415.9 MB, free: 9.766 MB / 334.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.0003763/0.3697, allocations: 252.6 kB / 416.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.175e-05/0.3698, allocations: 39.53 kB / 416.2 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005257/0.3703, allocations: 264.8 kB / 416.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.3703, allocations: 4 kB / 416.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.3703, allocations: 4 kB / 416.5 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3703, allocations: 3.938 kB / 416.5 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.3715, allocations: 0.7754 MB / 417.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3715, allocations: 0 / 417.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.331e-05/0.3715, allocations: 19.92 kB / 417.3 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.158e-06/0.3716, allocations: 7.938 kB / 417.3 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.3716, allocations: 11.94 kB / 417.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.377e-05/0.3716, allocations: 8 kB / 417.3 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3716, allocations: 0 / 417.3 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007217/0.3723, allocations: 0.5133 MB / 417.8 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.727e-05/0.3724, allocations: 124.4 kB / 417.9 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.879e-05/0.3725, allocations: 12 kB / 418 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.3727, allocations: 23.97 kB / 418 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3729, allocations: 35.95 kB / 418 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.642e-05/0.3729, allocations: 23.98 kB / 418 MB, free: 7.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003418/0.3732, allocations: 323.1 kB / 418.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3733, allocations: 0 / 418.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005079/0.3738, allocations: 119.9 kB / 418.5 MB, free: 7.105 MB / 334.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.002372/0.3761, allocations: 468.6 kB / 418.9 MB, free: 6.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007581/0.3769, allocations: 402.9 kB / 419.3 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3769, allocations: 0 / 419.3 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003595/0.3773, allocations: 243.2 kB / 419.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005766/0.3779, allocations: 91.56 kB / 419.6 MB, free: 6.055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.3795, allocations: 0.8088 MB / 420.5 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004962/0.38, allocations: 0.8361 MB / 421.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.3801, allocations: 47.42 kB / 421.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3801, allocations: 7.938 kB / 421.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of Templates: time 0.01021/0.3903, allocations: 6.358 MB / 427.7 MB, free: 13.95 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches