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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.622/1.622, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.134e-05/2.155e-05, allocations: 4 kB / 222.5 MB, free: 8.719 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07422/0.07427, allocations: 38.77 MB / 261.3 MB, free: 1.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2918/0.3661, allocations: 66.57 MB / 327.8 MB, free: 5.625 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.3664, allocations: 65.22 kB / 327.9 MB, free: 5.594 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01201/0.3784, allocations: 2.633 MB / 330.5 MB, free: 3.348 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.3784, allocations: 4 kB / 330.5 MB, free: 3.344 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.912e-05/0.3785, allocations: 11.94 kB / 330.6 MB, free: 3.332 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.0009202/0.3794, allocations: 474.1 kB / 331 MB, free: 2.832 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.3795, allocations: 12.03 kB / 331 MB, free: 2.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.827e-05/0.3796, allocations: 19.72 kB / 331 MB, free: 2.801 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003912/0.38, allocations: 240.7 kB / 331.3 MB, free: 2.535 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.38, allocations: 4 kB / 331.3 MB, free: 2.531 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.3801, allocations: 19.89 kB / 331.3 MB, free: 2.512 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003215/0.3804, allocations: 99.84 kB / 331.4 MB, free: 2.445 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003545/0.3808, allocations: 159.4 kB / 331.6 MB, free: 2.301 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.3808, allocations: 4 kB / 331.6 MB, free: 2.297 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.3809, allocations: 3.938 kB / 331.6 MB, free: 2.293 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.345e-05/0.3809, allocations: 11.62 kB / 331.6 MB, free: 2.285 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.3825, allocations: 0.752 MB / 332.3 MB, free: 1.547 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003616/0.3829, allocations: 136.8 kB / 332.5 MB, free: 1.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.383, allocations: 58.95 kB / 332.5 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.394e-05/0.3831, allocations: 4 kB / 332.5 MB, free: 1.379 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.3834, allocations: 124 kB / 332.6 MB, free: 1.258 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 6.607e-06/0.3834, allocations: 0 / 332.6 MB, free: 1.258 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004905/0.3839, allocations: 164.5 kB / 332.8 MB, free: 1.121 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.384, allocations: 81.11 kB / 332.9 MB, free: 1.023 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.3843, allocations: 170.7 kB / 333 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.3843, allocations: 29.27 kB / 333.1 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.3845, allocations: 206.7 kB / 333.3 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.743e-05/0.3846, allocations: 42.14 kB / 333.3 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.284e-05/0.3846, allocations: 0 / 333.3 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3848, allocations: 318.3 kB / 333.6 MB, free: 304 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.3849, allocations: 55.09 kB / 333.7 MB, free: 268 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.3851, allocations: 101.3 kB / 333.8 MB, free: 160 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.3854, allocations: 66.33 kB / 333.8 MB, free: 112 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.943e-06/0.3854, allocations: 4 kB / 333.9 MB, free: 108 kB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004946/0.3859, allocations: 194.1 kB / 334 MB, free: 15.95 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.3859, allocations: 8.031 kB / 334.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.386, allocations: 4 kB / 334.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.386, allocations: 4 kB / 334.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.3863, allocations: 35.91 kB / 334.1 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.437e-06/0.3863, allocations: 4 kB / 334.1 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.3865, allocations: 27.98 kB / 334.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.729e-05/0.3866, allocations: 15.25 kB / 334.1 MB, free: 15.85 MB / 282.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 () * 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.0001442/0.3868, allocations: 116.8 kB / 334.3 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.421e-05/0.3868, allocations: 23.77 kB / 334.3 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005212/0.3874, allocations: 175.1 kB / 334.4 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.027e-06/0.3874, allocations: 7.938 kB / 334.5 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.696e-06/0.3874, allocations: 0 / 334.5 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.858e-06/0.3874, allocations: 0 / 334.5 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.3878, allocations: 227.4 kB / 334.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3878, allocations: 4 kB / 334.7 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002029/0.388, allocations: 23.98 kB / 334.7 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.926e-06/0.3881, allocations: 3.984 kB / 334.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.3881, allocations: 7.953 kB / 334.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.72e-06/0.3881, allocations: 0 / 334.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.844e-06/0.3881, allocations: 0 / 334.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004641/0.3886, allocations: 210.2 kB / 334.9 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.3888, allocations: 104.1 kB / 335 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.3888, allocations: 7.938 kB / 335 MB, free: 14.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.3891, allocations: 23.92 kB / 335.1 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.432e-05/0.3892, allocations: 15.34 kB / 335.1 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.65e-05/0.3892, allocations: 4 kB / 335.1 MB, free: 14.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001755/0.3894, allocations: 141.5 kB / 335.2 MB, free: 14.81 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.3894, allocations: 0 / 335.2 MB, free: 14.81 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003861/0.3898, allocations: 35.84 kB / 335.2 MB, free: 14.78 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 () * 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.0002138/0.39, allocations: 109 kB / 335.4 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.3904, allocations: 135.5 kB / 335.5 MB, free: 14.57 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.745e-06/0.3905, allocations: 4 kB / 335.5 MB, free: 14.56 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.3906, allocations: 65.8 kB / 335.6 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.3911, allocations: 37.84 kB / 335.6 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007959/0.3919, allocations: 279.8 kB / 335.9 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004899/0.3924, allocations: 0.7438 MB / 336.6 MB, free: 13.44 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.3925, allocations: 15.44 kB / 336.6 MB, free: 13.42 MB / 282.7 MB Notification: Performance of SimCode: time 2.095e-06/0.3925, allocations: 0 / 336.6 MB, free: 13.42 MB / 282.7 MB Notification: Performance of Templates: time 0.006281/0.3988, allocations: 2.345 MB / 339 MB, free: 11.11 MB / 282.7 MB