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.RealNetwork1.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.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.67/1.67, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003762, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06974/0.07014, allocations: 38.78 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2806/0.3507, allocations: 67.32 MB / 339.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.351, allocations: 63.97 kB / 339.4 MB, free: 6.477 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01135/0.3624, allocations: 2.681 MB / 342.1 MB, free: 4.156 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.228e-06/0.3624, allocations: 4 kB / 342.1 MB, free: 4.152 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.252e-05/0.3624, allocations: 8 kB / 342.1 MB, free: 4.145 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.0009163/0.3634, allocations: 0.4893 MB / 342.6 MB, free: 3.613 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3634, allocations: 8.031 kB / 342.6 MB, free: 3.605 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.037e-05/0.3635, allocations: 31.16 kB / 342.6 MB, free: 3.578 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.3639, allocations: 233.8 kB / 342.8 MB, free: 3.316 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.3639, allocations: 15.67 kB / 342.9 MB, free: 3.305 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.819e-05/0.3639, allocations: 15.44 kB / 342.9 MB, free: 3.297 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004654/0.3644, allocations: 198.7 kB / 343.1 MB, free: 3.125 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.3645, allocations: 0 / 343.1 MB, free: 3.125 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.3645, allocations: 3.125 kB / 343.1 MB, free: 3.125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.3645, allocations: 4 kB / 343.1 MB, free: 3.121 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004149/0.3649, allocations: 146.7 kB / 343.2 MB, free: 3.012 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.3664, allocations: 0.7978 MB / 344 MB, free: 2.227 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004185/0.3668, allocations: 160.3 kB / 344.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.892e-05/0.3669, allocations: 12.12 kB / 344.2 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003265/0.3672, allocations: 140.4 kB / 344.3 MB, free: 1.941 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.897e-06/0.3672, allocations: 4 kB / 344.3 MB, free: 1.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007442/0.368, allocations: 254.4 kB / 344.6 MB, free: 1.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.3681, allocations: 85.11 kB / 344.6 MB, free: 1.629 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.3684, allocations: 181.5 kB / 344.8 MB, free: 1.461 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/0.3684, allocations: 35.95 kB / 344.9 MB, free: 1.422 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.3686, allocations: 199.4 kB / 345.1 MB, free: 1.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.117e-05/0.3686, allocations: 42.2 kB / 345.1 MB, free: 1.211 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.34e-05/0.3687, allocations: 7.25 kB / 345.1 MB, free: 1.207 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3688, allocations: 325.9 kB / 345.4 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.3691, allocations: 67.27 kB / 345.5 MB, free: 0.832 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.3693, allocations: 124.7 kB / 345.6 MB, free: 0.707 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.3696, allocations: 85.45 kB / 345.7 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.653e-06/0.3696, allocations: 0 / 345.7 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00059/0.3702, allocations: 235.1 kB / 345.9 MB, free: 468 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3702, allocations: 4.625 kB / 345.9 MB, free: 464 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.639e-06/0.3702, allocations: 0.7031 kB / 345.9 MB, free: 464 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.3703, allocations: 4 kB / 345.9 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.3705, allocations: 36.06 kB / 346 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.3705, allocations: 11.88 kB / 346 MB, free: 412 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.3708, allocations: 39.81 kB / 346 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.3708, allocations: 8 kB / 346 MB, free: 368 kB / 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.0001901/0.371, allocations: 144.8 kB / 346.2 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.284e-05/0.3711, allocations: 19.81 kB / 346.2 MB, free: 208 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006054/0.3717, allocations: 222.7 kB / 346.4 MB, free: 24 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.529e-06/0.3717, allocations: 4 kB / 346.4 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3718, allocations: 0 / 346.4 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.308e-06/0.3718, allocations: 3.938 kB / 346.4 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004045/0.3722, allocations: 275.4 kB / 346.7 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.957e-06/0.3722, allocations: 0 / 346.7 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.3724, allocations: 31.55 kB / 346.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.492e-06/0.3724, allocations: 0 / 346.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.3724, allocations: 4 kB / 346.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.979e-06/0.3724, allocations: 0 / 346.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3725, allocations: 0 / 346.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005475/0.373, allocations: 247.3 kB / 347 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.3732, allocations: 108.2 kB / 347.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.504e-05/0.3732, allocations: 3.625 kB / 347.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.3734, allocations: 19.98 kB / 347.1 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.753e-05/0.3735, allocations: 23.66 kB / 347.1 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.3735, allocations: 4 kB / 347.1 MB, free: 15.3 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001792/0.3737, allocations: 153.1 kB / 347.3 MB, free: 15.17 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.69e-07/0.3737, allocations: 0 / 347.3 MB, free: 15.17 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003725/0.3741, allocations: 35.34 kB / 347.3 MB, free: 15.14 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.0001769/0.3743, allocations: 110.7 kB / 347.4 MB, free: 15.03 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000517/0.3748, allocations: 179.3 kB / 347.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.101e-06/0.3749, allocations: 0 / 347.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002522/0.3751, allocations: 85.77 kB / 347.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.3755, allocations: 41.72 kB / 347.7 MB, free: 14.79 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009238/0.3764, allocations: 450.8 kB / 348.1 MB, free: 14.35 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/0.3769, allocations: 0.747 MB / 348.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.425e-05/0.377, allocations: 19.38 kB / 348.9 MB, free: 13.55 MB / 282.7 MB Notification: Performance of SimCode: time 1.536e-06/0.377, allocations: 0 / 348.9 MB, free: 13.55 MB / 282.7 MB Notification: Performance of Templates: time 0.005509/0.3825, allocations: 2.375 MB / 351.3 MB, free: 11.21 MB / 282.7 MB