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.00149/0.00149, allocations: 97.03 kB / 17.06 MB, free: 6.121 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.001369/0.00137, allocations: 194.9 kB / 17.99 MB, free: 5.199 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.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 47.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3139, allocations: 49.44 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004436/0.3184, allocations: 2.45 MB / 403.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00255/0.321, allocations: 1.336 MB / 404.5 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/0.3212, allocations: 7.938 kB / 404.5 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008827/0.3221, allocations: 234.9 kB / 404.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000432/0.3226, allocations: 159.2 kB / 404.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009561/0.3235, allocations: 297.6 kB / 405.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005031/0.3241, allocations: 479.8 kB / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004486/0.3245, allocations: 205.8 kB / 405.9 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.3247, allocations: 199.2 kB / 406.1 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.325, allocations: 207.1 kB / 406.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.642e-05/0.325, allocations: 40 kB / 406.3 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.3253, allocations: 123.9 kB / 406.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.3254, allocations: 119.6 kB / 406.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002205/0.3257, allocations: 226.6 kB / 406.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006565/0.3263, allocations: 0.5538 MB / 407.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.3263, allocations: 0 / 407.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3264, allocations: 0 / 407.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.3264, allocations: 0 / 407.3 MB, free: 2.246 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.001315/0.3277, allocations: 0.8554 MB / 408.2 MB, free: 1.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.3277, allocations: 8.031 kB / 408.2 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.3279, allocations: 60.22 kB / 408.2 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005991/0.3285, allocations: 406.7 kB / 408.6 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.776e-05/0.3286, allocations: 54.7 kB / 408.7 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.486e-05/0.3286, allocations: 44 kB / 408.7 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007394/0.3294, allocations: 420.7 kB / 409.1 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3294, allocations: 4 kB / 409.2 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.49e-05/0.3295, allocations: 23.98 kB / 409.2 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.687e-05/0.3295, allocations: 12.44 kB / 409.2 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005308/0.3301, allocations: 265.5 kB / 409.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002179/0.3322, allocations: 1.662 MB / 411.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006243/0.3329, allocations: 296 kB / 411.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.3331, allocations: 134.5 kB / 411.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.885e-05/0.3332, allocations: 19.95 kB / 411.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004693/0.3337, allocations: 325 kB / 411.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 3.125e-06/0.3337, allocations: 0 / 411.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001047/0.3348, allocations: 492.1 kB / 412.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.3349, allocations: 158.2 kB / 412.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006361/0.3355, allocations: 497.2 kB / 413 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.3356, allocations: 41.7 kB / 413 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002339/0.3358, allocations: 232.6 kB / 413.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.336, allocations: 82.94 kB / 413.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.3362, allocations: 122.1 kB / 413.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000282/0.3365, allocations: 358.8 kB / 413.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.3368, allocations: 113.1 kB / 413.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/0.3371, allocations: 274.5 kB / 414.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006168/0.3378, allocations: 430.8 kB / 414.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3378, allocations: 0 / 414.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007732/0.3385, allocations: 478.2 kB / 415.1 MB, free: 9.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/0.3386, allocations: 33.7 kB / 415.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3386, allocations: 4.469 kB / 415.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.3387, allocations: 12 kB / 415.1 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.3388, allocations: 43.84 kB / 415.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.3388, allocations: 8 kB / 415.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.3391, allocations: 55.52 kB / 415.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/0.3391, allocations: 23.98 kB / 415.2 MB, free: 9.773 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.000274/0.3394, allocations: 248.6 kB / 415.5 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.994e-05/0.3395, allocations: 43.53 kB / 415.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005543/0.34, allocations: 273.1 kB / 415.8 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.3401, allocations: 7.938 kB / 415.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.3401, allocations: 3.938 kB / 415.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.3401, allocations: 3.938 kB / 415.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.3412, allocations: 0.7754 MB / 416.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3412, allocations: 7.938 kB / 416.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.719e-05/0.3412, allocations: 11.98 kB / 416.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.3413, allocations: 7.938 kB / 416.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.3413, allocations: 8 kB / 416.6 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.3413, allocations: 7.938 kB / 416.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3413, allocations: 0 / 416.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007446/0.3421, allocations: 0.5095 MB / 417.1 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.888e-05/0.3422, allocations: 124.4 kB / 417.3 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.745e-05/0.3422, allocations: 8 kB / 417.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.3425, allocations: 23.97 kB / 417.3 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.3426, allocations: 43.95 kB / 417.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-05/0.3426, allocations: 15.98 kB / 417.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003727/0.343, allocations: 323.1 kB / 417.7 MB, free: 7.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.343, allocations: 4 kB / 417.7 MB, free: 7.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004832/0.3435, allocations: 127.9 kB / 417.8 MB, free: 7.102 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.001136/0.3447, allocations: 467.4 kB / 418.3 MB, free: 6.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006786/0.3453, allocations: 395.2 kB / 418.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3454, allocations: 4 kB / 418.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003682/0.3457, allocations: 235.2 kB / 418.9 MB, free: 6.148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.3463, allocations: 91.53 kB / 419 MB, free: 6.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.3479, allocations: 0.7798 MB / 419.7 MB, free: 5.254 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.3484, allocations: 0.84 MB / 420.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002054/0.3486, allocations: 83.56 kB / 420.7 MB, free: 4.305 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.3487, allocations: 43.42 kB / 420.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3487, allocations: 0 / 420.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of Templates: time 0.01117/0.3599, allocations: 5.498 MB / 426.2 MB, free: 14.79 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/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