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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 221.3 MB / 235.5 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008248/0.0008247, allocations: 90.98 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.568e-05/2.588e-05, allocations: 4 kB / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08889/0.08893, allocations: 50.43 MB / 394.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2891/0.3781, allocations: 83.79 MB / 478 MB, free: 3.738 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001823/0.3783, allocations: 75.78 kB / 478.1 MB, free: 3.668 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02384/0.4022, allocations: 9.212 MB / 487.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4022, allocations: 0 / 487.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.329e-05/0.4023, allocations: 11.94 kB / 487.3 MB, free: 10.42 MB / 362.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.001067/0.4033, allocations: 0.7356 MB / 488.1 MB, free: 9.625 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.4034, allocations: 8.031 kB / 488.1 MB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.4035, allocations: 59.3 kB / 488.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006493/0.4042, allocations: 388.3 kB / 488.5 MB, free: 9.137 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.424e-05/0.4043, allocations: 62.42 kB / 488.6 MB, free: 9.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.263e-05/0.4044, allocations: 36 kB / 488.6 MB, free: 9.035 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006886/0.4051, allocations: 422.6 kB / 489 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.4051, allocations: 0 / 489 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.257e-05/0.4051, allocations: 16 kB / 489 MB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.956e-05/0.4052, allocations: 16.39 kB / 489 MB, free: 8.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004379/0.4056, allocations: 245.5 kB / 489.3 MB, free: 8.312 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.4075, allocations: 1.659 MB / 490.9 MB, free: 6.566 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004884/0.408, allocations: 295.8 kB / 491.2 MB, free: 6.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.4082, allocations: 122.5 kB / 491.4 MB, free: 6.121 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.041e-05/0.4082, allocations: 19.98 kB / 491.4 MB, free: 6.102 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003712/0.4086, allocations: 316.6 kB / 491.7 MB, free: 5.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.974e-06/0.4086, allocations: 0 / 491.7 MB, free: 5.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006321/0.4093, allocations: 365.4 kB / 492 MB, free: 5.387 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.907e-05/0.4094, allocations: 166.1 kB / 492.2 MB, free: 5.188 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005143/0.4099, allocations: 446.5 kB / 492.6 MB, free: 4.746 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.177e-05/0.4099, allocations: 37.7 kB / 492.7 MB, free: 4.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.4101, allocations: 228.6 kB / 492.9 MB, free: 4.477 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.13e-05/0.4102, allocations: 90.94 kB / 493 MB, free: 4.387 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.4102, allocations: 8 kB / 493 MB, free: 4.379 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.4103, allocations: 358.8 kB / 493.3 MB, free: 4.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.4105, allocations: 109.1 kB / 493.5 MB, free: 3.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.4108, allocations: 258.7 kB / 493.7 MB, free: 3.598 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.411, allocations: 158.8 kB / 493.9 MB, free: 3.438 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.411, allocations: 0 / 493.9 MB, free: 3.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006075/0.4116, allocations: 468.5 kB / 494.3 MB, free: 2.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.4117, allocations: 37.7 kB / 494.4 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.4117, allocations: 4 kB / 494.4 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.4117, allocations: 7.984 kB / 494.4 MB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.4118, allocations: 43.86 kB / 494.4 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.4119, allocations: 8 kB / 494.4 MB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/0.4121, allocations: 36.16 kB / 494.5 MB, free: 2.828 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.265e-05/0.4122, allocations: 24 kB / 494.5 MB, free: 2.805 MB / 362.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,rSFlipFlop.S,rSFlipFlop.R,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 () * 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.0001537/0.4123, allocations: 199.8 kB / 494.7 MB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.616e-05/0.4124, allocations: 47.44 kB / 494.7 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006121/0.413, allocations: 407.3 kB / 495.1 MB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/0.413, allocations: 4 kB / 495.1 MB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.413, allocations: 96 / 495.1 MB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4131, allocations: 7.922 kB / 495.1 MB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009852/0.414, allocations: 0.7899 MB / 495.9 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.4141, allocations: 0 / 495.9 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.591e-05/0.4141, allocations: 23.92 kB / 495.9 MB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.4142, allocations: 0 / 495.9 MB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.4142, allocations: 19.98 kB / 496 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4142, allocations: 0 / 496 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.4142, allocations: 7.953 kB / 496 MB, free: 1.234 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005833/0.4148, allocations: 0.5247 MB / 496.5 MB, free: 0.668 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.845e-05/0.4149, allocations: 132.4 kB / 496.6 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.514e-05/0.415, allocations: 16 kB / 496.6 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.4152, allocations: 27.98 kB / 496.7 MB, free: 488 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.4153, allocations: 43.92 kB / 496.7 MB, free: 444 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/0.4153, allocations: 15.98 kB / 496.7 MB, free: 428 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003033/0.4157, allocations: 321.2 kB / 497 MB, free: 108 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4157, allocations: 0 / 497 MB, free: 108 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004431/0.4161, allocations: 116.2 kB / 497.2 MB, free: 15.99 MB / 378.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,rSFlipFlop.S,rSFlipFlop.R,$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 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.0008505/0.417, allocations: 422.8 kB / 497.6 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005866/0.4176, allocations: 391.2 kB / 497.9 MB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4176, allocations: 0 / 497.9 MB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002816/0.4179, allocations: 235.2 kB / 498.2 MB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/0.4183, allocations: 66.89 kB / 498.2 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/0.4193, allocations: 0.6059 MB / 498.8 MB, free: 14.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.4197, allocations: 0.8597 MB / 499.7 MB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002019/0.4199, allocations: 83.66 kB / 499.8 MB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.42, allocations: 43.42 kB / 499.8 MB, free: 13.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.42, allocations: 0 / 499.8 MB, free: 13.34 MB / 378.7 MB Notification: Performance of Templates: time 0.009268/0.4293, allocations: 5.109 MB / 0.4931 GB, free: 8.254 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches