Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadModel(Modelica): time 1.574/1.574, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.541e-05/2.554e-05, allocations: 4 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2472, allocations: 38.77 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1034/0.3507, allocations: 67.53 MB / 335.1 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.3509, allocations: 63.97 kB / 335.2 MB, free: 5.754 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01104/0.362, allocations: 2.622 MB / 337.8 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.696e-06/0.362, allocations: 0 / 337.8 MB, free: 3.117 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.362, allocations: 4 kB / 337.8 MB, free: 3.113 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.000611/0.3626, allocations: 418.1 kB / 338.2 MB, free: 2.66 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3627, allocations: 8.031 kB / 338.2 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.865e-05/0.3628, allocations: 27.73 kB / 338.3 MB, free: 2.625 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.363, allocations: 191 kB / 338.4 MB, free: 2.398 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.363, allocations: 4 kB / 338.4 MB, free: 2.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.3631, allocations: 11.95 kB / 338.5 MB, free: 2.383 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.3634, allocations: 132.2 kB / 338.6 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.3634, allocations: 4 kB / 338.6 MB, free: 2.234 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.3634, allocations: 0 / 338.6 MB, free: 2.234 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.697e-06/0.3634, allocations: 4 kB / 338.6 MB, free: 2.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.3636, allocations: 63.98 kB / 338.7 MB, free: 2.168 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001108/0.3647, allocations: 0.5069 MB / 339.2 MB, free: 1.602 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.3651, allocations: 79.25 kB / 339.2 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.3652, allocations: 52.86 kB / 339.3 MB, free: 1.461 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.3653, allocations: 7.984 kB / 339.3 MB, free: 1.453 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.3653, allocations: 34.56 kB / 339.3 MB, free: 1.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 2.225e-06/0.3653, allocations: 0 / 339.3 MB, free: 1.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0005007/0.3658, allocations: 114.4 kB / 339.4 MB, free: 1.289 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/0.3659, allocations: 106.8 kB / 339.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.3661, allocations: 141.4 kB / 339.7 MB, free: 1.016 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.3662, allocations: 33.7 kB / 339.7 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3663, allocations: 182.5 kB / 339.9 MB, free: 0.793 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.632e-05/0.3663, allocations: 28.05 kB / 339.9 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.577e-06/0.3664, allocations: 0 / 339.9 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3665, allocations: 314.8 kB / 340.2 MB, free: 460 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.392e-05/0.3666, allocations: 31.92 kB / 340.3 MB, free: 428 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.3667, allocations: 65.09 kB / 340.3 MB, free: 344 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.248e-05/0.3668, allocations: 27.98 kB / 340.4 MB, free: 316 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.783e-06/0.3669, allocations: 0 / 340.4 MB, free: 316 kB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004935/0.3674, allocations: 146.3 kB / 340.5 MB, free: 160 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.3674, allocations: 5.094 kB / 340.5 MB, free: 156 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.347e-06/0.3674, allocations: 4.094 kB / 340.5 MB, free: 152 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003369/0.3678, allocations: 52.8 kB / 340.6 MB, free: 96 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.3689, allocations: 135.9 kB / 340.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003254/0.3722, allocations: 2.794 MB / 343.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.3724, allocations: 20.02 kB / 343.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.3724, allocations: 7.938 kB / 343.5 MB, free: 12.88 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.3725, allocations: 113 kB / 343.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.639e-05/0.3726, allocations: 15.81 kB / 343.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004504/0.3731, allocations: 131 kB / 343.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.683e-06/0.3731, allocations: 0 / 343.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.298e-06/0.3731, allocations: 64 / 343.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3731, allocations: 4 kB / 343.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008684/0.374, allocations: 444.1 kB / 344.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.574e-06/0.374, allocations: 7.938 kB / 344.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.3742, allocations: 19.94 kB / 344.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003331/0.3745, allocations: 56.83 kB / 344.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.3746, allocations: 0 / 344.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00164/0.3762, allocations: 1.374 MB / 345.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.376e-06/0.3762, allocations: 0 / 345.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005773/0.3768, allocations: 275 kB / 345.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.377, allocations: 93.03 kB / 346 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.932e-05/0.377, allocations: 4 kB / 346 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.3772, allocations: 11.98 kB / 346 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/0.3773, allocations: 4 kB / 346 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.3773, allocations: 11.98 kB / 346 MB, free: 10.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001355/0.3775, allocations: 128 kB / 346.2 MB, free: 9.945 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.829e-06/0.3775, allocations: 0 / 346.2 MB, free: 9.945 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004303/0.3779, allocations: 55.77 kB / 346.2 MB, free: 9.891 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001532/0.3781, allocations: 99.25 kB / 346.3 MB, free: 9.781 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.3792, allocations: 271.5 kB / 346.6 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.381e-06/0.3792, allocations: 0 / 346.6 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002945/0.3795, allocations: 158.5 kB / 346.7 MB, free: 9.332 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001986/0.3798, allocations: 12.02 kB / 346.8 MB, free: 9.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007047/0.3805, allocations: 322.5 kB / 347.1 MB, free: 8.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.3809, allocations: 0.7204 MB / 347.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.3809, allocations: 11.44 kB / 347.8 MB, free: 8.223 MB / 298.7 MB Notification: Performance of SimCode: time 1.466e-06/0.381, allocations: 0 / 347.8 MB, free: 8.223 MB / 298.7 MB Notification: Performance of Templates: time 0.005029/0.386, allocations: 2.405 MB / 350.2 MB, free: 5.816 MB / 298.7 MB