Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.BooleanNetwork1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 1.6/1.6, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003588, allocations: 8 kB / 233.2 MB, free: 0.9414 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07185/0.07224, allocations: 38.77 MB / 272 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2854/0.3577, allocations: 69.87 MB / 341.9 MB, free: 13.2 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.358, allocations: 71.95 kB / 341.9 MB, free: 13.12 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0214/0.3794, allocations: 5.008 MB / 346.9 MB, free: 8.105 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.522e-06/0.3795, allocations: 0 / 346.9 MB, free: 8.105 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.19e-05/0.3795, allocations: 12 kB / 347 MB, free: 8.094 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001236/0.3808, allocations: 0.6769 MB / 347.6 MB, free: 7.352 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3808, allocations: 8.031 kB / 347.6 MB, free: 7.344 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.3809, allocations: 47.44 kB / 347.7 MB, free: 7.297 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005413/0.3815, allocations: 293.6 kB / 348 MB, free: 6.969 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.3816, allocations: 62.34 kB / 348 MB, free: 6.902 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.341e-05/0.3817, allocations: 39.95 kB / 348.1 MB, free: 6.863 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008976/0.3826, allocations: 409.7 kB / 348.5 MB, free: 6.426 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.3827, allocations: 0 / 348.5 MB, free: 6.426 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.348e-05/0.3827, allocations: 19.98 kB / 348.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/0.3828, allocations: 16.44 kB / 348.5 MB, free: 6.391 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006502/0.3834, allocations: 245.4 kB / 348.8 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002597/0.3861, allocations: 1.569 MB / 350.3 MB, free: 4.496 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007068/0.3868, allocations: 273.6 kB / 350.6 MB, free: 4.203 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.109e-05/0.3869, allocations: 12.14 kB / 350.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006373/0.3876, allocations: 357.3 kB / 350.9 MB, free: 3.793 MB / 282.7 MB Notification: Performance of pre-optimization done (n=36): time 3.731e-06/0.3876, allocations: 0 / 350.9 MB, free: 3.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=36): time 0.001443/0.389, allocations: 0.666 MB / 351.6 MB, free: 3.074 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/0.3892, allocations: 195.9 kB / 351.8 MB, free: 2.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004284/0.3896, allocations: 257.6 kB / 352.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.435e-05/0.3897, allocations: 41.7 kB / 352.1 MB, free: 2.535 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.39, allocations: 247 kB / 352.3 MB, free: 2.289 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.3901, allocations: 79.14 kB / 352.4 MB, free: 2.211 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.763e-05/0.3901, allocations: 12 kB / 352.4 MB, free: 2.199 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.3903, allocations: 334.8 kB / 352.8 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003297/0.3907, allocations: 109.1 kB / 352.9 MB, free: 1.758 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004362/0.3911, allocations: 244 kB / 353.1 MB, free: 1.465 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004162/0.3915, allocations: 221.1 kB / 353.3 MB, free: 1.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.774e-06/0.3916, allocations: 0 / 353.3 MB, free: 1.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00117/0.3927, allocations: 0.5099 MB / 353.8 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.446e-05/0.3929, allocations: 89.53 kB / 353.9 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.3929, allocations: 8.281 kB / 353.9 MB, free: 0.582 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/0.3929, allocations: 12.03 kB / 353.9 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.3931, allocations: 35.86 kB / 354 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.3931, allocations: 11.92 kB / 354 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003383/0.3935, allocations: 43.83 kB / 354 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.556e-05/0.3935, allocations: 20 kB / 354 MB, free: 472 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.onDelay.u,$PRE.onDelay.t_next,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,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 (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 3 * 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.0004306/0.394, allocations: 265 kB / 354.3 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-05/0.3941, allocations: 31.62 kB / 354.3 MB, free: 152 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000713/0.3948, allocations: 255.5 kB / 354.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.3949, allocations: 7.984 kB / 354.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.229e-06/0.3949, allocations: 8 kB / 354.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.331e-06/0.3949, allocations: 0 / 354.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/0.3969, allocations: 0.9848 MB / 355.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.524e-06/0.3969, allocations: 0 / 355.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.108e-05/0.397, allocations: 15.98 kB / 355.6 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.397, allocations: 8 kB / 355.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.345e-05/0.3971, allocations: 8 kB / 355.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.288e-05/0.3971, allocations: 11.89 kB / 355.6 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.551e-06/0.3971, allocations: 0 / 355.6 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.3983, allocations: 0.646 MB / 356.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.3985, allocations: 104.7 kB / 356.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.964e-05/0.3986, allocations: 15.98 kB / 356.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003641/0.399, allocations: 23.98 kB / 356.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.3991, allocations: 39.94 kB / 356.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.578e-05/0.3992, allocations: 16 kB / 356.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002769/0.3995, allocations: 182 kB / 356.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.3995, allocations: 3.938 kB / 356.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007403/0.4003, allocations: 103.9 kB / 356.7 MB, free: 13.59 MB / 298.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: 38 (onDelay.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulsStart,booleanPulse2.pulsStart,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: 14 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,rSFlipFlop.pre.u,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay.t_next,onDelay.delaySignal,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 3 * 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.0003581/0.4007, allocations: 157.7 kB / 356.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.4018, allocations: 0.5057 MB / 357.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.424e-06/0.4018, allocations: 0 / 357.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005672/0.4024, allocations: 309.9 kB / 357.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.4029, allocations: 49.5 kB / 357.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.4046, allocations: 0.7346 MB / 358.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005542/0.4052, allocations: 0.7997 MB / 359.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.4054, allocations: 39.36 kB / 359.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of SimCode: time 5.163e-06/0.4054, allocations: 0 / 359.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of Templates: time 0.01028/0.4157, allocations: 4.561 MB / 363.9 MB, free: 6.32 MB / 298.7 MB