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.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.759/1.759, allocations: 171.2 MB / 187.3 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.0003509, allocations: 8 kB / 233.8 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08056/0.08093, allocations: 38.76 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3405/0.4215, allocations: 67.32 MB / 339.9 MB, free: 6.695 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.4218, allocations: 71.5 kB / 339.9 MB, free: 6.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01258/0.4344, allocations: 2.674 MB / 342.6 MB, free: 4.352 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4344, allocations: 0 / 342.6 MB, free: 4.352 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.524e-05/0.4345, allocations: 8 kB / 342.6 MB, free: 4.344 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.001104/0.4356, allocations: 0.4904 MB / 343.1 MB, free: 3.812 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.4356, allocations: 8.031 kB / 343.1 MB, free: 3.805 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.179e-05/0.4357, allocations: 23.72 kB / 343.1 MB, free: 3.781 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.4361, allocations: 237.2 kB / 343.4 MB, free: 3.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.4362, allocations: 15.11 kB / 343.4 MB, free: 3.508 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.4362, allocations: 14.19 kB / 343.4 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000545/0.4368, allocations: 202.7 kB / 343.6 MB, free: 3.324 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.4368, allocations: 0 / 343.6 MB, free: 3.324 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.4368, allocations: 7.375 kB / 343.6 MB, free: 3.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.53e-05/0.4369, allocations: 4 kB / 343.6 MB, free: 3.316 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005198/0.4374, allocations: 146 kB / 343.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.4391, allocations: 0.7994 MB / 344.5 MB, free: 2.418 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005633/0.4397, allocations: 152.8 kB / 344.7 MB, free: 2.285 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-05/0.4398, allocations: 6.812 kB / 344.7 MB, free: 2.281 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003841/0.4402, allocations: 150.6 kB / 344.8 MB, free: 2.137 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.545e-06/0.4402, allocations: 0 / 344.8 MB, free: 2.137 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009265/0.4411, allocations: 259.3 kB / 345.1 MB, free: 1.926 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/0.4412, allocations: 81.09 kB / 345.2 MB, free: 1.828 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.4415, allocations: 208.3 kB / 345.4 MB, free: 1.637 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.4415, allocations: 37.45 kB / 345.4 MB, free: 1.598 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.4417, allocations: 200.3 kB / 345.6 MB, free: 1.418 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.089e-05/0.4417, allocations: 46.62 kB / 345.7 MB, free: 1.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.599e-05/0.4418, allocations: 7.312 kB / 345.7 MB, free: 1.375 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.4419, allocations: 322.4 kB / 346 MB, free: 1.055 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.4422, allocations: 65.84 kB / 346 MB, free: 1.008 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.4425, allocations: 127.3 kB / 346.2 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002856/0.4428, allocations: 83.03 kB / 346.2 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.4428, allocations: 0 / 346.2 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007459/0.4436, allocations: 232.2 kB / 346.5 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.4436, allocations: 6.031 kB / 346.5 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.4437, allocations: 4 kB / 346.5 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.4437, allocations: 4.188 kB / 346.5 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003059/0.444, allocations: 39.91 kB / 346.5 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.444, allocations: 4.703 kB / 346.5 MB, free: 0.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.4443, allocations: 35.39 kB / 346.6 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.361e-05/0.4444, allocations: 19.92 kB / 346.6 MB, free: 0.5312 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.0002053/0.4446, allocations: 143.1 kB / 346.7 MB, free: 404 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.855e-05/0.4447, allocations: 15.81 kB / 346.7 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007392/0.4454, allocations: 222.8 kB / 347 MB, free: 212 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.4454, allocations: 0 / 347 MB, free: 212 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.4455, allocations: 7.984 kB / 347 MB, free: 204 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4455, allocations: 0 / 347 MB, free: 204 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004254/0.4459, allocations: 272.2 kB / 347.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4459, allocations: 0 / 347.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002302/0.4462, allocations: 35.84 kB / 347.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.4462, allocations: 4 kB / 347.3 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.4462, allocations: 0 / 347.3 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.025e-06/0.4462, allocations: 4 kB / 347.3 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4462, allocations: 0 / 347.3 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006534/0.4469, allocations: 230.5 kB / 347.5 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.4471, allocations: 104.1 kB / 347.6 MB, free: 15.55 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.735e-05/0.4471, allocations: 11.69 kB / 347.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/0.4474, allocations: 27.97 kB / 347.6 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.4475, allocations: 15.84 kB / 347.7 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.887e-05/0.4476, allocations: 4 kB / 347.7 MB, free: 15.5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001944/0.4478, allocations: 152.3 kB / 347.8 MB, free: 15.37 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4478, allocations: 0 / 347.8 MB, free: 15.37 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003739/0.4482, allocations: 38.72 kB / 347.8 MB, free: 15.34 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: 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.0001911/0.4484, allocations: 109.3 kB / 348 MB, free: 15.22 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006388/0.449, allocations: 181.7 kB / 348.1 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.449, allocations: 0 / 348.1 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.4493, allocations: 84.64 kB / 348.2 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/0.4498, allocations: 38.75 kB / 348.2 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.4509, allocations: 452 kB / 348.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.4513, allocations: 0.743 MB / 349.4 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.4514, allocations: 23.42 kB / 349.5 MB, free: 13.75 MB / 282.7 MB Notification: Performance of SimCode: time 1.463e-06/0.4514, allocations: 0 / 349.5 MB, free: 13.75 MB / 282.7 MB Notification: Performance of Templates: time 0.006799/0.4582, allocations: 2.377 MB / 351.8 MB, free: 11.4 MB / 282.7 MB