Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.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.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadModel(Modelica): time 1.797/1.797, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07967/0.08005, allocations: 44.5 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3326/0.4127, allocations: 75.02 MB / 383.5 MB, free: 18.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.4129, allocations: 74.05 kB / 383.5 MB, free: 18.63 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02491/0.4378, allocations: 6.895 MB / 390.4 MB, free: 17.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.432e-06/0.4379, allocations: 0 / 390.4 MB, free: 17.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.4379, allocations: 7.781 kB / 390.4 MB, free: 17.82 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008119/0.4387, allocations: 0.5555 MB / 391 MB, free: 17.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.4388, allocations: 7.656 kB / 391 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.846e-05/0.4389, allocations: 31.12 kB / 391 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.4392, allocations: 262 kB / 391.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.4393, allocations: 23.44 kB / 391.3 MB, free: 17.13 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/0.4393, allocations: 26.78 kB / 391.3 MB, free: 17.13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005451/0.4399, allocations: 252.6 kB / 391.6 MB, free: 17.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.4399, allocations: 3.984 kB / 391.6 MB, free: 17.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.464e-05/0.44, allocations: 15.22 kB / 391.6 MB, free: 17.08 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.284e-06/0.44, allocations: 7.75 kB / 391.6 MB, free: 17.08 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005562/0.4406, allocations: 212.1 kB / 391.8 MB, free: 17.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.4422, allocations: 1.022 MB / 392.8 MB, free: 16.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004929/0.4428, allocations: 205.5 kB / 393 MB, free: 16.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.4428, allocations: 3.875 kB / 393 MB, free: 16.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.581e-05/0.4428, allocations: 33.23 kB / 393.1 MB, free: 16.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.072e-06/0.4428, allocations: 0 / 393.1 MB, free: 16.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.005384/0.4482, allocations: 1.505 MB / 394.6 MB, free: 16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.52e-05/0.4483, allocations: 59.25 kB / 394.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.4485, allocations: 209.8 kB / 394.8 MB, free: 15.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.4486, allocations: 29.58 kB / 394.9 MB, free: 15.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.1e-05/0.4487, allocations: 237.2 kB / 395.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.552e-05/0.4487, allocations: 121.3 kB / 395.2 MB, free: 15.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-05/0.4488, allocations: 3.562 kB / 395.2 MB, free: 15.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.711e-05/0.4488, allocations: 324.4 kB / 395.5 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/0.4492, allocations: 117.6 kB / 395.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/0.4495, allocations: 154.6 kB / 395.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/0.4499, allocations: 123.6 kB / 395.9 MB, free: 15.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.5e-06/0.4499, allocations: 4 kB / 395.9 MB, free: 15.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001847/0.4517, allocations: 0.5342 MB / 396.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.4518, allocations: 7.812 kB / 396.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.292e-06/0.4518, allocations: 0 / 396.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001635/0.4534, allocations: 257.2 kB / 396.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003161/0.4538, allocations: 54.22 kB / 396.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004939/0.4587, allocations: 3.793 MB / 400.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.4591, allocations: 18.27 kB / 400.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.4591, allocations: 15.06 kB / 400.6 MB, free: 12.3 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001992/0.4593, allocations: 145.3 kB / 400.7 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.505e-05/0.4594, allocations: 31.19 kB / 400.8 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.727e-05/0.4595, allocations: 47.11 kB / 400.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.83e-06/0.4595, allocations: 3.812 kB / 400.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.507e-06/0.4596, allocations: 3.906 kB / 400.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.797e-06/0.4596, allocations: 2.672 kB / 400.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004775/0.4601, allocations: 380.2 kB / 401.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.364e-06/0.4601, allocations: 4 kB / 401.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002967/0.4604, allocations: 42.8 kB / 401.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.4621, allocations: 249.4 kB / 401.5 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.4621, allocations: 7.562 kB / 401.5 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004672/0.4668, allocations: 3.68 MB / 405.2 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.567e-06/0.4669, allocations: 0 / 405.2 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.469, allocations: 0.7153 MB / 405.9 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.418e-05/0.4691, allocations: 100.5 kB / 406 MB, free: 8.992 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.084e-05/0.4691, allocations: 7.578 kB / 406 MB, free: 8.988 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002825/0.4694, allocations: 18.78 kB / 406 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.4696, allocations: 30.5 kB / 406 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-05/0.4696, allocations: 11.69 kB / 406.1 MB, free: 8.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001681/0.4698, allocations: 167 kB / 406.2 MB, free: 8.898 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.08e-07/0.4698, allocations: 0 / 406.2 MB, free: 8.898 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007505/0.4705, allocations: 106.7 kB / 406.3 MB, free: 8.898 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001779/0.4707, allocations: 120 kB / 406.4 MB, free: 8.797 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.4719, allocations: 0.5583 MB / 407 MB, free: 8.547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.45e-06/0.4719, allocations: 0 / 407 MB, free: 8.547 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/0.4726, allocations: 444.8 kB / 407.4 MB, free: 8.293 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.473, allocations: 18.98 kB / 407.5 MB, free: 8.289 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.4743, allocations: 0.8468 MB / 408.3 MB, free: 7.812 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006825/0.475, allocations: 0.7865 MB / 409.1 MB, free: 23.11 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.834e-05/0.4751, allocations: 23 kB / 409.1 MB, free: 23.09 MB / 330.7 MB Notification: Performance of SimCode: time 1.608e-06/0.4751, allocations: 0 / 409.1 MB, free: 23.09 MB / 330.7 MB Notification: Performance of Templates: time 0.008195/0.4833, allocations: 5.795 MB / 414.9 MB, free: 21.75 MB / 330.7 MB