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.001244/0.001244, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001273/0.001273, allocations: 200 kB / 18.01 MB, free: 5.055 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.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 47.94 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3324, allocations: 49.44 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004545/0.337, allocations: 2.453 MB / 403.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003046/0.3401, allocations: 1.321 MB / 404.5 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004424/0.3406, allocations: 7.938 kB / 404.5 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000932/0.3415, allocations: 242.9 kB / 404.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005114/0.342, allocations: 163.2 kB / 404.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008551/0.3429, allocations: 301.9 kB / 405.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006296/0.3435, allocations: 475.8 kB / 405.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003604/0.3439, allocations: 201.8 kB / 405.9 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002841/0.3442, allocations: 199.2 kB / 406.1 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.3445, allocations: 211 kB / 406.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.603e-05/0.3446, allocations: 39.94 kB / 406.3 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.3448, allocations: 123.9 kB / 406.4 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.345, allocations: 127.5 kB / 406.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002239/0.3452, allocations: 218.7 kB / 406.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008031/0.346, allocations: 0.5576 MB / 407.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3461, allocations: 0 / 407.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3461, allocations: 0 / 407.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.3461, 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.001883/0.348, allocations: 0.8592 MB / 408.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.348, allocations: 12.03 kB / 408.2 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.3482, allocations: 56.28 kB / 408.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007556/0.349, allocations: 398.8 kB / 408.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.96e-05/0.3491, allocations: 54.7 kB / 408.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.9e-05/0.3492, allocations: 40 kB / 408.7 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008168/0.35, allocations: 428.7 kB / 409.1 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.3501, allocations: 0 / 409.1 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.3501, allocations: 20 kB / 409.2 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.179e-05/0.3501, allocations: 12.44 kB / 409.2 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005802/0.3507, allocations: 273.4 kB / 409.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002402/0.3531, allocations: 1.659 MB / 411.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007415/0.3539, allocations: 303.9 kB / 411.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003043/0.3542, allocations: 128.9 kB / 411.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.868e-05/0.3543, allocations: 15.89 kB / 411.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005745/0.3549, allocations: 333 kB / 411.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.465e-06/0.3549, allocations: 0 / 411.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001129/0.3561, allocations: 491.9 kB / 412.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.3562, allocations: 162.2 kB / 412.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006063/0.3568, allocations: 493.2 kB / 413 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.3569, allocations: 37.7 kB / 413 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.3571, allocations: 236.6 kB / 413.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.3572, allocations: 86.94 kB / 413.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.3573, allocations: 122.1 kB / 413.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.3575, allocations: 350.8 kB / 413.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.3578, allocations: 121 kB / 413.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003457/0.3581, allocations: 270.7 kB / 414.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005991/0.3587, allocations: 422.5 kB / 414.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.3587, allocations: 0 / 414.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000821/0.3596, allocations: 478.2 kB / 415.1 MB, free: 9.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.37e-05/0.3596, allocations: 37.64 kB / 415.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.3596, allocations: 4 kB / 415.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.3597, allocations: 8.469 kB / 415.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.3598, allocations: 51.84 kB / 415.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.3598, allocations: 4 kB / 415.2 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.3601, allocations: 55.52 kB / 415.2 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/0.3602, allocations: 28.14 kB / 415.3 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.0002758/0.3605, allocations: 248.6 kB / 415.5 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.557e-05/0.3606, allocations: 39.53 kB / 415.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005101/0.3611, allocations: 273.4 kB / 415.8 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.3611, allocations: 7.984 kB / 415.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.3611, allocations: 4 kB / 415.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.597e-06/0.3611, allocations: 3.938 kB / 415.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.3623, allocations: 0.7676 MB / 416.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.3623, allocations: 4 kB / 416.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.69e-05/0.3624, allocations: 19.92 kB / 416.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-06/0.3624, allocations: 11.88 kB / 416.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.3624, allocations: 8 kB / 416.6 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3625, allocations: 4 kB / 416.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3625, allocations: 0 / 416.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008081/0.3633, allocations: 0.5111 MB / 417.1 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3634, allocations: 124.4 kB / 417.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.336e-05/0.3635, allocations: 15.94 kB / 417.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.3637, allocations: 23.97 kB / 417.3 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.3638, allocations: 35.95 kB / 417.3 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.864e-05/0.3639, allocations: 23.98 kB / 417.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003543/0.3642, allocations: 323.1 kB / 417.7 MB, free: 7.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.3642, allocations: 0 / 417.7 MB, free: 7.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005011/0.3647, 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.00107/0.3658, allocations: 463.6 kB / 418.3 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007206/0.3665, allocations: 399.4 kB / 418.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3666, allocations: 0 / 418.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003919/0.367, allocations: 243.2 kB / 418.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.3675, allocations: 92.5 kB / 419 MB, free: 6.059 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.3689, allocations: 0.7686 MB / 419.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/0.3694, allocations: 0.84 MB / 420.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002176/0.3696, allocations: 83.55 kB / 420.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.3697, allocations: 43.42 kB / 420.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3698, allocations: 3.938 kB / 420.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of Templates: time 0.01125/0.381, allocations: 5.5 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