Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.909/1.909, allocations: 171.1 MB / 187.3 MB, free: 1.148 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003677, allocations: 8 kB / 233.8 MB, free: 3.09 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09571/0.09611, allocations: 38.77 MB / 272.5 MB, free: 12.25 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.357/0.4531, allocations: 69.85 MB / 342.4 MB, free: 4.246 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.4535, allocations: 71.78 kB / 342.5 MB, free: 4.211 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02327/0.4768, allocations: 5.016 MB / 347.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4768, allocations: 4 kB / 347.5 MB, free: 15.85 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.69e-05/0.4769, allocations: 12 kB / 347.5 MB, free: 15.84 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.001435/0.4783, allocations: 0.6749 MB / 348.2 MB, free: 15.12 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.4784, allocations: 11.97 kB / 348.2 MB, free: 15.11 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.4786, allocations: 47.44 kB / 348.2 MB, free: 15.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005977/0.4792, allocations: 289.9 kB / 348.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.953e-05/0.4793, allocations: 52.98 kB / 348.6 MB, free: 14.72 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-05/0.4794, allocations: 42.64 kB / 348.6 MB, free: 14.69 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009928/0.4804, allocations: 412.9 kB / 349 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.4804, allocations: 0 / 349 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.229e-05/0.4805, allocations: 22.86 kB / 349 MB, free: 14.33 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.972e-05/0.4806, allocations: 12.44 kB / 349 MB, free: 14.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007687/0.4813, allocations: 247.2 kB / 349.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002753/0.4841, allocations: 1.572 MB / 350.9 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007629/0.4849, allocations: 272.8 kB / 351.1 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.664e-05/0.485, allocations: 11.98 kB / 351.1 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006591/0.4857, allocations: 357.6 kB / 351.5 MB, free: 12.06 MB / 282.7 MB Notification: Performance of pre-optimization done (n=36): time 2.896e-06/0.4857, allocations: 4 kB / 351.5 MB, free: 12.05 MB / 282.7 MB Notification: Performance of matching and sorting (n=36): time 0.001584/0.4873, allocations: 0.6618 MB / 352.1 MB, free: 11.45 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.4875, allocations: 191.9 kB / 352.3 MB, free: 11.22 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004527/0.488, allocations: 296.3 kB / 352.6 MB, free: 10.98 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.739e-05/0.4881, allocations: 45.12 kB / 352.7 MB, free: 10.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.4883, allocations: 244 kB / 352.9 MB, free: 10.73 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.4884, allocations: 77.98 kB / 353 MB, free: 10.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.104e-05/0.4884, allocations: 11.19 kB / 353 MB, free: 10.66 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4886, allocations: 329.9 kB / 353.3 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.489, allocations: 113.2 kB / 353.4 MB, free: 10.26 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004606/0.4894, allocations: 246.1 kB / 353.7 MB, free: 10.01 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004461/0.4899, allocations: 211.1 kB / 353.9 MB, free: 9.828 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.4899, allocations: 8 kB / 353.9 MB, free: 9.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001251/0.4912, allocations: 0.5073 MB / 354.4 MB, free: 9.387 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.803e-05/0.4913, allocations: 89.67 kB / 354.5 MB, free: 9.285 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.4913, allocations: 8 kB / 354.5 MB, free: 9.277 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.4914, allocations: 8 kB / 354.5 MB, free: 9.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.4916, allocations: 35.53 kB / 354.5 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.801e-05/0.4916, allocations: 8 kB / 354.5 MB, free: 9.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.492, allocations: 35.58 kB / 354.6 MB, free: 9.203 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-05/0.4921, allocations: 31.75 kB / 354.6 MB, free: 9.176 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 () * 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.000423/0.4925, allocations: 265.8 kB / 354.9 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.4926, allocations: 35.62 kB / 354.9 MB, free: 8.887 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007742/0.4934, allocations: 251.7 kB / 355.1 MB, free: 8.695 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.4934, allocations: 4 kB / 355.1 MB, free: 8.691 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.4935, allocations: 4.281 kB / 355.1 MB, free: 8.688 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.4935, allocations: 4 kB / 355.2 MB, free: 8.684 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/0.4956, allocations: 0.9923 MB / 356.1 MB, free: 7.793 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.4956, allocations: 0 / 356.1 MB, free: 7.793 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.278e-05/0.4957, allocations: 11.98 kB / 356.2 MB, free: 7.781 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-06/0.4957, allocations: 4 kB / 356.2 MB, free: 7.777 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-05/0.4958, allocations: 22.88 kB / 356.2 MB, free: 7.762 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.4958, allocations: 0 / 356.2 MB, free: 7.762 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.4958, allocations: 7.938 kB / 356.2 MB, free: 7.754 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.497, allocations: 0.6116 MB / 356.8 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.4971, allocations: 108.7 kB / 356.9 MB, free: 7.078 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.92e-05/0.4973, allocations: 18.5 kB / 356.9 MB, free: 7.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003774/0.4976, allocations: 30.88 kB / 357 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.4978, allocations: 41.06 kB / 357 MB, free: 7.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.271e-05/0.4979, allocations: 15.98 kB / 357 MB, free: 6.992 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002567/0.4982, allocations: 172.3 kB / 357.2 MB, free: 6.852 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4982, allocations: 4 kB / 357.2 MB, free: 6.848 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007709/0.4989, allocations: 107.3 kB / 357.3 MB, free: 6.754 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) * 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.0003889/0.4994, allocations: 164.2 kB / 357.5 MB, free: 6.598 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.5005, allocations: 0.5042 MB / 358 MB, free: 6.145 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.5006, allocations: 0 / 358 MB, free: 6.145 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005972/0.5012, allocations: 315.7 kB / 358.3 MB, free: 5.875 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005696/0.5018, allocations: 41.55 kB / 358.3 MB, free: 5.848 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.5036, allocations: 0.7319 MB / 359 MB, free: 5.137 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.5041, allocations: 0.7997 MB / 359.8 MB, free: 4.312 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.5043, allocations: 34.98 kB / 359.9 MB, free: 4.281 MB / 282.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5043, allocations: 0 / 359.9 MB, free: 4.281 MB / 282.7 MB Notification: Performance of Templates: time 0.01245/0.5168, allocations: 4.565 MB / 364.4 MB, free: 15.75 MB / 298.7 MB