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.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_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.755/1.755, allocations: 171.1 MB / 187.3 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.00035, allocations: 12 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08212/0.08249, allocations: 38.76 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.334/0.4166, allocations: 67.68 MB / 340.2 MB, free: 6.266 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.4169, allocations: 70.72 kB / 340.3 MB, free: 6.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01294/0.4298, allocations: 2.798 MB / 343.1 MB, free: 3.824 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4299, allocations: 4 kB / 343.1 MB, free: 3.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.639e-05/0.43, allocations: 4 kB / 343.1 MB, free: 3.816 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.00145/0.4314, allocations: 498.5 kB / 343.6 MB, free: 3.293 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.4315, allocations: 11.97 kB / 343.6 MB, free: 3.281 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.4316, allocations: 27.7 kB / 343.6 MB, free: 3.254 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004475/0.4321, allocations: 237 kB / 343.9 MB, free: 2.988 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.4322, allocations: 19.5 kB / 343.9 MB, free: 2.977 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.803e-05/0.4322, allocations: 18.89 kB / 343.9 MB, free: 2.961 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005878/0.4328, allocations: 208.8 kB / 344.1 MB, free: 2.781 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.4328, allocations: 0 / 344.1 MB, free: 2.781 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.4329, allocations: 7.547 kB / 344.1 MB, free: 2.777 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.193e-05/0.4329, allocations: 12 kB / 344.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005557/0.4335, allocations: 147 kB / 344.3 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.4352, allocations: 0.8072 MB / 345.1 MB, free: 1.863 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.4363, allocations: 207.7 kB / 345.3 MB, free: 1.684 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.4364, allocations: 4 kB / 345.3 MB, free: 1.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004195/0.4368, allocations: 151 kB / 345.4 MB, free: 1.535 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.865e-06/0.4368, allocations: 0 / 345.4 MB, free: 1.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009763/0.4378, allocations: 252.1 kB / 345.7 MB, free: 1.328 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.4379, allocations: 81.11 kB / 345.7 MB, free: 1.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.4382, allocations: 222.6 kB / 346 MB, free: 1.031 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.4382, allocations: 33.08 kB / 346 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.4384, allocations: 201.4 kB / 346.2 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.389e-05/0.4384, allocations: 38.73 kB / 346.2 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.74e-05/0.4385, allocations: 8 kB / 346.2 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.4386, allocations: 322.5 kB / 346.5 MB, free: 468 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/0.4389, allocations: 70.2 kB / 346.6 MB, free: 416 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003234/0.4392, allocations: 139.6 kB / 346.8 MB, free: 268 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.4396, allocations: 87.47 kB / 346.8 MB, free: 204 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.4396, allocations: 4 kB / 346.8 MB, free: 200 kB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007401/0.4403, allocations: 244 kB / 347.1 MB, free: 0 / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.486e-05/0.4404, allocations: 8.047 kB / 347.1 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4404, allocations: 0 / 347.1 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.4404, allocations: 4 kB / 347.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003173/0.4408, allocations: 43.86 kB / 347.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.4408, allocations: 4 kB / 347.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.4411, allocations: 31.7 kB / 347.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.4412, allocations: 15.98 kB / 347.2 MB, free: 15.9 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.0002157/0.4414, allocations: 154.4 kB / 347.3 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.582e-05/0.4414, allocations: 15.81 kB / 347.4 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003871/0.4418, allocations: 128.4 kB / 347.5 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.4419, allocations: 4 kB / 347.5 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4419, allocations: 0 / 347.5 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4419, allocations: 0 / 347.5 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008949/0.4428, allocations: 492.3 kB / 348 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4428, allocations: 0 / 348 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002085/0.443, allocations: 23.92 kB / 348 MB, free: 15.13 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.4431, allocations: 0 / 348 MB, free: 15.13 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.4431, allocations: 11.8 kB / 348 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.4431, allocations: 0 / 348 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4431, allocations: 8 kB / 348 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006878/0.4438, allocations: 289.7 kB / 348.3 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.444, allocations: 108.7 kB / 348.4 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.915e-05/0.444, allocations: 15 kB / 348.4 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.4443, allocations: 15.98 kB / 348.4 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.95e-05/0.4444, allocations: 22.72 kB / 348.4 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.052e-05/0.4445, allocations: 11.92 kB / 348.5 MB, free: 14.67 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001845/0.4447, allocations: 146.9 kB / 348.6 MB, free: 14.55 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4447, allocations: 0 / 348.6 MB, free: 14.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004321/0.4451, allocations: 42.62 kB / 348.6 MB, free: 14.51 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.0002074/0.4454, allocations: 130.5 kB / 348.8 MB, free: 14.38 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006586/0.446, allocations: 170.3 kB / 348.9 MB, free: 14.24 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.446, allocations: 4 kB / 348.9 MB, free: 14.24 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003104/0.4464, allocations: 82.77 kB / 349 MB, free: 14.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.4467, allocations: 28.31 kB / 349 MB, free: 14.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.4478, allocations: 441.9 kB / 349.5 MB, free: 13.72 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.4482, allocations: 0.7364 MB / 350.2 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.4483, allocations: 23.42 kB / 350.2 MB, free: 12.93 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4484, allocations: 0 / 350.2 MB, free: 12.93 MB / 282.7 MB Notification: Performance of Templates: time 0.006433/0.4548, allocations: 2.378 MB / 352.6 MB, free: 10.58 MB / 282.7 MB