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/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.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.696/1.696, allocations: 171.3 MB / 179.2 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.301e-05/2.328e-05, allocations: 0 / 222.5 MB, free: 4.758 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2141, allocations: 38.78 MB / 261.3 MB, free: 13.02 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1042/0.3183, allocations: 66.87 MB / 328.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.3186, allocations: 67.97 kB / 328.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.011/0.3296, allocations: 2.593 MB / 330.8 MB, free: 8.004 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.138e-06/0.3296, allocations: 0 / 330.8 MB, free: 8.004 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.3297, allocations: 4 kB / 330.8 MB, free: 8 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.0006655/0.3303, allocations: 422.1 kB / 331.2 MB, free: 7.543 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.3304, allocations: 8.031 kB / 331.2 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.741e-05/0.3305, allocations: 19.81 kB / 331.3 MB, free: 7.516 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002472/0.3307, allocations: 183 kB / 331.4 MB, free: 7.297 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.3308, allocations: 8 kB / 331.4 MB, free: 7.289 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.3308, allocations: 12.39 kB / 331.5 MB, free: 7.277 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001832/0.331, allocations: 59.98 kB / 331.5 MB, free: 7.219 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.3313, allocations: 112.1 kB / 331.6 MB, free: 7.094 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.3314, allocations: 0 / 331.6 MB, free: 7.094 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.087e-05/0.3314, allocations: 3.938 kB / 331.6 MB, free: 7.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.3315, allocations: 4 kB / 331.6 MB, free: 7.086 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.3338, allocations: 491.7 kB / 332.1 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005631/0.3344, allocations: 74.69 kB / 332.2 MB, free: 6.477 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002914/0.3348, allocations: 45.02 kB / 332.2 MB, free: 6.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.632e-05/0.3348, allocations: 7.984 kB / 332.2 MB, free: 6.422 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.39e-05/0.3349, allocations: 34.56 kB / 332.3 MB, free: 6.379 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 6.238e-06/0.335, allocations: 0 / 332.3 MB, free: 6.379 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.001032/0.336, allocations: 114.3 kB / 332.4 MB, free: 6.258 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.3362, allocations: 106.8 kB / 332.5 MB, free: 6.129 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/0.3366, allocations: 137.4 kB / 332.6 MB, free: 5.988 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.252e-05/0.3366, allocations: 25.7 kB / 332.6 MB, free: 5.957 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/0.3369, allocations: 190.5 kB / 332.8 MB, free: 5.766 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.01e-05/0.337, allocations: 19.62 kB / 332.9 MB, free: 5.746 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.496e-05/0.337, allocations: 4 kB / 332.9 MB, free: 5.742 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002757/0.3373, allocations: 314.8 kB / 333.2 MB, free: 5.426 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.3375, allocations: 24 kB / 333.2 MB, free: 5.402 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.3378, allocations: 61.14 kB / 333.2 MB, free: 5.324 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.338, allocations: 27.94 kB / 333.3 MB, free: 5.297 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.338, allocations: 3.984 kB / 333.3 MB, free: 5.293 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00103/0.3391, allocations: 134.4 kB / 333.4 MB, free: 5.152 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.324e-05/0.3392, allocations: 5.406 kB / 333.4 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.3392, allocations: 0 / 333.4 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006961/0.3399, allocations: 48.81 kB / 333.5 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/0.3422, allocations: 135.9 kB / 333.6 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006286/0.3485, allocations: 2.694 MB / 336.3 MB, free: 2.043 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004406/0.349, allocations: 20.08 kB / 336.3 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.678e-05/0.3491, allocations: 4 kB / 336.3 MB, free: 2.02 MB / 282.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.0002153/0.3493, allocations: 105 kB / 336.4 MB, free: 1.91 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.3495, allocations: 15.8 kB / 336.4 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008879/0.3504, allocations: 123 kB / 336.6 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.614e-06/0.3504, allocations: 4 kB / 336.6 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.766e-06/0.3505, allocations: 0 / 336.6 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3505, allocations: 0 / 336.6 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.3522, allocations: 418.2 kB / 337 MB, free: 1.305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.88e-06/0.3522, allocations: 0 / 337 MB, free: 1.305 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/0.3526, allocations: 20.02 kB / 337 MB, free: 1.285 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000676/0.3533, allocations: 52.81 kB / 337 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.3533, allocations: 0 / 337 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003202/0.3565, allocations: 1.303 MB / 338.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.373e-06/0.3566, allocations: 0 / 338.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.3578, allocations: 271 kB / 338.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002242/0.358, allocations: 101 kB / 338.7 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.702e-05/0.3581, allocations: 4 kB / 338.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004712/0.3586, allocations: 24.03 kB / 338.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.744e-05/0.3587, allocations: 7.984 kB / 338.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.3588, allocations: 0 / 338.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002587/0.359, allocations: 119.3 kB / 338.9 MB, free: 15.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.327e-06/0.3591, allocations: 0 / 338.9 MB, free: 15.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001074/0.3602, allocations: 35.94 kB / 338.9 MB, free: 15.21 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.0002976/0.3605, allocations: 103.2 kB / 339 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002245/0.3628, allocations: 254.6 kB / 339.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.744e-06/0.3628, allocations: 0 / 339.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005964/0.3634, allocations: 161.7 kB / 339.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004595/0.3639, allocations: 4 kB / 339.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.3654, allocations: 308.4 kB / 339.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007183/0.3661, allocations: 0.7162 MB / 340.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.191e-05/0.3663, allocations: 15.38 kB / 340.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of SimCode: time 2.377e-06/0.3663, allocations: 0 / 340.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of Templates: time 0.01069/0.377, allocations: 2.406 MB / 342.8 MB, free: 11.16 MB / 298.7 MB