Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadModel(Modelica): time 1.184/1.184, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003708, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06058/0.06101, allocations: 25.16 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2393/0.3003, allocations: 37.44 MB / 221.5 MB, free: 5.73 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.3007, allocations: 69.56 kB / 221.5 MB, free: 5.723 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03619/0.337, allocations: 6.562 MB / 228.1 MB, free: 3.047 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.706e-06/0.337, allocations: 3.75 kB / 228.1 MB, free: 3.047 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.3371, allocations: 3.719 kB / 228.1 MB, free: 3.047 MB / 170.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.00151/0.3386, allocations: 0.557 MB / 228.7 MB, free: 2.559 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.3387, allocations: 7.656 kB / 228.7 MB, free: 2.559 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.3389, allocations: 38.97 kB / 228.7 MB, free: 2.539 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005364/0.3394, allocations: 250.9 kB / 229 MB, free: 2.297 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6e-05/0.3395, allocations: 19.31 kB / 229 MB, free: 2.297 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.3396, allocations: 26.12 kB / 229 MB, free: 2.297 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.3407, allocations: 247.2 kB / 229.2 MB, free: 2.215 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.844e-05/0.3408, allocations: 3.938 kB / 229.2 MB, free: 2.211 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.477e-05/0.3409, allocations: 13.67 kB / 229.3 MB, free: 2.207 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.3409, allocations: 6.344 kB / 229.3 MB, free: 2.207 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.342, allocations: 208.7 kB / 229.5 MB, free: 2.18 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003063/0.3451, allocations: 0.9566 MB / 230.4 MB, free: 1.371 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007859/0.346, allocations: 185.4 kB / 230.6 MB, free: 1.234 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001394/0.3461, allocations: 92.23 kB / 230.7 MB, free: 1.129 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.3462, allocations: 30.75 kB / 230.7 MB, free: 1.09 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 3.877e-06/0.3462, allocations: 0 / 230.7 MB, free: 1.09 MB / 170.7 MB Notification: Performance of matching and sorting (n=31): time 0.01319/0.3594, allocations: 1.507 MB / 232.2 MB, free: 15.77 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.3596, allocations: 59.34 kB / 232.3 MB, free: 15.7 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000579/0.3602, allocations: 224.7 kB / 232.5 MB, free: 15.5 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 9.924e-05/0.3603, allocations: 37.02 kB / 232.5 MB, free: 15.47 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000248/0.3606, allocations: 235.8 kB / 232.8 MB, free: 15.26 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.3608, allocations: 108.3 kB / 232.9 MB, free: 15.16 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.3608, allocations: 6.75 kB / 232.9 MB, free: 15.16 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.361, allocations: 323.3 kB / 233.2 MB, free: 14.84 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005768/0.3616, allocations: 110.6 kB / 233.3 MB, free: 14.77 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006225/0.3622, allocations: 156.6 kB / 233.5 MB, free: 14.65 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006094/0.3629, allocations: 120.3 kB / 233.6 MB, free: 14.58 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3629, allocations: 0 / 233.6 MB, free: 14.58 MB / 186.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.004649/0.3676, allocations: 0.5037 MB / 234.1 MB, free: 14.2 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.831e-05/0.3677, allocations: 15.88 kB / 234.1 MB, free: 14.18 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.3677, allocations: 3.938 kB / 234.1 MB, free: 14.18 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006496/0.3742, allocations: 299.8 kB / 234.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006834/0.375, allocations: 51.91 kB / 234.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008393/0.3834, allocations: 2.663 MB / 237.1 MB, free: 11.42 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006651/0.3841, allocations: 19.31 kB / 237.1 MB, free: 11.41 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.214e-05/0.3842, allocations: 8 kB / 237.1 MB, free: 11.4 MB / 186.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.0004214/0.3846, allocations: 156.7 kB / 237.3 MB, free: 11.26 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.3848, allocations: 23.72 kB / 237.3 MB, free: 11.24 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005042/0.3899, allocations: 0.4959 MB / 237.8 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.3899, allocations: 0 / 237.8 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.39, allocations: 4 kB / 237.8 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.39, allocations: 0 / 237.8 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.3911, allocations: 373.4 kB / 238.2 MB, free: 10.52 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.3911, allocations: 4 kB / 238.2 MB, free: 10.52 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005444/0.3917, allocations: 39.97 kB / 238.2 MB, free: 10.48 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00678/0.3985, allocations: 314.2 kB / 238.5 MB, free: 10.2 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.213e-05/0.3986, allocations: 7.938 kB / 238.5 MB, free: 10.2 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008231/0.4069, allocations: 2.659 MB / 241.2 MB, free: 7.754 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.4069, allocations: 3.953 kB / 241.2 MB, free: 7.75 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005586/0.4125, allocations: 0.7115 MB / 241.9 MB, free: 7.195 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000311/0.4129, allocations: 120.4 kB / 242 MB, free: 7.07 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.631e-05/0.413, allocations: 7.812 kB / 242 MB, free: 7.066 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005623/0.4136, allocations: 15.92 kB / 242.1 MB, free: 7.055 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.4138, allocations: 27.08 kB / 242.1 MB, free: 7.031 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.734e-05/0.4139, allocations: 10.94 kB / 242.1 MB, free: 7.023 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003209/0.4142, allocations: 162.2 kB / 242.2 MB, free: 6.891 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.4142, allocations: 192 / 242.2 MB, free: 6.891 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001164/0.4154, allocations: 91.25 kB / 242.3 MB, free: 6.812 MB / 186.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.0003712/0.4158, allocations: 138.2 kB / 242.5 MB, free: 6.672 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.4179, allocations: 439 kB / 242.9 MB, free: 6.328 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.4179, allocations: 0 / 242.9 MB, free: 6.328 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.419, allocations: 302.8 kB / 243.2 MB, free: 6.074 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006343/0.4197, allocations: 26.73 kB / 243.2 MB, free: 6.059 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.4225, allocations: 0.8205 MB / 244 MB, free: 5.266 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006556/0.4233, allocations: 0.7798 MB / 244.8 MB, free: 4.457 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/0.4235, allocations: 22.75 kB / 244.8 MB, free: 4.438 MB / 186.7 MB Notification: Performance of SimCode: time 1.803e-06/0.4235, allocations: 3.938 kB / 244.8 MB, free: 4.434 MB / 186.7 MB Notification: Performance of Templates: time 0.01846/0.442, allocations: 5.667 MB / 250.5 MB, free: 14.79 MB / 202.7 MB