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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.9387/0.9387, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.8e-05/1.808e-05, allocations: 4 kB / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04641/0.04645, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.187/0.2335, allocations: 36.68 MB / 210 MB, free: 7.035 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.2338, allocations: 66.7 kB / 210 MB, free: 7.035 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02434/0.2582, allocations: 6.487 MB / 216.5 MB, free: 6.129 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.197e-06/0.2582, allocations: 0 / 216.5 MB, free: 6.129 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.2583, allocations: 7.875 kB / 216.5 MB, free: 6.125 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.0007433/0.259, allocations: 0.5346 MB / 217.1 MB, free: 5.66 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2591, allocations: 15.5 kB / 217.1 MB, free: 5.656 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.553e-05/0.2592, allocations: 30.88 kB / 217.1 MB, free: 5.641 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.2595, allocations: 252.5 kB / 217.4 MB, free: 5.402 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.2595, allocations: 10.84 kB / 217.4 MB, free: 5.402 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.73e-05/0.2596, allocations: 14.88 kB / 217.4 MB, free: 5.402 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003949/0.26, allocations: 160.9 kB / 217.5 MB, free: 5.398 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004016/0.2604, allocations: 190.1 kB / 217.7 MB, free: 5.336 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.2604, allocations: 0 / 217.7 MB, free: 5.336 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.976e-05/0.2605, allocations: 0 / 217.7 MB, free: 5.336 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.193e-06/0.2605, allocations: 11.48 kB / 217.7 MB, free: 5.332 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.2622, allocations: 0.8974 MB / 218.6 MB, free: 4.762 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003078/0.2625, allocations: 161.4 kB / 218.8 MB, free: 4.73 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.2627, allocations: 93.92 kB / 218.9 MB, free: 4.719 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.169e-05/0.2628, allocations: 88.95 kB / 219 MB, free: 4.621 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.593e-05/0.2628, allocations: 30.75 kB / 219 MB, free: 4.582 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 2.604e-06/0.2628, allocations: 0 / 219 MB, free: 4.582 MB / 170.7 MB Notification: Performance of matching and sorting (n=31): time 0.006069/0.2689, allocations: 1.172 MB / 220.2 MB, free: 4.027 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.269, allocations: 66.92 kB / 220.2 MB, free: 3.957 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.2692, allocations: 186.5 kB / 220.4 MB, free: 3.852 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.2693, allocations: 25.7 kB / 220.4 MB, free: 3.82 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.56e-05/0.2694, allocations: 251 kB / 220.7 MB, free: 3.609 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.028e-05/0.2694, allocations: 93.19 kB / 220.8 MB, free: 3.539 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.19e-05/0.2695, allocations: 0 / 220.8 MB, free: 3.539 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.802e-05/0.2695, allocations: 330.3 kB / 221.1 MB, free: 3.219 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.2698, allocations: 92.83 kB / 221.2 MB, free: 3.215 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000245/0.27, allocations: 149 kB / 221.3 MB, free: 3.152 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003331/0.2704, allocations: 119.8 kB / 221.5 MB, free: 3.129 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.121e-06/0.2704, allocations: 0 / 221.5 MB, free: 3.129 MB / 170.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002478/0.2729, allocations: 488.1 kB / 221.9 MB, free: 2.973 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.2729, allocations: 4.031 kB / 221.9 MB, free: 2.973 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.112e-06/0.273, allocations: 7.875 kB / 221.9 MB, free: 2.969 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006598/0.2736, allocations: 160.6 kB / 222.1 MB, free: 2.914 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003052/0.2739, allocations: 53.22 kB / 222.2 MB, free: 2.906 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003922/0.2779, allocations: 2.641 MB / 224.8 MB, free: 16.92 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.2782, allocations: 7.812 kB / 224.8 MB, free: 16.91 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-05/0.2783, allocations: 18.39 kB / 224.8 MB, free: 16.91 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: r_mAirPar.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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.0001994/0.2785, allocations: 109.6 kB / 224.9 MB, free: 16.8 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.289e-05/0.2786, allocations: 27.03 kB / 225 MB, free: 16.79 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003708/0.2823, allocations: 472.7 kB / 225.4 MB, free: 16.61 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.2824, allocations: 3.312 kB / 225.4 MB, free: 16.61 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.141e-06/0.2824, allocations: 0 / 225.4 MB, free: 16.61 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.2824, allocations: 3.984 kB / 225.4 MB, free: 16.61 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006361/0.2888, allocations: 0.8861 MB / 226.3 MB, free: 16.14 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.2889, allocations: 0 / 226.3 MB, free: 16.14 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005268/0.2894, allocations: 35.36 kB / 226.3 MB, free: 16.13 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.2908, allocations: 165.2 kB / 226.5 MB, free: 16.07 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.227e-05/0.2908, allocations: 3.438 kB / 226.5 MB, free: 16.07 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009287/0.3002, allocations: 2.635 MB / 229.1 MB, free: 14.09 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.479e-06/0.3002, allocations: 0 / 229.1 MB, free: 14.09 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/0.3141, allocations: 0.6921 MB / 229.8 MB, free: 13.8 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004451/0.3146, allocations: 122.8 kB / 230 MB, free: 13.68 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.3147, allocations: 3.938 kB / 230 MB, free: 13.68 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006912/0.3155, allocations: 11.55 kB / 230 MB, free: 13.68 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.3157, allocations: 27.3 kB / 230 MB, free: 13.66 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.196e-05/0.3158, allocations: 14.64 kB / 230 MB, free: 13.66 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003836/0.3162, allocations: 157.4 kB / 230.2 MB, free: 13.57 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.525e-06/0.3162, allocations: 0 / 230.2 MB, free: 13.57 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001654/0.3179, allocations: 84.78 kB / 230.2 MB, free: 13.56 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete 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.0004372/0.3184, allocations: 125.4 kB / 230.4 MB, free: 13.46 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001866/0.3203, allocations: 395.8 kB / 230.8 MB, free: 13.31 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.611e-06/0.3203, allocations: 0 / 230.8 MB, free: 13.31 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.3214, allocations: 284.9 kB / 231 MB, free: 13.17 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006934/0.3222, allocations: 14.58 kB / 231 MB, free: 13.16 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.3364, allocations: 457 kB / 231.5 MB, free: 12.9 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00086/0.3374, allocations: 0.78 MB / 232.3 MB, free: 12.16 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.3376, allocations: 23 kB / 232.3 MB, free: 12.14 MB / 186.7 MB Notification: Performance of SimCode: time 2.578e-06/0.3376, allocations: 3.875 kB / 232.3 MB, free: 12.14 MB / 186.7 MB Notification: Performance of Templates: time 0.02787/0.3655, allocations: 5.67 MB / 238 MB, free: 9.277 MB / 186.7 MB