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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.623/1.623, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.24e-05/2.251e-05, allocations: 4 kB / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07462/0.07468, allocations: 38.76 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2975/0.3722, allocations: 69.13 MB / 330.4 MB, free: 3.168 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.3725, allocations: 65.53 kB / 330.5 MB, free: 3.137 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02087/0.3934, allocations: 4.958 MB / 335.4 MB, free: 14.89 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.323e-06/0.3934, allocations: 0 / 335.4 MB, free: 14.89 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.83e-05/0.3935, allocations: 15.98 kB / 335.4 MB, free: 14.88 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.00112/0.3946, allocations: 0.6456 MB / 336.1 MB, free: 14.19 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3946, allocations: 8.031 kB / 336.1 MB, free: 14.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.3948, allocations: 47.44 kB / 336.1 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005198/0.3953, allocations: 288.5 kB / 336.4 MB, free: 13.84 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.447e-05/0.3954, allocations: 46.42 kB / 336.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.578e-05/0.3955, allocations: 27.98 kB / 336.5 MB, free: 13.76 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005398/0.3961, allocations: 213.6 kB / 336.7 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006904/0.3968, allocations: 340.8 kB / 337 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.3968, allocations: 0 / 337 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.119e-05/0.3969, allocations: 8 kB / 337 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-05/0.3969, allocations: 16.42 kB / 337.1 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00237/0.3993, allocations: 1.499 MB / 338.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005574/0.3999, allocations: 259.5 kB / 338.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.4001, allocations: 116.4 kB / 338.9 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.732e-05/0.4002, allocations: 12.12 kB / 338.9 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005259/0.4008, allocations: 344 kB / 339.3 MB, free: 11.2 MB / 282.7 MB Notification: Performance of pre-optimization done (n=36): time 3.57e-06/0.4008, allocations: 0 / 339.3 MB, free: 11.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009777/0.4018, allocations: 321.2 kB / 339.6 MB, free: 10.95 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.4019, allocations: 199.4 kB / 339.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003531/0.4023, allocations: 245.5 kB / 340 MB, free: 10.51 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.908e-05/0.4024, allocations: 41.56 kB / 340.1 MB, free: 10.47 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.4026, allocations: 235.1 kB / 340.3 MB, free: 10.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.733e-05/0.4027, allocations: 76.42 kB / 340.4 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.469e-05/0.4027, allocations: 0 / 340.4 MB, free: 10.2 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.4029, allocations: 337.1 kB / 340.7 MB, free: 9.875 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000244/0.4032, allocations: 103.9 kB / 340.8 MB, free: 9.809 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003529/0.4035, allocations: 219.4 kB / 341 MB, free: 9.586 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004713/0.404, allocations: 127.7 kB / 341.1 MB, free: 9.492 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.159e-06/0.4041, allocations: 4 kB / 341.1 MB, free: 9.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001039/0.4051, allocations: 379.4 kB / 341.5 MB, free: 9.18 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.184e-05/0.4052, allocations: 92.53 kB / 341.6 MB, free: 9.074 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.4052, allocations: 4 kB / 341.6 MB, free: 9.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/0.4053, allocations: 8 kB / 341.6 MB, free: 9.062 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.4054, allocations: 35.73 kB / 341.6 MB, free: 9.031 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.932e-05/0.4055, allocations: 11.98 kB / 341.7 MB, free: 9.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002963/0.4058, allocations: 32.33 kB / 341.7 MB, free: 8.988 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.065e-05/0.4059, allocations: 19.52 kB / 341.7 MB, free: 8.973 MB / 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 () * 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.0002743/0.4061, allocations: 224.4 kB / 341.9 MB, free: 8.738 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.746e-05/0.4062, allocations: 35.62 kB / 342 MB, free: 8.703 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006937/0.4069, allocations: 225.1 kB / 342.2 MB, free: 8.527 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.407, allocations: 7.984 kB / 342.2 MB, free: 8.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.407, allocations: 0 / 342.2 MB, free: 8.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.222e-06/0.407, allocations: 0 / 342.2 MB, free: 8.52 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/0.4088, allocations: 0.8475 MB / 343 MB, free: 7.762 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4089, allocations: 0 / 343 MB, free: 7.762 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.899e-05/0.4089, allocations: 14.8 kB / 343 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-06/0.409, allocations: 4 kB / 343 MB, free: 7.746 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.32e-05/0.409, allocations: 15.11 kB / 343.1 MB, free: 7.734 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.847e-06/0.409, allocations: 3.984 kB / 343.1 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.937e-06/0.409, allocations: 4 kB / 343.1 MB, free: 7.727 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.4101, allocations: 0.5531 MB / 343.6 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.4102, allocations: 100.7 kB / 343.7 MB, free: 7.098 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.683e-05/0.4103, allocations: 11.56 kB / 343.7 MB, free: 7.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003388/0.4107, allocations: 27.92 kB / 343.8 MB, free: 7.062 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.4108, allocations: 46.19 kB / 343.8 MB, free: 7.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.184e-05/0.4109, allocations: 15.31 kB / 343.8 MB, free: 7.012 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002101/0.4111, allocations: 162.1 kB / 344 MB, free: 6.879 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.94e-07/0.4111, allocations: 0 / 344 MB, free: 6.879 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007491/0.4119, allocations: 88.12 kB / 344.1 MB, free: 6.793 MB / 282.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) * 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.0003674/0.4123, allocations: 168.1 kB / 344.2 MB, free: 6.629 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008697/0.4132, allocations: 472.7 kB / 344.7 MB, free: 6.215 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.4132, allocations: 0 / 344.7 MB, free: 6.215 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004526/0.4137, allocations: 290 kB / 345 MB, free: 5.973 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005075/0.4142, allocations: 40.53 kB / 345 MB, free: 5.941 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.4155, allocations: 490.2 kB / 345.5 MB, free: 5.484 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005781/0.4161, allocations: 0.8107 MB / 346.3 MB, free: 4.652 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.4162, allocations: 31.42 kB / 346.3 MB, free: 4.625 MB / 282.7 MB Notification: Performance of SimCode: time 2.127e-06/0.4162, allocations: 0 / 346.3 MB, free: 4.625 MB / 282.7 MB Notification: Performance of Templates: time 0.00978/0.426, allocations: 4.51 MB / 350.8 MB, free: 148 kB / 282.7 MB