Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 2.191/2.191, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003526, allocations: 8 kB / 264.5 MB, free: 12.96 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 44.51 MB / 309 MB, free: 392 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4566/0.562, allocations: 72.62 MB / 381.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004059/0.5625, allocations: 68.78 kB / 381.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0175/0.58, allocations: 2.671 MB / 384.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.5801, allocations: 0 / 384.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.226e-05/0.5801, allocations: 8.125 kB / 384.4 MB, free: 14.93 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.0009863/0.5811, allocations: 498.9 kB / 384.9 MB, free: 14.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.5812, allocations: 9.625 kB / 384.9 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.914e-05/0.5813, allocations: 22.72 kB / 384.9 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.5816, allocations: 232.3 kB / 385.1 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.5817, allocations: 18.28 kB / 385.2 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.2e-05/0.5817, allocations: 12.94 kB / 385.2 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005305/0.5822, allocations: 202.2 kB / 385.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.5823, allocations: 3.938 kB / 385.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.5823, allocations: 5.875 kB / 385.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.5823, allocations: 9.5 kB / 385.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005016/0.5829, allocations: 145 kB / 385.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.5845, allocations: 0.7908 MB / 386.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005025/0.585, allocations: 163.4 kB / 386.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.032e-05/0.5851, allocations: 9.641 kB / 386.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003725/0.5855, allocations: 146.2 kB / 386.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 2.675e-06/0.5855, allocations: 0 / 386.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.00101/0.5865, allocations: 263.4 kB / 386.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.5866, allocations: 83.27 kB / 387 MB, free: 13.37 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.5869, allocations: 199.4 kB / 387.2 MB, free: 13.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.5869, allocations: 28.48 kB / 387.2 MB, free: 13.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.832e-05/0.587, allocations: 145.5 kB / 387.3 MB, free: 13.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.429e-05/0.5871, allocations: 44.12 kB / 387.4 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.551e-05/0.5871, allocations: 3.875 kB / 387.4 MB, free: 13.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.291e-05/0.5872, allocations: 329.4 kB / 387.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002612/0.5875, allocations: 69.05 kB / 387.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002884/0.5878, allocations: 136.7 kB / 387.9 MB, free: 12.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.5881, allocations: 80.89 kB / 388 MB, free: 12.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.5881, allocations: 1.344 kB / 388 MB, free: 12.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007115/0.5888, allocations: 238.8 kB / 388.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.5889, allocations: 10.72 kB / 388.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.5889, allocations: 1.453 kB / 388.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/0.5889, allocations: 14.14 kB / 388.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003058/0.5892, allocations: 35.08 kB / 388.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.5893, allocations: 2.562 kB / 388.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.5896, allocations: 38.16 kB / 388.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.5896, allocations: 14.56 kB / 388.3 MB, free: 12.64 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.0001964/0.5898, allocations: 137.8 kB / 388.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.888e-05/0.5899, allocations: 20.78 kB / 388.5 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007233/0.5907, allocations: 215 kB / 388.7 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-06/0.5907, allocations: 10.64 kB / 388.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.5907, allocations: 3.953 kB / 388.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.5907, allocations: 1.312 kB / 388.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003719/0.5911, allocations: 264 kB / 389 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.5911, allocations: 1.406 kB / 389 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/0.5914, allocations: 31.55 kB / 389 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.5914, allocations: 1.312 kB / 389 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.5914, allocations: 8.469 kB / 389 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.5914, allocations: 1.312 kB / 389 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5914, allocations: 0 / 389 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006225/0.5921, allocations: 233.2 kB / 389.2 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.486e-05/0.5922, allocations: 97.36 kB / 389.3 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.596e-05/0.5922, allocations: 1.344 kB / 389.3 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.5925, allocations: 29.64 kB / 389.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.598e-05/0.5926, allocations: 16.81 kB / 389.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.5926, allocations: 14.89 kB / 389.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001852/0.5928, allocations: 140.8 kB / 389.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5928, allocations: 0 / 389.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000407/0.5932, allocations: 33.03 kB / 389.6 MB, free: 11.97 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.0001797/0.5934, allocations: 108.8 kB / 389.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00065/0.5941, allocations: 177.6 kB / 389.9 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.5941, allocations: 384 / 389.9 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002829/0.5944, allocations: 90.81 kB / 389.9 MB, free: 11.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.5949, allocations: 30.23 kB / 390 MB, free: 11.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.5959, allocations: 425 kB / 390.4 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.5962, allocations: 0.7435 MB / 391.1 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002455/0.5965, allocations: 35.91 kB / 391.2 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.614e-05/0.5965, allocations: 19.03 kB / 391.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.5966, allocations: 0 / 391.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of Templates: time 0.00702/0.6036, allocations: 1.82 MB / 393 MB, free: 10.75 MB / 314.7 MB