Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.IntegerNetwork1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.998/1.998, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003559, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08115/0.08154, allocations: 44.51 MB / 308.3 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002344/0.08392, allocations: 1.461 MB / 309.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.08527, allocations: 0.6167 MB / 310.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.08542, allocations: 0 / 310.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.08555, allocations: 27.8 kB / 310.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.08571, allocations: 27.89 kB / 310.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002799/0.08601, allocations: 59.81 kB / 310.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002244/0.08625, allocations: 119.7 kB / 310.7 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.08644, allocations: 58.41 kB / 310.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.08659, allocations: 55.7 kB / 310.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.08676, allocations: 71.67 kB / 310.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.868e-05/0.08681, allocations: 4 kB / 310.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.045e-05/0.08689, allocations: 8 kB / 310.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.479e-05/0.08697, allocations: 35.84 kB / 310.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.126e-05/0.08706, allocations: 53.58 kB / 310.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.0873, allocations: 123.7 kB / 311.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.779e-06/0.08731, allocations: 0 / 311.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.08733, allocations: 4 kB / 311.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.08735, allocations: 0 / 311.1 MB, free: 14.3 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.000994/0.08835, allocations: 482.9 kB / 311.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.08841, allocations: 12.03 kB / 311.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.232e-05/0.08849, allocations: 27.7 kB / 311.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.08886, allocations: 234.6 kB / 311.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/0.08891, allocations: 12 kB / 311.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.08896, allocations: 16 kB / 311.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00051/0.08948, allocations: 205.6 kB / 312 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.08951, allocations: 0 / 312 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.08956, allocations: 15.92 kB / 312 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.579e-05/0.08959, allocations: 4 kB / 312 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.09006, allocations: 139.9 kB / 312.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.09152, allocations: 0.7934 MB / 313 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007932/0.09234, allocations: 218.6 kB / 313.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.275e-05/0.0924, allocations: 4 kB / 313.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003662/0.09278, allocations: 148.9 kB / 313.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.797e-06/0.09281, allocations: 0 / 313.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008259/0.09364, allocations: 257.3 kB / 313.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.09373, allocations: 85.06 kB / 313.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.09404, allocations: 223.2 kB / 313.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.018e-05/0.09409, allocations: 29.7 kB / 313.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.09425, allocations: 198.8 kB / 314.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.515e-05/0.09432, allocations: 31.55 kB / 314.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.515e-05/0.09435, allocations: 11.94 kB / 314.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.09452, allocations: 318.8 kB / 314.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.09477, allocations: 71.95 kB / 314.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/0.09508, allocations: 148.4 kB / 314.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.09534, allocations: 79.97 kB / 314.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.594e-06/0.09537, allocations: 4 kB / 314.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006743/0.09605, allocations: 245.2 kB / 315 MB, free: 10.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.09609, allocations: 8 kB / 315 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.027e-06/0.09611, allocations: 3.938 kB / 315 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.09614, allocations: 4 kB / 315 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.0964, allocations: 39.97 kB / 315.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.09643, allocations: 7.891 kB / 315.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.09669, allocations: 40.08 kB / 315.1 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.09674, allocations: 11.98 kB / 315.1 MB, free: 9.957 MB / 266.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.000213/0.09696, allocations: 152 kB / 315.3 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.054e-05/0.09702, allocations: 23.7 kB / 315.3 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003592/0.0974, allocations: 131 kB / 315.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.966e-06/0.09742, allocations: 4.312 kB / 315.4 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.808e-06/0.09744, allocations: 4 kB / 315.4 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.879e-06/0.09746, allocations: 3.953 kB / 315.4 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000888/0.09836, allocations: 478.4 kB / 315.9 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.953e-06/0.09838, allocations: 0 / 315.9 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.09857, allocations: 19.98 kB / 315.9 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.396e-06/0.09859, allocations: 0 / 315.9 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.09863, allocations: 15.98 kB / 315.9 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.869e-06/0.09864, allocations: 3.953 kB / 315.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.211e-06/0.09866, allocations: 0 / 315.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006025/0.09927, allocations: 296.1 kB / 316.2 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.284e-05/0.09937, allocations: 92.92 kB / 316.3 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.407e-05/0.09944, allocations: 7.938 kB / 316.3 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.09968, allocations: 23.97 kB / 316.3 MB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.958e-05/0.0998, allocations: 27.92 kB / 316.4 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.09984, allocations: 4 kB / 316.4 MB, free: 8.582 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001874/0.1, allocations: 144.6 kB / 316.5 MB, free: 8.441 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.08e-07/0.1001, allocations: 4 kB / 316.5 MB, free: 8.438 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004439/0.1005, allocations: 43.84 kB / 316.6 MB, free: 8.395 MB / 266.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.0002001/0.1007, allocations: 111.2 kB / 316.7 MB, free: 8.277 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005822/0.1013, allocations: 176.3 kB / 316.8 MB, free: 8.105 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.1014, allocations: 0 / 316.8 MB, free: 8.105 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002644/0.1016, allocations: 83.83 kB / 316.9 MB, free: 8.023 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.102, allocations: 23.98 kB / 317 MB, free: 8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009555/0.1029, allocations: 437.3 kB / 317.4 MB, free: 7.539 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.1034, allocations: 0.7325 MB / 318.1 MB, free: 6.777 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.1035, allocations: 31.42 kB / 318.1 MB, free: 6.746 MB / 266.7 MB Notification: Performance of SimCode: time 1.986e-06/0.1035, allocations: 0 / 318.1 MB, free: 6.746 MB / 266.7 MB Notification: Performance of Templates: time 0.005636/0.1092, allocations: 2.373 MB / 320.5 MB, free: 4.379 MB / 266.7 MB