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 / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.738e-05/2.782e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2036, allocations: 38.76 MB / 267.6 MB, free: 9.441 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1056/0.3092, allocations: 69.79 MB / 337.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.3095, allocations: 63.97 kB / 337.4 MB, free: 3.484 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02107/0.3306, allocations: 4.988 MB / 342.4 MB, free: 14.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.956e-06/0.3306, allocations: 0 / 342.4 MB, free: 14.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.205e-05/0.3307, allocations: 12 kB / 342.4 MB, free: 14.46 MB / 298.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.001114/0.3318, allocations: 0.6532 MB / 343.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3319, allocations: 8.031 kB / 343.1 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.332, allocations: 51.42 kB / 343.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005176/0.3325, allocations: 281.7 kB / 343.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.627e-05/0.3326, allocations: 62.42 kB / 343.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.767e-05/0.3327, allocations: 36 kB / 343.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000839/0.3336, allocations: 401 kB / 343.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.3336, allocations: 3.938 kB / 343.9 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.131e-05/0.3337, allocations: 12 kB / 343.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.492e-05/0.3337, allocations: 16.38 kB / 343.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005824/0.3343, allocations: 233.6 kB / 344.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.3368, allocations: 1.581 MB / 345.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006293/0.3375, allocations: 268.7 kB / 346 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.3378, allocations: 118.6 kB / 346.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.699e-05/0.3379, allocations: 11.98 kB / 346.1 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005664/0.3384, allocations: 345.4 kB / 346.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 4.25e-06/0.3385, allocations: 0 / 346.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009455/0.3394, allocations: 407.8 kB / 346.9 MB, free: 9.688 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.3396, allocations: 199.8 kB / 347.1 MB, free: 9.449 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003834/0.34, allocations: 259 kB / 347.3 MB, free: 9.184 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.043e-05/0.3401, allocations: 41.7 kB / 347.4 MB, free: 9.137 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/0.3403, allocations: 247 kB / 347.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.3404, allocations: 79.11 kB / 347.7 MB, free: 8.816 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.973e-05/0.3405, allocations: 12 kB / 347.7 MB, free: 8.805 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3406, allocations: 334.8 kB / 348 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.3409, allocations: 105.1 kB / 348.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003934/0.3413, allocations: 240.1 kB / 348.4 MB, free: 8.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000365/0.3417, allocations: 201 kB / 348.6 MB, free: 7.867 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.873e-06/0.3417, allocations: 0 / 348.6 MB, free: 7.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001032/0.3428, allocations: 0.502 MB / 349.1 MB, free: 7.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.034e-05/0.3429, allocations: 93.09 kB / 349.1 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3429, allocations: 4 kB / 349.1 MB, free: 7.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.343, allocations: 8 kB / 349.2 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.3431, allocations: 35.84 kB / 349.2 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.3431, allocations: 8.438 kB / 349.2 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/0.3434, allocations: 43.83 kB / 349.2 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.055e-05/0.3435, allocations: 24 kB / 349.3 MB, free: 7.109 MB / 298.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.000264/0.3438, allocations: 228.1 kB / 349.5 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.708e-05/0.3439, allocations: 31.62 kB / 349.5 MB, free: 6.836 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006002/0.3445, allocations: 243.7 kB / 349.8 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.202e-06/0.3445, allocations: 7.938 kB / 349.8 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.683e-06/0.3446, allocations: 0 / 349.8 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.3446, allocations: 7.984 kB / 349.8 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.3464, allocations: 0.9801 MB / 350.8 MB, free: 5.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3464, allocations: 0 / 350.8 MB, free: 5.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.297e-05/0.3465, allocations: 15.98 kB / 350.8 MB, free: 5.512 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-06/0.3465, allocations: 4 kB / 350.8 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.345e-05/0.3466, allocations: 11.98 kB / 350.8 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.346e-06/0.3466, allocations: 7.953 kB / 350.8 MB, free: 5.488 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.791e-06/0.3466, allocations: 3.938 kB / 350.8 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.3477, allocations: 0.6265 MB / 351.4 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.3478, allocations: 108.9 kB / 351.5 MB, free: 4.688 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.889e-05/0.3479, allocations: 12 kB / 351.5 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000337/0.3483, allocations: 39.97 kB / 351.6 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.3484, allocations: 31.95 kB / 351.6 MB, free: 4.605 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.672e-05/0.3485, allocations: 19.98 kB / 351.6 MB, free: 4.586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002481/0.3488, allocations: 179.1 kB / 351.8 MB, free: 4.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.6e-07/0.3488, allocations: 0 / 351.8 MB, free: 4.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006998/0.3495, allocations: 107.8 kB / 351.9 MB, free: 4.305 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) * 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.0003333/0.3498, allocations: 169.3 kB / 352.1 MB, free: 4.133 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008884/0.3507, allocations: 490.2 kB / 352.6 MB, free: 3.617 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.378e-06/0.3508, allocations: 0 / 352.6 MB, free: 3.617 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004984/0.3513, allocations: 302.7 kB / 352.8 MB, free: 3.297 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.3517, allocations: 54.62 kB / 352.9 MB, free: 3.246 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.353, allocations: 0.5084 MB / 353.4 MB, free: 2.703 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005331/0.3535, allocations: 0.8035 MB / 354.2 MB, free: 1.875 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.3537, allocations: 39.42 kB / 354.3 MB, free: 1.836 MB / 298.7 MB Notification: Performance of SimCode: time 1.751e-06/0.3537, allocations: 0 / 354.3 MB, free: 1.836 MB / 298.7 MB Notification: Performance of Templates: time 0.1812/0.5349, allocations: 4.532 MB / 358.8 MB, free: 79.07 MB / 298.7 MB