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.IntegerNetwork1.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.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.555/1.555, allocations: 171.2 MB / 184.2 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.579e-05/2.588e-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.78 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1014/0.305, allocations: 67.61 MB / 335.2 MB, free: 5.727 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.3052, allocations: 67.97 kB / 335.3 MB, free: 5.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01197/0.3172, allocations: 2.77 MB / 338 MB, free: 2.879 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.111e-06/0.3173, allocations: 4 kB / 338 MB, free: 2.875 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.3173, allocations: 7.984 kB / 338 MB, free: 2.867 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008339/0.3181, allocations: 476 kB / 338.5 MB, free: 2.355 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3182, allocations: 8.031 kB / 338.5 MB, free: 2.348 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.069e-05/0.3183, allocations: 27.72 kB / 338.5 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.3186, allocations: 239.5 kB / 338.8 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.3187, allocations: 12 kB / 338.8 MB, free: 2.031 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.3187, allocations: 16 kB / 338.8 MB, free: 2.016 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.3192, allocations: 201 kB / 339 MB, free: 1.801 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.3192, allocations: 0 / 339 MB, free: 1.801 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.3192, allocations: 12 kB / 339 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.41e-05/0.3193, allocations: 8 kB / 339 MB, free: 1.781 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003152/0.3196, allocations: 123.8 kB / 339.1 MB, free: 1.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.3211, allocations: 0.8012 MB / 339.9 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006909/0.3218, allocations: 190.7 kB / 340.1 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.322, allocations: 52.72 kB / 340.2 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.322, allocations: 11.98 kB / 340.2 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002731/0.3223, allocations: 131.4 kB / 340.3 MB, free: 400 kB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.754e-06/0.3223, allocations: 4 kB / 340.3 MB, free: 396 kB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004456/0.3228, allocations: 161.4 kB / 340.5 MB, free: 228 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/0.3229, allocations: 85.31 kB / 340.6 MB, free: 124 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002888/0.3232, allocations: 201.9 kB / 340.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.3232, allocations: 33.7 kB / 340.8 MB, free: 15.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.3234, allocations: 194.8 kB / 341 MB, free: 15.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.87e-05/0.3234, allocations: 35.55 kB / 341 MB, free: 15.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.58e-05/0.3235, allocations: 4 kB / 341 MB, free: 15.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.3236, allocations: 318.8 kB / 341.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.3238, allocations: 63.97 kB / 341.4 MB, free: 15.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.324, allocations: 112.6 kB / 341.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.3242, allocations: 71.89 kB / 341.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.3242, allocations: 3.953 kB / 341.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005034/0.3247, allocations: 217.4 kB / 341.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.3248, allocations: 8 kB / 341.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.651e-06/0.3248, allocations: 0 / 341.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.3248, allocations: 4 kB / 341.8 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.3251, allocations: 43.91 kB / 341.8 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.3251, allocations: 4 kB / 341.8 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002564/0.3254, allocations: 35.95 kB / 341.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-05/0.3254, allocations: 15.98 kB / 341.9 MB, free: 14.71 MB / 298.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 () * 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.000142/0.3256, allocations: 131.1 kB / 342 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.57e-05/0.3257, allocations: 23.67 kB / 342.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000334/0.326, allocations: 135.3 kB / 342.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.672e-06/0.326, allocations: 4 kB / 342.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.537e-06/0.326, allocations: 0 / 342.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.893e-06/0.3261, allocations: 4 kB / 342.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008166/0.3269, allocations: 474.2 kB / 342.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.392e-06/0.3269, allocations: 0 / 342.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.3271, allocations: 27.91 kB / 342.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.407e-06/0.3271, allocations: 4 kB / 342.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.3271, allocations: 4 kB / 342.7 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.451e-06/0.3272, allocations: 4 kB / 342.7 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.985e-06/0.3272, allocations: 4 kB / 342.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004546/0.3276, allocations: 277.7 kB / 343 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.3278, allocations: 112.8 kB / 343.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.81e-05/0.3278, allocations: 0 / 343.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.3281, allocations: 31.97 kB / 343.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.055e-05/0.3282, allocations: 23.91 kB / 343.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.3282, allocations: 4 kB / 343.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001747/0.3284, allocations: 148.6 kB / 343.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.03e-07/0.3284, allocations: 0 / 343.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004162/0.3289, allocations: 36 kB / 343.3 MB, free: 13.18 MB / 298.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) * 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.0001986/0.3291, allocations: 127.2 kB / 343.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004541/0.3295, allocations: 144.4 kB / 343.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.7e-06/0.3296, allocations: 3.953 kB / 343.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.3298, allocations: 71.86 kB / 343.7 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.3301, allocations: 25.95 kB / 343.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007354/0.3309, allocations: 300.5 kB / 344 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004503/0.3313, allocations: 0.7365 MB / 344.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.686e-05/0.3314, allocations: 19.44 kB / 344.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of SimCode: time 1.542e-06/0.3315, allocations: 0 / 344.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of Templates: time 0.005385/0.3369, allocations: 2.37 MB / 347.1 MB, free: 9.332 MB / 298.7 MB