Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001104/0.001104, allocations: 183.6 kB / 18.04 MB, free: 3.664 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.279/1.279, allocations: 205.4 MB / 224.2 MB, free: 8.945 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.0007498/0.0007497, allocations: 93.72 kB / 272.5 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005218/0.0005219, allocations: 8 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2712, allocations: 47.57 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.4022, allocations: 82.72 MB / 459.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.4025, allocations: 79.97 kB / 459.8 MB, free: 13.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03661/0.4392, allocations: 9.097 MB / 468.9 MB, free: 4.625 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4392, allocations: 4 kB / 468.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.951e-05/0.4393, allocations: 16 kB / 468.9 MB, free: 4.605 MB / 346.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.001902/0.4412, allocations: 0.7783 MB / 469.7 MB, free: 3.766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.4413, allocations: 12.03 kB / 469.7 MB, free: 3.754 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002252/0.4415, allocations: 56.28 kB / 469.8 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009891/0.4425, allocations: 403.1 kB / 470.2 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.4426, allocations: 63.2 kB / 470.2 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.724e-05/0.4427, allocations: 36.38 kB / 470.3 MB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.4438, allocations: 429.3 kB / 470.7 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.4438, allocations: 3.938 kB / 470.7 MB, free: 2.703 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.908e-05/0.4439, allocations: 19.97 kB / 470.7 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.458e-05/0.4439, allocations: 12.44 kB / 470.7 MB, free: 2.672 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007552/0.4447, allocations: 261.5 kB / 471 MB, free: 2.418 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002861/0.4476, allocations: 1.663 MB / 472.6 MB, free: 0.668 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000821/0.4484, allocations: 291.9 kB / 472.9 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003432/0.4488, allocations: 138.5 kB / 473.1 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.286e-05/0.4489, allocations: 15.98 kB / 473.1 MB, free: 200 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006522/0.4495, allocations: 332.3 kB / 473.4 MB, free: 15.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.617e-06/0.4496, allocations: 0 / 473.4 MB, free: 15.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.001415/0.451, allocations: 486.5 kB / 473.9 MB, free: 15.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.4511, allocations: 166.1 kB / 474 MB, free: 15.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008621/0.452, allocations: 485.2 kB / 474.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.321e-05/0.4521, allocations: 45.69 kB / 474.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002338/0.4523, allocations: 232.5 kB / 474.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.4524, allocations: 79.09 kB / 474.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/0.4525, allocations: 12 kB / 474.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.4527, allocations: 358.8 kB / 475.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.453, allocations: 117 kB / 475.3 MB, free: 13.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004939/0.4536, allocations: 266.7 kB / 475.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008439/0.4544, allocations: 416.5 kB / 476 MB, free: 13.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.4544, allocations: 4 kB / 476 MB, free: 13.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001194/0.4556, allocations: 478.2 kB / 476.5 MB, free: 12.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.228e-05/0.4557, allocations: 39.67 kB / 476.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.4557, allocations: 4 kB / 476.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/0.4558, allocations: 11.98 kB / 476.5 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002124/0.456, allocations: 39.86 kB / 476.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.456, allocations: 8.469 kB / 476.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003991/0.4564, allocations: 52.12 kB / 476.6 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.028e-05/0.4565, allocations: 20 kB / 476.6 MB, free: 12.36 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 () * 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.0003907/0.4569, allocations: 260.5 kB / 476.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.4571, allocations: 47.44 kB / 476.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.4582, allocations: 406.9 kB / 477.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.4582, allocations: 7.984 kB / 477.4 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.4582, allocations: 0 / 477.4 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.4583, allocations: 7.938 kB / 477.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.4598, allocations: 0.8065 MB / 478.2 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4599, allocations: 0 / 478.2 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.081e-05/0.46, allocations: 19.92 kB / 478.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.46, allocations: 4 kB / 478.2 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-05/0.46, allocations: 11.98 kB / 478.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.46, allocations: 4 kB / 478.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.46, allocations: 3.938 kB / 478.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009587/0.461, allocations: 0.5177 MB / 478.7 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.4612, allocations: 132.5 kB / 478.9 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.6e-05/0.4613, allocations: 8 kB / 478.9 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/0.4616, allocations: 35.97 kB / 478.9 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.4618, allocations: 43.97 kB / 478.9 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.204e-05/0.4618, allocations: 19.94 kB / 479 MB, free: 9.902 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000545/0.4624, allocations: 315.1 kB / 479.3 MB, free: 9.598 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4624, allocations: 0 / 479.3 MB, free: 9.598 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007202/0.4631, allocations: 120.2 kB / 479.4 MB, free: 9.48 MB / 362.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) * Number of clocked states: 0 () * 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.001361/0.4645, allocations: 470.7 kB / 479.8 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009412/0.4655, allocations: 411.2 kB / 480.2 MB, free: 8.629 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4655, allocations: 4.312 kB / 480.3 MB, free: 8.625 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004824/0.466, allocations: 243.1 kB / 480.5 MB, free: 8.375 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008137/0.4668, allocations: 89.75 kB / 480.6 MB, free: 8.285 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.4687, allocations: 0.8855 MB / 481.5 MB, free: 7.363 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005209/0.4692, allocations: 0.8403 MB / 482.3 MB, free: 6.496 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00035/0.4696, allocations: 71.27 kB / 482.4 MB, free: 6.426 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.4698, allocations: 47.42 kB / 482.4 MB, free: 6.379 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4698, allocations: 0 / 482.4 MB, free: 6.379 MB / 362.7 MB Notification: Performance of Templates: time 0.01555/0.4854, allocations: 5.168 MB / 487.6 MB, free: 1.207 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/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_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches