Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 0.9632/0.9632, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002629/0.000263, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04662/0.0469, allocations: 25.17 MB / 183.4 MB, free: 6.016 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.003237/0.05017, allocations: 2.046 MB / 185.5 MB, free: 3.965 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.05186, allocations: 0.753 MB / 186.2 MB, free: 3.211 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.05207, allocations: 8 kB / 186.2 MB, free: 3.203 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.05226, allocations: 47.64 kB / 186.3 MB, free: 3.156 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003988/0.05268, allocations: 107.6 kB / 186.4 MB, free: 3.051 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003241/0.05302, allocations: 75.84 kB / 186.4 MB, free: 2.977 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003729/0.05341, allocations: 231.5 kB / 186.7 MB, free: 2.75 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.05362, allocations: 85.62 kB / 186.8 MB, free: 2.668 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.05386, allocations: 107.6 kB / 186.9 MB, free: 2.562 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.05409, allocations: 131.4 kB / 187 MB, free: 2.434 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 4.353e-05/0.05415, allocations: 16 kB / 187 MB, free: 2.418 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.05429, allocations: 27.98 kB / 187 MB, free: 2.391 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 5.757e-05/0.05436, allocations: 43.84 kB / 187.1 MB, free: 2.348 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 8.642e-05/0.05446, allocations: 77.52 kB / 187.2 MB, free: 2.266 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.05485, allocations: 271.2 kB / 187.4 MB, free: 2 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.509e-06/0.05487, allocations: 0 / 187.4 MB, free: 2 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.87e-06/0.05488, allocations: 0 / 187.4 MB, free: 2 MB / 154.7 MB Notification: Performance of Transformations before backend: time 7.158e-06/0.0549, allocations: 0 / 187.4 MB, free: 2 MB / 154.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.001044/0.05596, allocations: 0.565 MB / 188 MB, free: 1.387 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.05601, allocations: 12.03 kB / 188 MB, free: 1.375 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.862e-05/0.05611, allocations: 31.62 kB / 188 MB, free: 1.344 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003706/0.05649, allocations: 254.2 kB / 188.3 MB, free: 1.055 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.688e-05/0.05654, allocations: 28.5 kB / 188.3 MB, free: 1.027 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.845e-05/0.05661, allocations: 24 kB / 188.3 MB, free: 1.004 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006391/0.05726, allocations: 240.9 kB / 188.6 MB, free: 0.7578 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.05729, allocations: 0 / 188.6 MB, free: 0.7578 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.893e-05/0.05736, allocations: 8 kB / 188.6 MB, free: 0.75 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.05738, allocations: 15.95 kB / 188.6 MB, free: 0.7344 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006454/0.05804, allocations: 206.2 kB / 188.8 MB, free: 0.5352 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.06017, allocations: 0.9514 MB / 189.7 MB, free: 15.51 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005642/0.06076, allocations: 189.1 kB / 189.9 MB, free: 15.32 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.06091, allocations: 85.28 kB / 190 MB, free: 15.21 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.06097, allocations: 42.75 kB / 190 MB, free: 15.16 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 3.3e-06/0.06098, allocations: 0 / 190 MB, free: 15.16 MB / 170.7 MB Notification: Performance of matching and sorting (n=31): time 0.007188/0.06818, allocations: 1.46 MB / 191.5 MB, free: 13.63 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.06827, allocations: 63.36 kB / 191.6 MB, free: 13.55 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003475/0.06863, allocations: 225 kB / 191.8 MB, free: 13.32 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.739e-05/0.06872, allocations: 33.7 kB / 191.8 MB, free: 13.28 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.0689, allocations: 234.6 kB / 192 MB, free: 13.05 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.06904, allocations: 114.4 kB / 192.2 MB, free: 12.94 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.892e-05/0.06908, allocations: 8 kB / 192.2 MB, free: 12.93 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.06926, allocations: 322.8 kB / 192.5 MB, free: 12.61 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.06962, allocations: 111.9 kB / 192.6 MB, free: 12.5 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003826/0.07002, allocations: 156 kB / 192.7 MB, free: 12.33 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003922/0.07043, allocations: 127.7 kB / 192.9 MB, free: 12.2 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.877e-06/0.07045, allocations: 0 / 192.9 MB, free: 12.2 MB / 170.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002445/0.07291, allocations: 0.5062 MB / 193.4 MB, free: 11.68 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.07296, allocations: 4 kB / 193.4 MB, free: 11.68 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.07299, allocations: 7.953 kB / 193.4 MB, free: 11.67 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003011/0.07601, allocations: 301.3 kB / 193.7 MB, free: 11.37 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003774/0.07643, allocations: 51.91 kB / 193.7 MB, free: 11.32 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005017/0.08147, allocations: 2.664 MB / 196.4 MB, free: 8.496 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003393/0.08186, allocations: 24.06 kB / 196.4 MB, free: 8.473 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.92e-05/0.08192, allocations: 16 kB / 196.4 MB, free: 8.457 MB / 170.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.000249/0.08218, allocations: 141.8 kB / 196.6 MB, free: 8.309 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.892e-05/0.08228, allocations: 27.62 kB / 196.6 MB, free: 8.281 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002348/0.08464, allocations: 485.8 kB / 197.1 MB, free: 7.797 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.0847, allocations: 4 kB / 197.1 MB, free: 7.793 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.08472, allocations: 4 kB / 197.1 MB, free: 7.789 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.08474, allocations: 3.984 kB / 197.1 MB, free: 7.785 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007036/0.08546, allocations: 377.3 kB / 197.5 MB, free: 7.367 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.685e-06/0.08548, allocations: 4 kB / 197.5 MB, free: 7.363 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.08579, allocations: 43.91 kB / 197.5 MB, free: 7.32 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003077/0.08889, allocations: 297.4 kB / 197.8 MB, free: 7.023 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.032e-05/0.08898, allocations: 4 kB / 197.8 MB, free: 7.02 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005327/0.09432, allocations: 2.669 MB / 200.5 MB, free: 4.184 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.273e-06/0.09436, allocations: 0 / 200.5 MB, free: 4.184 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002776/0.09715, allocations: 0.6958 MB / 201.2 MB, free: 3.461 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.09741, allocations: 124.7 kB / 201.3 MB, free: 3.32 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.09748, allocations: 8 kB / 201.3 MB, free: 3.312 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002985/0.0978, allocations: 16.06 kB / 201.3 MB, free: 3.297 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.09792, allocations: 23.95 kB / 201.3 MB, free: 3.273 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.09797, allocations: 11.98 kB / 201.3 MB, free: 3.262 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002215/0.0982, allocations: 160.5 kB / 201.5 MB, free: 3.109 MB / 170.7 MB Notification: Performance of sort global known variables: time 1.147e-06/0.09822, allocations: 4 kB / 201.5 MB, free: 3.105 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006714/0.0989, allocations: 95.98 kB / 201.6 MB, free: 3.012 MB / 170.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.0002153/0.09912, allocations: 107.2 kB / 201.7 MB, free: 2.898 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.1004, allocations: 442.3 kB / 202.1 MB, free: 2.453 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.174e-06/0.1004, allocations: 4.062 kB / 202.1 MB, free: 2.449 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007046/0.1011, allocations: 294.7 kB / 202.4 MB, free: 2.148 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.1016, allocations: 31.17 kB / 202.5 MB, free: 2.121 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.1032, allocations: 0.8211 MB / 203.3 MB, free: 1.27 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000498/0.1038, allocations: 0.7876 MB / 204.1 MB, free: 464 kB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.881e-05/0.1039, allocations: 19.44 kB / 204.1 MB, free: 444 kB / 170.7 MB Notification: Performance of SimCode: time 1.665e-06/0.1039, allocations: 0 / 204.1 MB, free: 444 kB / 170.7 MB Notification: Performance of Templates: time 0.1248/0.2286, allocations: 5.543 MB / 209.6 MB, free: 22.41 MB / 170.7 MB