Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.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.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.741e-05/2.757e-05, allocations: 4 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2766, allocations: 38.76 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1085/0.3852, allocations: 70.39 MB / 338 MB, free: 2.949 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.3855, allocations: 75.95 kB / 338 MB, free: 2.875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02909/0.4146, allocations: 6.707 MB / 344.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.685e-06/0.4146, allocations: 0 / 344.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.823e-05/0.4147, allocations: 8 kB / 344.8 MB, free: 12.12 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001035/0.4157, allocations: 0.5255 MB / 345.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.4158, allocations: 12.03 kB / 345.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.832e-05/0.4159, allocations: 39.53 kB / 345.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004236/0.4163, allocations: 254.9 kB / 345.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/0.4164, allocations: 20.56 kB / 345.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.04e-05/0.4165, allocations: 31.95 kB / 345.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005785/0.4171, allocations: 224.9 kB / 345.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.4171, allocations: 0 / 345.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.126e-05/0.4171, allocations: 12 kB / 345.9 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.4172, allocations: 4 kB / 345.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004774/0.4176, allocations: 178.2 kB / 346 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.42, allocations: 1.002 MB / 347 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004506/0.4204, allocations: 190.9 kB / 347.2 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.4207, allocations: 97.23 kB / 347.3 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.4209, allocations: 89.28 kB / 347.4 MB, free: 9.254 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/0.421, allocations: 34.75 kB / 347.5 MB, free: 9.211 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 4.241e-06/0.421, allocations: 0 / 347.5 MB, free: 9.211 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.006887/0.4279, allocations: 1.27 MB / 348.7 MB, free: 7.887 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.428, allocations: 51.41 kB / 348.8 MB, free: 7.824 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003505/0.4283, allocations: 212.9 kB / 349 MB, free: 7.609 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.677e-05/0.4284, allocations: 29.7 kB / 349 MB, free: 7.574 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.4286, allocations: 238.6 kB / 349.2 MB, free: 7.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.4287, allocations: 98.56 kB / 349.3 MB, free: 7.242 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/0.4288, allocations: 4 kB / 349.3 MB, free: 7.238 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.4289, allocations: 326.8 kB / 349.7 MB, free: 6.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002816/0.4292, allocations: 104 kB / 349.8 MB, free: 6.809 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.4296, allocations: 148.7 kB / 349.9 MB, free: 6.645 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.4299, allocations: 119.9 kB / 350 MB, free: 6.527 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.184e-06/0.4299, allocations: 4 kB / 350 MB, free: 6.523 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002549/0.4325, allocations: 0.5063 MB / 350.5 MB, free: 6.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.4325, allocations: 4 kB / 350.5 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.4326, allocations: 4 kB / 350.5 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00152/0.4341, allocations: 209.5 kB / 350.7 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003613/0.4345, allocations: 51.97 kB / 350.8 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005109/0.4396, allocations: 2.692 MB / 353.5 MB, free: 2.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.44, allocations: 15.92 kB / 353.5 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.63e-05/0.4401, allocations: 15.98 kB / 353.5 MB, free: 2.848 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001664/0.4403, allocations: 129.6 kB / 353.6 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.427e-05/0.4404, allocations: 23.72 kB / 353.7 MB, free: 2.691 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002452/0.4428, allocations: 494 kB / 354.2 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.4429, allocations: 7.953 kB / 354.2 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.282e-06/0.4429, allocations: 4 kB / 354.2 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.4429, allocations: 3.984 kB / 354.2 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003318/0.4462, allocations: 0.9533 MB / 355.1 MB, free: 1.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.228e-06/0.4463, allocations: 0 / 355.1 MB, free: 1.164 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003024/0.4466, allocations: 35.92 kB / 355.2 MB, free: 1.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00149/0.4481, allocations: 209.5 kB / 355.4 MB, free: 0.918 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.826e-05/0.4482, allocations: 15.98 kB / 355.4 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1858/0.634, allocations: 2.687 MB / 358.1 MB, free: 78.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-06/0.6341, allocations: 7.953 kB / 358.1 MB, free: 78.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002837/0.6369, allocations: 0.7098 MB / 358.8 MB, free: 78.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/0.6371, allocations: 128.9 kB / 358.9 MB, free: 78.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.507e-05/0.6372, allocations: 5.031 kB / 358.9 MB, free: 78.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003557/0.6376, allocations: 17.81 kB / 358.9 MB, free: 78.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.6377, allocations: 22.55 kB / 359 MB, free: 78.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.832e-05/0.6378, allocations: 12.86 kB / 359 MB, free: 78.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001988/0.638, allocations: 163.2 kB / 359.1 MB, free: 78.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.18e-07/0.638, allocations: 3.312 kB / 359.1 MB, free: 78.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007146/0.6387, allocations: 92.94 kB / 359.2 MB, free: 78.6 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * 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%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002331/0.639, allocations: 130.1 kB / 359.3 MB, free: 78.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001009/0.64, allocations: 417.5 kB / 359.8 MB, free: 78.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.005e-06/0.64, allocations: 2.906 kB / 359.8 MB, free: 78.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005837/0.6406, allocations: 284.3 kB / 360 MB, free: 78.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.641, allocations: 22.61 kB / 360.1 MB, free: 78.28 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.6422, allocations: 480.7 kB / 360.5 MB, free: 78.08 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.6424, allocations: 0.7806 MB / 361.3 MB, free: 77.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.046e-05/0.6425, allocations: 21.81 kB / 361.3 MB, free: 77.38 MB / 298.7 MB Notification: Performance of SimCode: time 1.836e-06/0.6425, allocations: 0 / 361.3 MB, free: 77.38 MB / 298.7 MB Notification: Performance of Templates: time 0.008642/0.6512, allocations: 5.717 MB / 367 MB, free: 76.47 MB / 298.7 MB