Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|converter_m.Phi.re|inductor_e.i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") Notification: Performance of loadModel(Modelica): time 1.779/1.779, allocations: 171.2 MB / 187.3 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003603, allocations: 15.98 kB / 233.8 MB, free: 0.9609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08493/0.08532, allocations: 38.76 MB / 272.5 MB, free: 10.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3363/0.4216, allocations: 70.84 MB / 343.4 MB, free: 12.24 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.422, allocations: 87.95 kB / 343.5 MB, free: 12.15 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03623/0.4583, allocations: 9.004 MB / 352.5 MB, free: 3.062 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4583, allocations: 0 / 352.5 MB, free: 3.062 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.494e-05/0.4583, allocations: 4.219 kB / 352.5 MB, free: 3.059 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001801/0.4602, allocations: 0.6623 MB / 353.1 MB, free: 2.348 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.4602, allocations: 12.03 kB / 353.2 MB, free: 2.336 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003408/0.4606, allocations: 51.52 kB / 353.2 MB, free: 2.285 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005676/0.4612, allocations: 296.2 kB / 353.5 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/0.4612, allocations: 20.66 kB / 353.5 MB, free: 1.934 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.66e-05/0.4613, allocations: 32 kB / 353.5 MB, free: 1.902 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000885/0.4622, allocations: 316.6 kB / 353.9 MB, free: 1.578 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.4622, allocations: 0 / 353.9 MB, free: 1.578 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.182e-05/0.4623, allocations: 20 kB / 353.9 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.4623, allocations: 8 kB / 353.9 MB, free: 1.551 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007402/0.4631, allocations: 211.3 kB / 354.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002983/0.4661, allocations: 1.328 MB / 355.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004178/0.4665, allocations: 141.1 kB / 355.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.4666, allocations: 4 kB / 355.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.4666, allocations: 34.56 kB / 355.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.385e-06/0.4666, allocations: 0 / 355.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.000981/0.4676, allocations: 201.5 kB / 355.8 MB, free: 15.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.06e-05/0.4677, allocations: 81.11 kB / 355.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005907/0.4683, allocations: 274.9 kB / 356.1 MB, free: 15.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.4684, allocations: 25.7 kB / 356.2 MB, free: 15.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/0.4686, allocations: 286.1 kB / 356.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.957e-05/0.4687, allocations: 55.38 kB / 356.5 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.358e-05/0.4688, allocations: 4 kB / 356.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.469, allocations: 326.8 kB / 356.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003331/0.4693, allocations: 63.97 kB / 356.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004351/0.4698, allocations: 165.7 kB / 357 MB, free: 14.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004037/0.4702, allocations: 92.89 kB / 357.1 MB, free: 14.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.4702, allocations: 0 / 357.1 MB, free: 14.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001024/0.4712, allocations: 257.1 kB / 357.4 MB, free: 13.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.4713, allocations: 8.438 kB / 357.4 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.4713, allocations: 4 kB / 357.4 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.797e-05/0.4714, allocations: 8 kB / 357.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/0.472, allocations: 67.89 kB / 357.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.681e-05/0.472, allocations: 4 kB / 357.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004339/0.4725, allocations: 35.69 kB / 357.5 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.4725, allocations: 19.92 kB / 357.5 MB, free: 13.67 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (31): * Single equations (assignments): 31 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003072/0.4729, allocations: 149.8 kB / 357.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.473, allocations: 27.67 kB / 357.7 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.465e-05/0.4731, allocations: 29.73 kB / 357.7 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.4731, allocations: 3.984 kB / 357.7 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.4731, allocations: 0 / 357.7 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.4732, allocations: 4 kB / 357.7 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.4746, allocations: 0.5071 MB / 358.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.4746, allocations: 4.062 kB / 358.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004602/0.4751, allocations: 35.98 kB / 358.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.4751, allocations: 0 / 358.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.4752, allocations: 4 kB / 358.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.4752, allocations: 4 kB / 358.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4752, allocations: 0 / 358.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.4763, allocations: 403.4 kB / 358.7 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002148/0.4766, allocations: 112.8 kB / 358.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.668e-05/0.4767, allocations: 4.062 kB / 358.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004977/0.4772, allocations: 19.98 kB / 358.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.069e-05/0.4773, allocations: 7.984 kB / 358.8 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.4773, allocations: 4 kB / 358.8 MB, free: 12.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004188/0.4778, allocations: 201.9 kB / 359 MB, free: 12.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4778, allocations: 0 / 359 MB, free: 12.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009673/0.4788, allocations: 75.69 kB / 359.1 MB, free: 11.98 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter_m.Phi.re,inductor_e.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 (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002883/0.4791, allocations: 127.2 kB / 359.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008786/0.48, allocations: 163.7 kB / 359.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.48, allocations: 0 / 359.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003333/0.4804, allocations: 64.84 kB / 359.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006495/0.481, allocations: 28.84 kB / 359.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.4835, allocations: 0.8002 MB / 360.3 MB, free: 10.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006031/0.4842, allocations: 0.7755 MB / 361.1 MB, free: 9.957 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.4843, allocations: 23.44 kB / 361.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of SimCode: time 1.733e-06/0.4844, allocations: 0 / 361.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of Templates: time 0.01062/0.495, allocations: 3.115 MB / 364.2 MB, free: 6.82 MB / 298.7 MB