Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1256,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadModel(Modelica): time 0.969/0.969, allocations: 111.2 MB / 119.1 MB, free: 15.59 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.938e-05/1.95e-05, allocations: 4 kB / 148.1 MB, free: 2.605 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.141, allocations: 25.15 MB / 173.3 MB, free: 2.828 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.052/0.193, allocations: 34.3 MB / 207.6 MB, free: 3.098 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.1933, allocations: 63.97 kB / 207.6 MB, free: 3.035 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009056/0.2023, allocations: 2.152 MB / 209.8 MB, free: 0.8867 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.2024, allocations: 0 / 209.8 MB, free: 0.8867 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.2024, allocations: 4 kB / 209.8 MB, free: 0.8828 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005958/0.203, allocations: 402.2 kB / 210.2 MB, free: 456 kB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.2031, allocations: 16.03 kB / 210.2 MB, free: 440 kB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.2031, allocations: 11.81 kB / 210.2 MB, free: 428 kB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.2034, allocations: 195 kB / 210.4 MB, free: 192 kB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.2034, allocations: 0 / 210.4 MB, free: 192 kB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.2034, allocations: 4 kB / 210.4 MB, free: 188 kB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001406/0.2036, allocations: 40 kB / 210.5 MB, free: 148 kB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.2038, allocations: 108.2 kB / 210.6 MB, free: 24 kB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.2038, allocations: 448 / 210.6 MB, free: 24 kB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.2039, allocations: 0 / 210.6 MB, free: 24 kB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.665e-06/0.2039, allocations: 8 kB / 210.6 MB, free: 16 kB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.205, allocations: 466.9 kB / 211 MB, free: 15.51 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.2051, allocations: 38.58 kB / 211.1 MB, free: 15.46 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.121e-05/0.2052, allocations: 21.11 kB / 211.1 MB, free: 15.44 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.2052, allocations: 7.938 kB / 211.1 MB, free: 15.43 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.2053, allocations: 30.56 kB / 211.1 MB, free: 15.39 MB / 186.7 MB Notification: Performance of pre-optimization done (n=4): time 2.247e-06/0.2053, allocations: 0 / 211.1 MB, free: 15.39 MB / 186.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005099/0.2058, allocations: 98.36 kB / 211.2 MB, free: 15.29 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.283e-05/0.2059, allocations: 106.8 kB / 211.3 MB, free: 15.16 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.2061, allocations: 141.3 kB / 211.5 MB, free: 15.01 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.2061, allocations: 25.7 kB / 211.5 MB, free: 14.98 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.2063, allocations: 186.1 kB / 211.7 MB, free: 14.8 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.2063, allocations: 19.8 kB / 211.7 MB, free: 14.78 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.884e-06/0.2063, allocations: 0 / 211.7 MB, free: 14.78 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2065, allocations: 314.8 kB / 212 MB, free: 14.46 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.265e-05/0.2065, allocations: 16 kB / 212 MB, free: 14.45 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.28e-05/0.2066, allocations: 53.14 kB / 212.1 MB, free: 14.38 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.166e-05/0.2067, allocations: 23.94 kB / 212.1 MB, free: 14.35 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.7e-06/0.2068, allocations: 4.031 kB / 212.1 MB, free: 14.35 MB / 186.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004432/0.2072, allocations: 126.3 kB / 212.2 MB, free: 14.21 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.2072, allocations: 4 kB / 212.2 MB, free: 14.21 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.263e-06/0.2073, allocations: 0 / 212.2 MB, free: 14.21 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003454/0.2076, allocations: 48.91 kB / 212.3 MB, free: 14.16 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.2087, allocations: 123.9 kB / 212.4 MB, free: 14.04 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003259/0.2119, allocations: 2.672 MB / 215.1 MB, free: 11.13 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.2122, allocations: 23.86 kB / 215.1 MB, free: 11.11 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.2122, allocations: 0 / 215.1 MB, free: 11.11 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: SaturatingInductance1.Psi:VARIABLE(unit = "Wb" ) type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: output i:VARIABLE(unit = "A" ) "current across saturating inductor" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001761/0.2124, allocations: 117 kB / 215.2 MB, free: 10.99 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.398e-05/0.2125, allocations: 11.91 kB / 215.2 MB, free: 10.98 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004025/0.2129, allocations: 110.9 kB / 215.3 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.43e-06/0.2129, allocations: 4 kB / 215.3 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.802e-06/0.2129, allocations: 0 / 215.3 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.602e-06/0.2129, allocations: 0 / 215.3 MB, free: 10.86 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.2132, allocations: 178.1 kB / 215.5 MB, free: 10.64 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.2132, allocations: 0 / 215.5 MB, free: 10.64 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.408e-05/0.2133, allocations: 11.98 kB / 215.5 MB, free: 10.63 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003589/0.2137, allocations: 52.81 kB / 215.6 MB, free: 10.58 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.2137, allocations: 8 kB / 215.6 MB, free: 10.57 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001594/0.2153, allocations: 1.291 MB / 216.9 MB, free: 9.16 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.195e-06/0.2154, allocations: 0 / 216.9 MB, free: 9.16 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004931/0.2159, allocations: 224.2 kB / 217.1 MB, free: 8.922 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.216, allocations: 93.03 kB / 217.2 MB, free: 8.812 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.216, allocations: 0 / 217.2 MB, free: 8.812 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.2162, allocations: 11.98 kB / 217.2 MB, free: 8.801 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.355e-05/0.2163, allocations: 11.92 kB / 217.2 MB, free: 8.789 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.597e-06/0.2163, allocations: 0 / 217.2 MB, free: 8.789 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001228/0.2165, allocations: 124.2 kB / 217.3 MB, free: 8.668 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.44e-07/0.2165, allocations: 0 / 217.3 MB, free: 8.668 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000428/0.2169, allocations: 39.89 kB / 217.3 MB, free: 8.629 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (SaturatingInductance1.Psi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001464/0.2171, allocations: 95.39 kB / 217.4 MB, free: 8.527 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.2181, allocations: 246.6 kB / 217.7 MB, free: 8.273 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.004e-06/0.2182, allocations: 0 / 217.7 MB, free: 8.273 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002559/0.2184, allocations: 137.7 kB / 217.8 MB, free: 8.129 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.2187, allocations: 8 kB / 217.8 MB, free: 8.121 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005199/0.2192, allocations: 231.7 kB / 218 MB, free: 7.863 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.2196, allocations: 0.7119 MB / 218.8 MB, free: 7.125 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.56e-05/0.2197, allocations: 11.44 kB / 218.8 MB, free: 7.109 MB / 186.7 MB Notification: Performance of SimCode: time 3.75e-06/0.2197, allocations: 4 kB / 218.8 MB, free: 7.105 MB / 186.7 MB Notification: Performance of Templates: time 0.004871/0.2246, allocations: 2.191 MB / 221 MB, free: 4.91 MB / 186.7 MB