Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.795/1.795, allocations: 171.2 MB / 187.3 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003443, allocations: 8 kB / 233.8 MB, free: 0.9766 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08666, allocations: 38.76 MB / 272.5 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3404/0.4271, allocations: 70.47 MB / 343 MB, free: 12.63 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.4274, allocations: 75.95 kB / 343.1 MB, free: 12.55 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03/0.4574, allocations: 6.729 MB / 349.8 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4575, allocations: 4 kB / 349.8 MB, free: 5.797 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.784e-05/0.4575, allocations: 4 kB / 349.8 MB, free: 5.793 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001205/0.4587, allocations: 0.5649 MB / 350.4 MB, free: 5.18 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.4588, allocations: 12.03 kB / 350.4 MB, free: 5.168 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.298e-05/0.4589, allocations: 31.62 kB / 350.4 MB, free: 5.137 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.4593, allocations: 258.8 kB / 350.7 MB, free: 4.844 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.245e-05/0.4594, allocations: 20.52 kB / 350.7 MB, free: 4.82 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.456e-05/0.4595, allocations: 28 kB / 350.7 MB, free: 4.793 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007449/0.4602, allocations: 240.9 kB / 351 MB, free: 4.551 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.4602, allocations: 4 kB / 351 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.125e-05/0.4603, allocations: 12 kB / 351 MB, free: 4.535 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.4603, allocations: 8 kB / 351 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007425/0.4611, allocations: 210 kB / 351.2 MB, free: 4.324 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002407/0.4635, allocations: 1.002 MB / 352.2 MB, free: 3.234 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006953/0.4642, allocations: 195 kB / 352.4 MB, free: 3.035 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.4644, allocations: 89.28 kB / 352.5 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.4645, allocations: 35.91 kB / 352.5 MB, free: 2.887 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.695e-06/0.4645, allocations: 0 / 352.5 MB, free: 2.887 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.01068/0.4752, allocations: 1.49 MB / 354 MB, free: 1.32 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.4753, allocations: 55.41 kB / 354 MB, free: 1.254 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004388/0.4757, allocations: 221 kB / 354.3 MB, free: 1.031 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.159e-05/0.4758, allocations: 33.7 kB / 354.3 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.476, allocations: 246.5 kB / 354.5 MB, free: 0.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.4761, allocations: 106.5 kB / 354.6 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.4762, allocations: 7.938 kB / 354.6 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.4763, allocations: 322.8 kB / 355 MB, free: 320 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004387/0.4768, allocations: 111.9 kB / 355.1 MB, free: 208 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.4773, allocations: 159.8 kB / 355.2 MB, free: 32 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005024/0.4778, allocations: 123.8 kB / 355.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4778, allocations: 0 / 355.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003608/0.4814, allocations: 0.4983 MB / 355.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.4815, allocations: 12.72 kB / 355.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.4815, allocations: 0 / 355.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004974/0.4865, allocations: 297.3 kB / 356.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005031/0.487, allocations: 55.91 kB / 356.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005875/0.4929, allocations: 2.668 MB / 358.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004682/0.4935, allocations: 12 kB / 358.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.285e-05/0.4935, allocations: 11.98 kB / 358.9 MB, free: 12.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (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.0002753/0.4938, allocations: 149.8 kB / 359 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.008e-05/0.4939, allocations: 23.72 kB / 359.1 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003555/0.4975, allocations: 0.5022 MB / 359.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.4975, allocations: 0 / 359.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.4975, allocations: 4 kB / 359.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.4975, allocations: 0 / 359.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008039/0.4984, allocations: 381.4 kB / 359.9 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4984, allocations: 0 / 359.9 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003942/0.4988, allocations: 43.91 kB / 360 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004917/0.5037, allocations: 301.4 kB / 360.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.694e-05/0.5038, allocations: 7.984 kB / 360.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005551/0.5094, allocations: 2.669 MB / 363 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.5094, allocations: 0 / 363 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00401/0.5134, allocations: 0.7078 MB / 363.7 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002204/0.5137, allocations: 120.8 kB / 363.8 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.653e-05/0.5138, allocations: 4 kB / 363.8 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.5142, allocations: 19.92 kB / 363.8 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.5144, allocations: 39.94 kB / 363.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.5144, allocations: 4 kB / 363.9 MB, free: 6.949 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002409/0.5147, allocations: 168.4 kB / 364 MB, free: 6.781 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5147, allocations: 0 / 364 MB, free: 6.781 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006994/0.5154, allocations: 99.94 kB / 364.1 MB, free: 6.684 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (coil.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 (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.0002725/0.5157, allocations: 123.2 kB / 364.2 MB, free: 6.555 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.5171, allocations: 430.9 kB / 364.7 MB, free: 6.121 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.5171, allocations: 0 / 364.7 MB, free: 6.121 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007699/0.5179, allocations: 298.7 kB / 364.9 MB, free: 5.816 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003685/0.5183, allocations: 24.62 kB / 365 MB, free: 5.793 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.5203, allocations: 0.8342 MB / 365.8 MB, free: 4.922 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.5207, allocations: 0.7794 MB / 366.6 MB, free: 4.117 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.5208, allocations: 27.42 kB / 366.6 MB, free: 4.09 MB / 298.7 MB Notification: Performance of SimCode: time 1.393e-06/0.5209, allocations: 0 / 366.6 MB, free: 4.09 MB / 298.7 MB Notification: Performance of Templates: time 0.01226/0.5331, allocations: 5.657 MB / 372.3 MB, free: 14.42 MB / 314.7 MB