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.707/1.707, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003507, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07606/0.07643, allocations: 44.5 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3739/0.4504, allocations: 72.63 MB / 381.1 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.4508, allocations: 67.98 kB / 381.1 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01883/0.4696, allocations: 2.666 MB / 383.8 MB, free: 18.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.412e-06/0.4697, allocations: 0 / 383.8 MB, free: 18.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.344e-05/0.4698, allocations: 8.125 kB / 383.8 MB, free: 18.25 MB / 314.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.001395/0.4712, allocations: 499.8 kB / 384.3 MB, free: 17.83 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/0.4713, allocations: 9.625 kB / 384.3 MB, free: 17.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.4714, allocations: 25.02 kB / 384.3 MB, free: 17.82 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005198/0.472, allocations: 232.6 kB / 384.5 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/0.472, allocations: 10.72 kB / 384.6 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.376e-05/0.4721, allocations: 20.5 kB / 384.6 MB, free: 17.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008573/0.473, allocations: 196.3 kB / 384.8 MB, free: 17.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.4731, allocations: 3.938 kB / 384.8 MB, free: 17.53 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.649e-05/0.4731, allocations: 5.312 kB / 384.8 MB, free: 17.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.903e-05/0.4732, allocations: 5.5 kB / 384.8 MB, free: 17.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000862/0.4741, allocations: 150 kB / 384.9 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002359/0.4765, allocations: 0.7832 MB / 385.7 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008132/0.4773, allocations: 162.2 kB / 385.9 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.407e-05/0.4774, allocations: 12.3 kB / 385.9 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006145/0.4781, allocations: 150.2 kB / 386 MB, free: 16.85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 5.142e-06/0.4781, allocations: 0 / 386 MB, free: 16.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.00152/0.4797, allocations: 263.4 kB / 386.3 MB, free: 16.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.705e-05/0.4798, allocations: 80.27 kB / 386.4 MB, free: 16.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004163/0.4802, allocations: 179.2 kB / 386.5 MB, free: 16.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.4803, allocations: 27.89 kB / 386.6 MB, free: 16.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.4804, allocations: 208.9 kB / 386.8 MB, free: 16.4 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.184e-05/0.4806, allocations: 41.14 kB / 386.8 MB, free: 16.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.999e-05/0.4806, allocations: 3.25 kB / 386.8 MB, free: 16.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.692e-05/0.4807, allocations: 319.3 kB / 387.1 MB, free: 16.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004422/0.4812, allocations: 67.86 kB / 387.2 MB, free: 16.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004802/0.4817, allocations: 131.8 kB / 387.3 MB, free: 16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004695/0.4822, allocations: 85.88 kB / 387.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.003e-06/0.4823, allocations: 1.031 kB / 387.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001241/0.4835, allocations: 231.6 kB / 387.6 MB, free: 15.94 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.4836, allocations: 5.344 kB / 387.6 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.4836, allocations: 6.516 kB / 387.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.168e-05/0.4837, allocations: 6.594 kB / 387.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.4842, allocations: 41.7 kB / 387.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/0.4842, allocations: 5.266 kB / 387.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004754/0.4847, allocations: 34.16 kB / 387.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.69e-05/0.4848, allocations: 12.05 kB / 387.7 MB, free: 15.91 MB / 314.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.0002872/0.4851, allocations: 142 kB / 387.9 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.481e-05/0.4852, allocations: 15.94 kB / 387.9 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001183/0.4864, allocations: 224.2 kB / 388.1 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.4865, allocations: 1.688 kB / 388.1 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.4865, allocations: 9.641 kB / 388.1 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.4865, allocations: 1.922 kB / 388.1 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005958/0.4872, allocations: 267.9 kB / 388.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.502e-06/0.4872, allocations: 0 / 388.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.4875, allocations: 25.66 kB / 388.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.317e-05/0.4876, allocations: 3.953 kB / 388.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.4876, allocations: 2.125 kB / 388.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.55e-06/0.4877, allocations: 0 / 388.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.931e-06/0.4877, allocations: 5.906 kB / 388.4 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.4887, allocations: 234.7 kB / 388.7 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.938e-05/0.4889, allocations: 98.72 kB / 388.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.869e-05/0.489, allocations: 7.375 kB / 388.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.4894, allocations: 24.75 kB / 388.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.4895, allocations: 18.11 kB / 388.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/0.4896, allocations: 5.219 kB / 388.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003039/0.4899, allocations: 145.8 kB / 388.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.316e-06/0.49, allocations: 0 / 388.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008921/0.4909, allocations: 38.06 kB / 389 MB, free: 15.24 MB / 314.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.0002636/0.4912, allocations: 109.5 kB / 389.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.4922, allocations: 173.7 kB / 389.3 MB, free: 15.13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.396e-06/0.4923, allocations: 384 / 389.3 MB, free: 15.13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004985/0.4928, allocations: 94.72 kB / 389.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006793/0.4935, allocations: 41.7 kB / 389.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.495, allocations: 450.7 kB / 389.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.4954, allocations: 0.7376 MB / 390.6 MB, free: 14.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.4956, allocations: 17.09 kB / 390.6 MB, free: 14.13 MB / 314.7 MB Notification: Performance of SimCode: time 2.287e-06/0.4956, allocations: 0 / 390.6 MB, free: 14.13 MB / 314.7 MB Notification: Performance of Templates: time 0.009552/0.5052, allocations: 2.381 MB / 393 MB, free: 13.96 MB / 314.7 MB