Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadModel(Modelica): time 2.001/2.001, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005193/0.0005193, allocations: 8 kB / 233.8 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1183, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.346/0.4643, allocations: 67.62 MB / 340.2 MB, free: 5.793 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.4647, allocations: 70.59 kB / 340.3 MB, free: 5.758 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01216/0.4769, allocations: 2.638 MB / 342.9 MB, free: 3.508 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4769, allocations: 0 / 342.9 MB, free: 3.508 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.4769, allocations: 0 / 342.9 MB, free: 3.508 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.0008926/0.4778, allocations: 440.6 kB / 343.4 MB, free: 3.039 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.4779, allocations: 8.031 kB / 343.4 MB, free: 3.031 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.979e-05/0.478, allocations: 23.81 kB / 343.4 MB, free: 3.008 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.4782, allocations: 194.2 kB / 343.6 MB, free: 2.785 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.4783, allocations: 11.83 kB / 343.6 MB, free: 2.777 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-05/0.4783, allocations: 11.5 kB / 343.6 MB, free: 2.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.4787, allocations: 128.7 kB / 343.7 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.4788, allocations: 0 / 343.7 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/0.4788, allocations: 7.875 kB / 343.7 MB, free: 2.652 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.4788, allocations: 4 kB / 343.8 MB, free: 2.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.4791, allocations: 73.02 kB / 343.8 MB, free: 2.598 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.4805, allocations: 0.5137 MB / 344.3 MB, free: 2.098 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003974/0.4809, allocations: 86.86 kB / 344.4 MB, free: 2.023 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.481, allocations: 0 / 344.4 MB, free: 2.023 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.481, allocations: 38.52 kB / 344.5 MB, free: 1.977 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 3.667e-06/0.481, allocations: 0 / 344.5 MB, free: 1.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.001138/0.4822, allocations: 262.7 kB / 344.7 MB, free: 1.719 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.809e-05/0.4823, allocations: 106.8 kB / 344.8 MB, free: 1.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.4825, allocations: 159.4 kB / 345 MB, free: 1.445 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.4826, allocations: 25.7 kB / 345 MB, free: 1.414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.4827, allocations: 116.2 kB / 345.1 MB, free: 1.305 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.443e-05/0.4827, allocations: 34.95 kB / 345.1 MB, free: 1.273 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.4828, allocations: 3.25 kB / 345.2 MB, free: 1.273 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4829, allocations: 318.2 kB / 345.5 MB, free: 0.957 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.4831, allocations: 33.67 kB / 345.5 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.4833, allocations: 68.45 kB / 345.6 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.4834, allocations: 48.16 kB / 345.6 MB, free: 0.832 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4835, allocations: 4.031 kB / 345.6 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006866/0.4842, allocations: 159.1 kB / 345.8 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.4842, allocations: 4 kB / 345.8 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.4842, allocations: 4 kB / 345.8 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004867/0.4847, allocations: 48.34 kB / 345.8 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/0.4864, allocations: 134.9 kB / 346 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004082/0.4905, allocations: 2.83 MB / 348.8 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002801/0.4908, allocations: 18.91 kB / 348.8 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.4909, allocations: 7.984 kB / 348.8 MB, free: 13.49 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.0001699/0.491, allocations: 126.4 kB / 348.9 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/0.4911, allocations: 22.59 kB / 349 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006257/0.4917, allocations: 151 kB / 349.1 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.4918, allocations: 0 / 349.1 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.4918, allocations: 0 / 349.1 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.4918, allocations: 3.953 kB / 349.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003357/0.4921, allocations: 227.8 kB / 349.3 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.4922, allocations: 7.984 kB / 349.3 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.4924, allocations: 12 kB / 349.4 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004994/0.4929, allocations: 54.8 kB / 349.4 MB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.4929, allocations: 3.938 kB / 349.4 MB, free: 12.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/0.4947, allocations: 1.369 MB / 350.8 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4948, allocations: 4.094 kB / 350.8 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007913/0.4956, allocations: 282.8 kB / 351.1 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.4957, allocations: 100.3 kB / 351.2 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.068e-05/0.4957, allocations: 7.938 kB / 351.2 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.496, allocations: 11.25 kB / 351.2 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/0.4961, allocations: 15.95 kB / 351.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.4961, allocations: 4 kB / 351.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001365/0.4962, allocations: 124.8 kB / 351.3 MB, free: 10.94 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4962, allocations: 0 / 351.3 MB, free: 10.94 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004939/0.4968, allocations: 43.09 kB / 351.4 MB, free: 10.9 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.0001795/0.4969, allocations: 115.2 kB / 351.5 MB, free: 10.79 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.4988, allocations: 294.3 kB / 351.8 MB, free: 10.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4988, allocations: 4 kB / 351.8 MB, free: 10.5 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003871/0.4992, allocations: 173.9 kB / 351.9 MB, free: 10.33 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.4995, allocations: 7.984 kB / 351.9 MB, free: 10.33 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.5006, allocations: 481.3 kB / 352.4 MB, free: 9.848 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.501, allocations: 0.7165 MB / 353.1 MB, free: 9.105 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.721e-05/0.5011, allocations: 16.42 kB / 353.1 MB, free: 9.086 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.5012, allocations: 15 kB / 353.2 MB, free: 9.074 MB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5012, allocations: 0 / 353.2 MB, free: 9.074 MB / 282.7 MB Notification: Performance of Templates: time 0.006518/0.5077, allocations: 1.671 MB / 354.8 MB, free: 7.41 MB / 282.7 MB