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.0009442/0.0009442, allocations: 181 kB / 16.38 MB, free: 5.766 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.226/1.226, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008327/0.0008326, allocations: 88.16 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002857/0.0002858, allocations: 7.938 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2483, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09297/0.3414, allocations: 83.86 MB / 485.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.3416, allocations: 80.94 kB / 485.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02386/0.3655, allocations: 9.256 MB / 494.7 MB, free: 3.277 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.085e-06/0.3656, allocations: 0 / 494.7 MB, free: 3.277 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.255e-05/0.3656, allocations: 12 kB / 494.7 MB, free: 3.266 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.001229/0.3668, allocations: 0.7821 MB / 495.5 MB, free: 2.422 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.3669, allocations: 12.03 kB / 495.5 MB, free: 2.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.367, allocations: 63.3 kB / 495.5 MB, free: 2.348 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005794/0.3676, allocations: 386.2 kB / 495.9 MB, free: 1.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.696e-05/0.3677, allocations: 54.7 kB / 496 MB, free: 1.867 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.435e-05/0.3677, allocations: 40 kB / 496 MB, free: 1.828 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006136/0.3683, allocations: 428.7 kB / 496.4 MB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.3684, allocations: 3.938 kB / 496.4 MB, free: 1.371 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.3684, allocations: 19.98 kB / 496.5 MB, free: 1.352 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.641e-05/0.3684, allocations: 20.33 kB / 496.5 MB, free: 1.332 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004343/0.3689, allocations: 257.5 kB / 496.7 MB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.3707, allocations: 1.671 MB / 498.4 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005229/0.3712, allocations: 303.8 kB / 498.7 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.241e-05/0.3713, allocations: 11.98 kB / 498.7 MB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004218/0.3717, allocations: 324.8 kB / 499 MB, free: 14.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.224e-06/0.3718, allocations: 0 / 499 MB, free: 14.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.000888/0.3727, allocations: 0.5542 MB / 499.6 MB, free: 14.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/0.3727, allocations: 166.2 kB / 499.7 MB, free: 13.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000468/0.3732, allocations: 444.5 kB / 0.4885 GB, free: 13.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.086e-05/0.3733, allocations: 37.7 kB / 0.4885 GB, free: 13.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.3734, allocations: 228.6 kB / 0.4887 GB, free: 13.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.529e-05/0.3735, allocations: 79.11 kB / 0.4888 GB, free: 13.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.79e-05/0.3735, allocations: 8 kB / 0.4888 GB, free: 13.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3736, allocations: 362.7 kB / 0.4891 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.3739, allocations: 117.1 kB / 0.4892 GB, free: 12.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.3741, allocations: 266.6 kB / 0.4895 GB, free: 12.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002387/0.3744, allocations: 169.7 kB / 0.4897 GB, free: 12.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3744, allocations: 4 kB / 0.4897 GB, free: 12.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006856/0.3751, allocations: 476.4 kB / 0.4901 GB, free: 11.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.3752, allocations: 37.69 kB / 0.4902 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.3752, allocations: 4 kB / 0.4902 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.3752, allocations: 8 kB / 0.4902 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.3753, allocations: 47.84 kB / 0.4902 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.3753, allocations: 4 kB / 0.4902 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.3756, allocations: 48.05 kB / 0.4903 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.253e-05/0.3756, allocations: 20 kB / 0.4903 GB, free: 11.42 MB / 378.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.0002469/0.3759, allocations: 251.5 kB / 0.4905 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.496e-05/0.376, allocations: 47.44 kB / 0.4906 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007003/0.3767, allocations: 432.9 kB / 0.491 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.3767, allocations: 4 kB / 0.491 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3767, allocations: 4 kB / 0.491 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.3767, allocations: 3.938 kB / 0.491 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.3777, allocations: 0.8138 MB / 0.4918 GB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3778, allocations: 3.938 kB / 0.4918 GB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.736e-05/0.3778, allocations: 12.09 kB / 0.4918 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.3778, allocations: 7.938 kB / 0.4918 GB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.3779, allocations: 11.98 kB / 0.4918 GB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.3779, allocations: 4 kB / 0.4918 GB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3779, allocations: 7.891 kB / 0.4918 GB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/0.3785, allocations: 0.5365 MB / 0.4924 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.3787, allocations: 128.5 kB / 0.4925 GB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.25e-05/0.3787, allocations: 15.95 kB / 0.4925 GB, free: 9.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.3789, allocations: 27.98 kB / 0.4925 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-05/0.379, allocations: 39.94 kB / 0.4926 GB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.48e-05/0.3791, allocations: 19.98 kB / 0.4926 GB, free: 8.934 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003091/0.3794, allocations: 319.1 kB / 0.4929 GB, free: 8.629 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.382e-06/0.3794, allocations: 3.938 kB / 0.4929 GB, free: 8.625 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004491/0.3799, allocations: 116.1 kB / 0.493 GB, free: 8.512 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) * 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.0009265/0.3808, allocations: 473.5 kB / 0.4934 GB, free: 8.207 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006255/0.3814, allocations: 399.9 kB / 0.4938 GB, free: 7.805 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3814, allocations: 192 / 0.4938 GB, free: 7.805 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003058/0.3818, allocations: 251.1 kB / 0.4941 GB, free: 7.547 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.3822, allocations: 69.89 kB / 0.4941 GB, free: 7.477 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.3834, allocations: 0.878 MB / 0.495 GB, free: 6.562 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.3838, allocations: 0.8481 MB / 0.4958 GB, free: 5.684 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001984/0.384, allocations: 83.66 kB / 0.4959 GB, free: 5.602 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.3841, allocations: 43.42 kB / 0.4959 GB, free: 5.559 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3841, allocations: 0 / 0.4959 GB, free: 5.559 MB / 378.7 MB Notification: Performance of Templates: time 0.009018/0.3931, allocations: 5.108 MB / 0.5009 GB, free: 492 kB / 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