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.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003747/0.0003748, allocations: 16 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08101/0.08141, allocations: 44.5 MB / 308.3 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002331/0.08378, allocations: 1.496 MB / 309.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.08504, allocations: 0.5778 MB / 310.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.08516, allocations: 7.938 kB / 310.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.08528, allocations: 15.86 kB / 310.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.08545, allocations: 31.88 kB / 310.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.08573, allocations: 63.81 kB / 310.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.08596, allocations: 107.7 kB / 310.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.08614, allocations: 49.64 kB / 310.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.08629, allocations: 59.7 kB / 310.7 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.08644, allocations: 59.7 kB / 310.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.08649, allocations: 4 kB / 310.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.362e-05/0.08658, allocations: 15.98 kB / 310.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.872e-05/0.08666, allocations: 27.86 kB / 310.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.41e-05/0.08675, allocations: 57.56 kB / 310.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.08696, allocations: 115.7 kB / 311 MB, free: 14.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.611e-06/0.08698, allocations: 0 / 311 MB, free: 14.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.296e-06/0.08699, allocations: 0 / 311 MB, free: 14.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.869e-06/0.087, allocations: 0 / 311 MB, free: 14.32 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009257/0.08794, allocations: 495 kB / 311.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.088, allocations: 12.03 kB / 311.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.199e-05/0.08807, allocations: 19.81 kB / 311.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.0884, allocations: 234.6 kB / 311.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.08844, allocations: 12.28 kB / 311.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.08849, allocations: 15.98 kB / 311.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.08896, allocations: 194.9 kB / 312 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.089, allocations: 11.92 kB / 312 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.08903, allocations: 4 kB / 312 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/0.08907, allocations: 8 kB / 312 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004368/0.08952, allocations: 151.9 kB / 312.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.09095, allocations: 0.7857 MB / 312.9 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000443/0.09142, allocations: 169 kB / 313.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.09148, allocations: 8.141 kB / 313.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003408/0.09184, allocations: 145.3 kB / 313.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.852e-06/0.09186, allocations: 4 kB / 313.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007801/0.09265, allocations: 273.2 kB / 313.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.09273, allocations: 77.11 kB / 313.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/0.09301, allocations: 206.9 kB / 313.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.09306, allocations: 29.7 kB / 313.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.09322, allocations: 206.5 kB / 314 MB, free: 11.06 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.882e-05/0.09329, allocations: 43.45 kB / 314.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.09331, allocations: 0 / 314.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.0935, allocations: 318.8 kB / 314.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000223/0.09374, allocations: 71.95 kB / 314.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.09402, allocations: 134.7 kB / 314.6 MB, free: 10.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.09429, allocations: 91.83 kB / 314.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.09431, allocations: 0 / 314.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006347/0.09495, allocations: 238.1 kB / 314.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.09499, allocations: 8 kB / 314.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.26e-06/0.09501, allocations: 3.984 kB / 314.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.09504, allocations: 7.953 kB / 314.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.09528, allocations: 39.92 kB / 315 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.09531, allocations: 4 kB / 315 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.09554, allocations: 39.88 kB / 315 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.09557, allocations: 8.078 kB / 315 MB, free: 10.04 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001815/0.09577, allocations: 137.8 kB / 315.2 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.728e-05/0.09582, allocations: 15.81 kB / 315.2 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006162/0.09645, allocations: 226.9 kB / 315.4 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.09648, allocations: 7.953 kB / 315.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.551e-06/0.0965, allocations: 0 / 315.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.208e-06/0.09651, allocations: 0 / 315.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003714/0.09689, allocations: 269.4 kB / 315.7 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.794e-06/0.09691, allocations: 0 / 315.7 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.09708, allocations: 27.97 kB / 315.7 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.016e-06/0.0971, allocations: 4 kB / 315.7 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.09713, allocations: 4.109 kB / 315.7 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.032e-06/0.09715, allocations: 7.938 kB / 315.7 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.441e-06/0.09716, allocations: 3.953 kB / 315.7 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005388/0.09771, allocations: 229.7 kB / 315.9 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.952e-05/0.09781, allocations: 96.86 kB / 316 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.09786, allocations: 4 kB / 316 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.09805, allocations: 23.97 kB / 316.1 MB, free: 8.891 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.89e-05/0.09814, allocations: 27.91 kB / 316.1 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.09818, allocations: 4 kB / 316.1 MB, free: 8.859 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001721/0.09836, allocations: 140.6 kB / 316.2 MB, free: 8.723 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.77e-07/0.09837, allocations: 0 / 316.2 MB, free: 8.723 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003777/0.09876, allocations: 43.91 kB / 316.3 MB, free: 8.68 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000171/0.09895, allocations: 111.1 kB / 316.4 MB, free: 8.562 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005355/0.0995, allocations: 180.1 kB / 316.6 MB, free: 8.387 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.037e-06/0.09952, allocations: 4.125 kB / 316.6 MB, free: 8.383 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.09978, allocations: 87.91 kB / 316.6 MB, free: 8.297 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.1001, allocations: 31.97 kB / 316.7 MB, free: 8.266 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000904/0.101, allocations: 451.8 kB / 317.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.1015, allocations: 0.7399 MB / 317.9 MB, free: 7.023 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.875e-05/0.1016, allocations: 19.44 kB / 317.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of SimCode: time 1.323e-06/0.1016, allocations: 0 / 317.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of Templates: time 0.005438/0.1071, allocations: 2.363 MB / 320.2 MB, free: 4.652 MB / 266.7 MB