Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.BooleanNetwork1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 1.728/1.728, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003568, allocations: 12 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.0897, allocations: 44.5 MB / 308.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3668/0.4565, allocations: 75.18 MB / 383.6 MB, free: 18.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/0.4568, allocations: 68.97 kB / 383.7 MB, free: 18.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01907/0.4759, allocations: 4.999 MB / 388.7 MB, free: 18.13 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.946e-06/0.4759, allocations: 4 kB / 388.7 MB, free: 18.13 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.837e-05/0.4759, allocations: 15.5 kB / 388.7 MB, free: 18.12 MB / 314.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.0009927/0.4769, allocations: 0.6802 MB / 389.4 MB, free: 17.58 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.477, allocations: 11.66 kB / 389.4 MB, free: 17.58 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.4771, allocations: 51 kB / 389.4 MB, free: 17.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003885/0.4775, allocations: 294.3 kB / 389.7 MB, free: 17.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.199e-05/0.4776, allocations: 52.95 kB / 389.8 MB, free: 17.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.614e-05/0.4777, allocations: 38.19 kB / 389.8 MB, free: 17.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007037/0.4784, allocations: 409.5 kB / 390.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.4784, allocations: 3.938 kB / 390.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.654e-05/0.4785, allocations: 13.67 kB / 390.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.357e-05/0.4786, allocations: 14.22 kB / 390.2 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005939/0.4792, allocations: 244.4 kB / 390.5 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.4811, allocations: 1.571 MB / 392.1 MB, free: 16.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000592/0.4817, allocations: 286.8 kB / 392.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.508e-05/0.4818, allocations: 11.03 kB / 392.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004704/0.4823, allocations: 346 kB / 392.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.993e-06/0.4823, allocations: 4 kB / 392.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.001191/0.4835, allocations: 0.668 MB / 393.4 MB, free: 15.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.4836, allocations: 202.4 kB / 393.6 MB, free: 15.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000308/0.4839, allocations: 258 kB / 393.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.484, allocations: 39.55 kB / 393.8 MB, free: 15.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.4841, allocations: 239.2 kB / 394.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.44e-05/0.4842, allocations: 82.5 kB / 394.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.76e-05/0.4842, allocations: 15.19 kB / 394.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.543e-05/0.4843, allocations: 333.1 kB / 394.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/0.4846, allocations: 111.9 kB / 394.6 MB, free: 14.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003333/0.485, allocations: 242.2 kB / 394.8 MB, free: 14.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.4853, allocations: 223.2 kB / 395.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.715e-06/0.4853, allocations: 0 / 395.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009464/0.4863, allocations: 0.517 MB / 395.6 MB, free: 14.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.4864, allocations: 91.5 kB / 395.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.4864, allocations: 6.266 kB / 395.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.4864, allocations: 7.75 kB / 395.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.4866, allocations: 34.06 kB / 395.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.4866, allocations: 7.016 kB / 395.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002799/0.4869, allocations: 45.02 kB / 395.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.4869, allocations: 22.69 kB / 395.8 MB, free: 14.03 MB / 314.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.0002998/0.4873, allocations: 256.6 kB / 396 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.076e-05/0.4873, allocations: 35.03 kB / 396.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005699/0.4879, allocations: 251.7 kB / 396.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.546e-06/0.4879, allocations: 3.938 kB / 396.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.14e-06/0.488, allocations: 7.672 kB / 396.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.3e-06/0.488, allocations: 0 / 396.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.4895, allocations: 0.9929 MB / 397.3 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.194e-06/0.4895, allocations: 7.891 kB / 397.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.193e-05/0.4896, allocations: 17.5 kB / 397.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.974e-06/0.4896, allocations: 0 / 397.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/0.4896, allocations: 13.78 kB / 397.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.265e-06/0.4897, allocations: 3.625 kB / 397.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.03e-06/0.4897, allocations: 2.484 kB / 397.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008939/0.4906, allocations: 0.6421 MB / 398 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.838e-05/0.4907, allocations: 103.6 kB / 398.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.936e-05/0.4908, allocations: 15.41 kB / 398.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003266/0.4911, allocations: 30 kB / 398.2 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.4912, allocations: 33.75 kB / 398.2 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-05/0.4913, allocations: 21.97 kB / 398.2 MB, free: 12.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000183/0.4915, allocations: 175.8 kB / 398.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.15e-07/0.4915, allocations: 0 / 398.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00067/0.4922, allocations: 99.5 kB / 398.5 MB, free: 12.77 MB / 314.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.0002699/0.4925, allocations: 175.8 kB / 398.7 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007837/0.4933, allocations: 0.4975 MB / 399.2 MB, free: 12.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.451e-06/0.4933, allocations: 3.953 kB / 399.2 MB, free: 12.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004302/0.4937, allocations: 320.9 kB / 399.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004591/0.4942, allocations: 46.02 kB / 399.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.4955, allocations: 0.7221 MB / 400.2 MB, free: 11.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.4958, allocations: 0.8084 MB / 401 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.4959, allocations: 32.09 kB / 401.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of SimCode: time 1.555e-06/0.4959, allocations: 3.844 kB / 401.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of Templates: time 0.00822/0.5042, allocations: 4.551 MB / 405.6 MB, free: 10.77 MB / 314.7 MB