Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.152/1.152, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.291e-05/2.279e-05, allocations: 4 kB / 148.2 MB, free: 6.117 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0546/0.05465, allocations: 25.16 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2146/0.2693, allocations: 34.29 MB / 207.7 MB, free: 4.965 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.2695, allocations: 58.14 kB / 207.7 MB, free: 4.965 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009384/0.2789, allocations: 2.153 MB / 209.9 MB, free: 4.543 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.279, allocations: 0 / 209.9 MB, free: 4.543 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.279, allocations: 2.844 kB / 209.9 MB, free: 4.543 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.0005721/0.2796, allocations: 404.9 kB / 210.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.2796, allocations: 8.656 kB / 210.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.54e-05/0.2797, allocations: 19.44 kB / 210.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.2799, allocations: 191.5 kB / 210.5 MB, free: 3.949 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.2799, allocations: 2.875 kB / 210.5 MB, free: 3.949 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.28, allocations: 9.031 kB / 210.5 MB, free: 3.949 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001511/0.2801, allocations: 46.52 kB / 210.6 MB, free: 3.945 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.2804, allocations: 109.2 kB / 210.7 MB, free: 3.879 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.2804, allocations: 0 / 210.7 MB, free: 3.879 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.2804, allocations: 0 / 210.7 MB, free: 3.879 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.2804, allocations: 6.562 kB / 210.7 MB, free: 3.875 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.2815, allocations: 462.6 kB / 211.1 MB, free: 3.555 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.2816, allocations: 40.27 kB / 211.2 MB, free: 3.531 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.558e-05/0.2817, allocations: 19.19 kB / 211.2 MB, free: 3.523 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.2817, allocations: 5.109 kB / 211.2 MB, free: 3.52 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.2818, allocations: 35.66 kB / 211.2 MB, free: 3.477 MB / 170.7 MB Notification: Performance of pre-optimization done (n=4): time 1.783e-06/0.2818, allocations: 0 / 211.2 MB, free: 3.477 MB / 170.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005125/0.2823, allocations: 95.23 kB / 211.3 MB, free: 3.43 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.2823, allocations: 104.3 kB / 211.4 MB, free: 3.305 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.2825, allocations: 136 kB / 211.5 MB, free: 3.215 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.2825, allocations: 25.7 kB / 211.6 MB, free: 3.184 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.586e-05/0.2826, allocations: 192.8 kB / 211.8 MB, free: 3.012 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.2827, allocations: 15.72 kB / 211.8 MB, free: 3.004 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-06/0.2827, allocations: 0 / 211.8 MB, free: 3.004 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.934e-05/0.2827, allocations: 315.6 kB / 212.1 MB, free: 2.691 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.084e-05/0.2828, allocations: 14.34 kB / 212.1 MB, free: 2.691 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.517e-05/0.2829, allocations: 52.47 kB / 212.1 MB, free: 2.645 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.639e-05/0.283, allocations: 25.56 kB / 212.2 MB, free: 2.637 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.283, allocations: 3.938 kB / 212.2 MB, free: 2.633 MB / 170.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004748/0.2835, allocations: 117.4 kB / 212.3 MB, free: 2.586 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.2835, allocations: 4.844 kB / 212.3 MB, free: 2.586 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2835, allocations: 5.188 kB / 212.3 MB, free: 2.582 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004358/0.284, allocations: 47.34 kB / 212.3 MB, free: 2.574 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/0.2862, allocations: 133.9 kB / 212.5 MB, free: 2.566 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003012/0.2892, allocations: 2.665 MB / 215.1 MB, free: 15.99 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000306/0.2896, allocations: 22.52 kB / 215.2 MB, free: 15.98 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.2896, allocations: 2.594 kB / 215.2 MB, free: 15.98 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.00019/0.2898, allocations: 120 kB / 215.3 MB, free: 15.87 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004319/0.2902, allocations: 99.45 kB / 215.4 MB, free: 15.82 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.2903, allocations: 9.906 kB / 215.4 MB, free: 15.82 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004505/0.2908, allocations: 117 kB / 215.5 MB, free: 15.76 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2908, allocations: 0 / 215.5 MB, free: 15.76 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.2908, allocations: 1.281 kB / 215.5 MB, free: 15.76 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.2908, allocations: 3.141 kB / 215.5 MB, free: 15.76 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.2911, allocations: 171.3 kB / 215.7 MB, free: 15.61 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2911, allocations: 0 / 215.7 MB, free: 15.61 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.2912, allocations: 9.422 kB / 215.7 MB, free: 15.61 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000408/0.2916, allocations: 55.86 kB / 215.7 MB, free: 15.59 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.2916, allocations: 0 / 215.7 MB, free: 15.59 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/0.2934, allocations: 1.29 MB / 217 MB, free: 14.38 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.2934, allocations: 9.172 kB / 217 MB, free: 14.38 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005512/0.294, allocations: 228 kB / 217.3 MB, free: 14.22 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.2941, allocations: 96.17 kB / 217.4 MB, free: 14.12 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.135e-05/0.2941, allocations: 5.266 kB / 217.4 MB, free: 14.12 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.2944, allocations: 11.08 kB / 217.4 MB, free: 14.12 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.2945, allocations: 4.359 kB / 217.4 MB, free: 14.12 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.2945, allocations: 5.5 kB / 217.4 MB, free: 14.12 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.2946, allocations: 119.9 kB / 217.5 MB, free: 14.04 MB / 186.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2946, allocations: 0 / 217.5 MB, free: 14.04 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004488/0.2951, allocations: 35.62 kB / 217.5 MB, free: 14.03 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.0009308/0.296, allocations: 0.7642 MB / 218.3 MB, free: 13.35 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.2976, allocations: 240.1 kB / 218.5 MB, free: 13.23 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.2976, allocations: 0 / 218.5 MB, free: 13.23 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003089/0.2979, allocations: 141.5 kB / 218.7 MB, free: 13.12 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.2981, allocations: 10.86 kB / 218.7 MB, free: 13.12 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008459/0.299, allocations: 269 kB / 218.9 MB, free: 12.9 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.2994, allocations: 0.7118 MB / 219.7 MB, free: 12.2 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.049e-05/0.2995, allocations: 33.52 kB / 219.7 MB, free: 12.2 MB / 186.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2995, allocations: 0 / 219.7 MB, free: 12.2 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.797/3.096, allocations: 2.748 MB / 222.4 MB, free: 11.64 MB / 186.7 MB