Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.812/1.812, allocations: 171.2 MB / 186.7 MB, free: 1.027 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003493, allocations: 8 kB / 233.8 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09425/0.09462, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3843/0.479, allocations: 67.69 MB / 340.3 MB, free: 5.645 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/0.4793, allocations: 74.45 kB / 340.4 MB, free: 5.605 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01321/0.4925, allocations: 2.796 MB / 343.2 MB, free: 3.199 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.4926, allocations: 0 / 343.2 MB, free: 3.199 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.532e-05/0.4926, allocations: 8 kB / 343.2 MB, free: 3.191 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001129/0.4938, allocations: 0.4906 MB / 343.7 MB, free: 2.664 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.4938, allocations: 11.97 kB / 343.7 MB, free: 2.652 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.333e-05/0.4939, allocations: 23.72 kB / 343.7 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004113/0.4943, allocations: 236 kB / 343.9 MB, free: 2.367 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.4944, allocations: 11.12 kB / 343.9 MB, free: 2.359 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.4944, allocations: 34.55 kB / 344 MB, free: 2.332 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005851/0.495, allocations: 214.5 kB / 344.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.4951, allocations: 0 / 344.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.4951, allocations: 3.562 kB / 344.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.987e-05/0.4951, allocations: 8 kB / 344.2 MB, free: 2.141 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005716/0.4957, allocations: 149 kB / 344.3 MB, free: 2.027 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.4974, allocations: 0.798 MB / 345.1 MB, free: 1.242 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.4986, allocations: 209.2 kB / 345.3 MB, free: 1.062 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.928e-05/0.4987, allocations: 0 / 345.3 MB, free: 1.062 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004892/0.4992, allocations: 151.8 kB / 345.5 MB, free: 0.918 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 3.016e-06/0.4992, allocations: 0 / 345.5 MB, free: 0.918 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.001323/0.5006, allocations: 258.4 kB / 345.7 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.469e-05/0.5007, allocations: 83.78 kB / 345.8 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004245/0.5011, allocations: 221.5 kB / 346 MB, free: 416 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.5012, allocations: 29.2 kB / 346.1 MB, free: 384 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.5014, allocations: 136.6 kB / 346.2 MB, free: 264 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.311e-05/0.5015, allocations: 49.72 kB / 346.3 MB, free: 224 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.5015, allocations: 3.375 kB / 346.3 MB, free: 224 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.5017, allocations: 332.4 kB / 346.6 MB, free: 15.89 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003907/0.5021, allocations: 74.14 kB / 346.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004703/0.5027, allocations: 133.7 kB / 346.8 MB, free: 15.7 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004241/0.5031, allocations: 86.66 kB / 346.9 MB, free: 15.64 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.5031, allocations: 0 / 346.9 MB, free: 15.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001054/0.5042, allocations: 254.7 kB / 347.1 MB, free: 15.43 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.5043, allocations: 8 kB / 347.1 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.5043, allocations: 0 / 347.1 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.5043, allocations: 8.25 kB / 347.1 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.5048, allocations: 43.91 kB / 347.2 MB, free: 15.37 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.857e-05/0.5048, allocations: 7.938 kB / 347.2 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004212/0.5053, allocations: 31.38 kB / 347.2 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-05/0.5053, allocations: 15.38 kB / 347.2 MB, free: 15.32 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0002662/0.5056, allocations: 154.7 kB / 347.4 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.882e-05/0.5057, allocations: 23.66 kB / 347.4 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004709/0.5062, allocations: 127 kB / 347.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.5062, allocations: 4 kB / 347.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.5062, allocations: 0 / 347.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.5062, allocations: 3.984 kB / 347.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.5075, allocations: 487 kB / 348 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.5076, allocations: 0 / 348 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.5078, allocations: 23.97 kB / 348 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.5079, allocations: 0 / 348 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.5079, allocations: 3.312 kB / 348 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.797e-06/0.5079, allocations: 4.312 kB / 348 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5079, allocations: 0 / 348 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009229/0.5089, allocations: 307.2 kB / 348.3 MB, free: 14.26 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/0.5091, allocations: 103.8 kB / 348.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.906e-05/0.5091, allocations: 3.125 kB / 348.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003951/0.5096, allocations: 23.98 kB / 348.5 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.5097, allocations: 20.78 kB / 348.5 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.5097, allocations: 10.98 kB / 348.5 MB, free: 14.1 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002423/0.51, allocations: 145.9 kB / 348.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.51, allocations: 3.938 kB / 348.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007316/0.5108, allocations: 46.47 kB / 348.7 MB, free: 13.93 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulsStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulsStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0002809/0.5111, allocations: 134.8 kB / 348.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008583/0.5119, allocations: 170.6 kB / 349 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.512, allocations: 0 / 349 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004334/0.5124, allocations: 85.08 kB / 349.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005099/0.5129, allocations: 27.69 kB / 349.1 MB, free: 13.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.5143, allocations: 398.8 kB / 349.5 MB, free: 13.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.5148, allocations: 0.7441 MB / 350.2 MB, free: 12.41 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002552/0.5151, allocations: 33.52 kB / 350.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.5152, allocations: 26.75 kB / 350.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5153, allocations: 0 / 350.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of Templates: time 0.009066/0.5243, allocations: 1.787 MB / 352.1 MB, free: 10.59 MB / 282.7 MB