Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadModel(Modelica): time 1.726/1.726, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003384, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09249/0.09285, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3931/0.486, allocations: 75.01 MB / 384 MB, free: 14.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.4863, allocations: 78.47 kB / 384.1 MB, free: 14.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02743/0.5138, allocations: 6.894 MB / 390.9 MB, free: 13.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5138, allocations: 0 / 390.9 MB, free: 13.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.636e-05/0.5138, allocations: 7.781 kB / 391 MB, free: 13.99 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001034/0.5149, allocations: 0.548 MB / 391.5 MB, free: 13.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.5149, allocations: 11.62 kB / 391.5 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.5e-05/0.515, allocations: 33.59 kB / 391.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.5154, allocations: 272 kB / 391.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.5155, allocations: 19.44 kB / 391.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.634e-05/0.5155, allocations: 25.38 kB / 391.9 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006429/0.5162, allocations: 245.1 kB / 392.1 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.5162, allocations: 0 / 392.1 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.904e-05/0.5163, allocations: 13.44 kB / 392.1 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.639e-06/0.5163, allocations: 7.75 kB / 392.1 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006742/0.517, allocations: 225.3 kB / 392.3 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.5189, allocations: 1.011 MB / 393.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006089/0.5196, allocations: 213.8 kB / 393.6 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.5196, allocations: 7.906 kB / 393.6 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.5197, allocations: 36.88 kB / 393.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.114e-06/0.5197, allocations: 3.938 kB / 393.6 MB, free: 12.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.007458/0.5271, allocations: 1.495 MB / 395.1 MB, free: 12.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/0.5272, allocations: 55.38 kB / 395.2 MB, free: 12.1 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/0.5275, allocations: 232.1 kB / 395.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.5275, allocations: 29.02 kB / 395.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.165e-05/0.5276, allocations: 249 kB / 395.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.989e-05/0.5277, allocations: 115.5 kB / 395.8 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.707e-05/0.5278, allocations: 11.12 kB / 395.8 MB, free: 11.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.13e-05/0.5278, allocations: 323.3 kB / 396.1 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003587/0.5282, allocations: 106.4 kB / 396.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003917/0.5286, allocations: 162.4 kB / 396.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004043/0.529, allocations: 129 kB / 396.5 MB, free: 11.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.529, allocations: 0 / 396.5 MB, free: 11.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002511/0.5316, allocations: 0.529 MB / 397 MB, free: 11.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.5316, allocations: 7.969 kB / 397 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.5316, allocations: 7.844 kB / 397 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002326/0.5339, allocations: 247.8 kB / 397.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004423/0.5344, allocations: 62.16 kB / 397.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005834/0.5403, allocations: 3.795 MB / 401.1 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.5407, allocations: 15.27 kB / 401.1 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.422e-05/0.5407, allocations: 15.03 kB / 401.2 MB, free: 8.461 MB / 314.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 (28): * Single equations (assignments): 26 * 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%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002132/0.541, allocations: 141.9 kB / 401.3 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.541, allocations: 27.25 kB / 401.3 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.5412, allocations: 51.75 kB / 401.4 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.5412, allocations: 3.844 kB / 401.4 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.5412, allocations: 0 / 401.4 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.5412, allocations: 3.562 kB / 401.4 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005214/0.5417, allocations: 379.8 kB / 401.7 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.5417, allocations: 0 / 401.7 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003561/0.5421, allocations: 37.89 kB / 401.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002298/0.5444, allocations: 252.2 kB / 402 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/0.5445, allocations: 7.578 kB / 402 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005426/0.5499, allocations: 3.688 MB / 405.7 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5499, allocations: 3.516 kB / 405.7 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002829/0.5528, allocations: 0.7155 MB / 406.4 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.782e-05/0.5529, allocations: 96.61 kB / 406.5 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.172e-05/0.5529, allocations: 14.83 kB / 406.6 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000361/0.5533, allocations: 14.14 kB / 406.6 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.5534, allocations: 28.42 kB / 406.6 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.71e-05/0.5535, allocations: 11.19 kB / 406.6 MB, free: 5.141 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001736/0.5536, allocations: 161 kB / 406.8 MB, free: 5.062 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5537, allocations: 64 / 406.8 MB, free: 5.062 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007307/0.5544, allocations: 106.7 kB / 406.9 MB, free: 5.059 MB / 314.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 (18): * Single equations (assignments): 16 * 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%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001773/0.5546, allocations: 120.7 kB / 407 MB, free: 4.969 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.5558, allocations: 0.5568 MB / 407.5 MB, free: 4.719 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5559, allocations: 0 / 407.5 MB, free: 4.719 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007069/0.5566, allocations: 440.4 kB / 408 MB, free: 4.465 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.5569, allocations: 30.08 kB / 408 MB, free: 4.457 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.5585, allocations: 0.8529 MB / 408.9 MB, free: 19.98 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.5589, allocations: 0.7853 MB / 409.6 MB, free: 19.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.176e-05/0.559, allocations: 19.06 kB / 409.7 MB, free: 19.27 MB / 330.7 MB Notification: Performance of SimCode: time 9.02e-07/0.559, allocations: 0 / 409.7 MB, free: 19.27 MB / 330.7 MB Notification: Performance of Templates: time 0.009601/0.5686, allocations: 5.801 MB / 415.5 MB, free: 17.39 MB / 330.7 MB