Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.632/1.632, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.0003699, allocations: 12 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08057/0.08096, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3364/0.4174, allocations: 67.61 MB / 340.2 MB, free: 6.309 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.4178, allocations: 75.08 kB / 340.2 MB, free: 6.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01287/0.4306, allocations: 2.634 MB / 342.9 MB, free: 4.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4307, allocations: 0 / 342.9 MB, free: 4.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.4307, allocations: 0 / 342.9 MB, free: 4.02 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008981/0.4316, allocations: 437.4 kB / 343.3 MB, free: 3.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.4317, allocations: 8.031 kB / 343.3 MB, free: 3.547 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.272e-05/0.4318, allocations: 15.81 kB / 343.3 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002379/0.432, allocations: 194.5 kB / 343.5 MB, free: 3.305 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.4321, allocations: 11.45 kB / 343.5 MB, free: 3.297 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.4321, allocations: 11.38 kB / 343.5 MB, free: 3.289 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.4326, allocations: 139.5 kB / 343.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.4326, allocations: 0 / 343.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.4326, allocations: 7.188 kB / 343.7 MB, free: 3.164 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.4327, allocations: 4 kB / 343.7 MB, free: 3.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000286/0.433, allocations: 78 kB / 343.7 MB, free: 3.105 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.4343, allocations: 0.5104 MB / 344.3 MB, free: 2.609 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004007/0.4348, allocations: 84.05 kB / 344.3 MB, free: 2.535 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.4348, allocations: 0 / 344.3 MB, free: 2.535 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.4349, allocations: 42.39 kB / 344.4 MB, free: 2.488 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 3.947e-06/0.4349, allocations: 4 kB / 344.4 MB, free: 2.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.001201/0.4361, allocations: 255.6 kB / 344.6 MB, free: 2.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.4362, allocations: 114.6 kB / 344.7 MB, free: 2.098 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.4365, allocations: 149.7 kB / 344.9 MB, free: 1.957 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.4365, allocations: 29.58 kB / 344.9 MB, free: 1.926 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.4366, allocations: 185 kB / 345.1 MB, free: 1.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.301e-05/0.4367, allocations: 30.11 kB / 345.1 MB, free: 1.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.4367, allocations: 0 / 345.1 MB, free: 1.723 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.4369, allocations: 314 kB / 345.4 MB, free: 1.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.437, allocations: 31.86 kB / 345.5 MB, free: 1.387 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.4372, allocations: 71.89 kB / 345.5 MB, free: 1.316 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.4374, allocations: 33.67 kB / 345.6 MB, free: 1.297 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4374, allocations: 0 / 345.6 MB, free: 1.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0007075/0.4381, allocations: 167.1 kB / 345.7 MB, free: 1.152 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.4382, allocations: 5.094 kB / 345.7 MB, free: 1.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.4382, allocations: 4.375 kB / 345.7 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004754/0.4387, allocations: 52.28 kB / 345.8 MB, free: 1.094 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001748/0.4405, allocations: 135.9 kB / 345.9 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004325/0.4448, allocations: 2.828 MB / 348.8 MB, free: 13.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.4452, allocations: 15.95 kB / 348.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.4452, allocations: 4 kB / 348.8 MB, free: 13.95 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (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.0001759/0.4454, allocations: 132.8 kB / 348.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.526e-05/0.4455, allocations: 15.69 kB / 348.9 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006747/0.4461, allocations: 150.4 kB / 349.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.4462, allocations: 4 kB / 349.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.4462, allocations: 3.938 kB / 349.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.4462, allocations: 3.953 kB / 349.1 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003562/0.4466, allocations: 222.6 kB / 349.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.4466, allocations: 0 / 349.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002185/0.4468, allocations: 27.05 kB / 349.3 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004743/0.4473, allocations: 48.61 kB / 349.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.4473, allocations: 7.938 kB / 349.4 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001913/0.4493, allocations: 1.374 MB / 350.8 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4493, allocations: 0 / 350.8 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008536/0.4502, allocations: 288.9 kB / 351 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.4503, allocations: 100.2 kB / 351.1 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.096e-05/0.4504, allocations: 3.953 kB / 351.1 MB, free: 11.53 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.4506, allocations: 19.92 kB / 351.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.722e-05/0.4507, allocations: 7.984 kB / 351.2 MB, free: 11.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.4507, allocations: 0 / 351.2 MB, free: 11.51 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001418/0.4509, allocations: 126.8 kB / 351.3 MB, free: 11.4 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4509, allocations: 0 / 351.3 MB, free: 11.4 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004407/0.4514, allocations: 43.22 kB / 351.3 MB, free: 11.36 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.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 (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.0001863/0.4516, allocations: 107.2 kB / 351.4 MB, free: 11.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.4535, allocations: 301.4 kB / 351.7 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.4536, allocations: 0 / 351.7 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003995/0.454, allocations: 162 kB / 351.9 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.4542, allocations: 10.94 kB / 351.9 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.4555, allocations: 0.4984 MB / 352.4 MB, free: 10.28 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.4558, allocations: 0.7165 MB / 353.1 MB, free: 9.539 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.741e-05/0.4559, allocations: 11.44 kB / 353.1 MB, free: 9.527 MB / 282.7 MB Notification: Performance of SimCode: time 1.011e-06/0.4559, allocations: 4 kB / 353.1 MB, free: 9.523 MB / 282.7 MB Notification: Performance of Templates: time 0.006323/0.4622, allocations: 2.432 MB / 355.6 MB, free: 7.102 MB / 282.7 MB