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/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: "" <> 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.057/1.057, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002656, allocations: 8 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05301/0.05331, allocations: 25.16 MB / 183.6 MB, free: 5.887 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2242/0.2776, allocations: 35.05 MB / 218.6 MB, free: 6.043 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/0.2779, allocations: 66.64 kB / 218.7 MB, free: 6.031 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008664/0.2866, allocations: 2.167 MB / 220.9 MB, free: 5.094 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2866, allocations: 0 / 220.9 MB, free: 5.094 MB / 170.7 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.2866, allocations: 7.844 kB / 220.9 MB, free: 5.09 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.000596/0.2872, allocations: 424 kB / 221.3 MB, free: 4.68 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.2873, allocations: 11.34 kB / 221.3 MB, free: 4.68 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.306e-05/0.2874, allocations: 38.41 kB / 221.3 MB, free: 4.637 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.64e-05/0.2874, allocations: 15.19 kB / 221.4 MB, free: 4.629 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.2876, allocations: 194.4 kB / 221.5 MB, free: 4.414 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.2876, allocations: 16.33 kB / 221.6 MB, free: 4.406 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.256e-05/0.2876, allocations: 10.66 kB / 221.6 MB, free: 4.402 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.288, allocations: 130.2 kB / 221.7 MB, free: 4.328 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.288, allocations: 0 / 221.7 MB, free: 4.328 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.288, allocations: 7.516 kB / 221.7 MB, free: 4.324 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.288, allocations: 7.891 kB / 221.7 MB, free: 4.32 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00022/0.2883, allocations: 63.41 kB / 221.8 MB, free: 4.309 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.2893, allocations: 498.4 kB / 222.3 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.2895, allocations: 47.66 kB / 222.3 MB, free: 3.867 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.2895, allocations: 3.875 kB / 222.3 MB, free: 3.867 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.2896, allocations: 38.44 kB / 222.4 MB, free: 3.82 MB / 170.7 MB Notification: Performance of pre-optimization done (n=4): time 2.625e-06/0.2896, allocations: 0 / 222.4 MB, free: 3.82 MB / 170.7 MB Notification: Performance of matching and sorting (n=4): time 0.0009495/0.2905, allocations: 234.3 kB / 222.6 MB, free: 3.648 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.2906, allocations: 102.8 kB / 222.7 MB, free: 3.523 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.2907, allocations: 153.2 kB / 222.8 MB, free: 3.414 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.2908, allocations: 25.7 kB / 222.9 MB, free: 3.383 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.018e-05/0.2908, allocations: 195.2 kB / 223 MB, free: 3.203 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.2909, allocations: 14.12 kB / 223.1 MB, free: 3.195 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-06/0.2909, allocations: 0 / 223.1 MB, free: 3.195 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.469e-05/0.2909, allocations: 318.1 kB / 223.4 MB, free: 2.883 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.565e-05/0.2911, allocations: 21.27 kB / 223.4 MB, free: 2.879 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.2912, allocations: 59.27 kB / 223.4 MB, free: 2.824 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001183/0.2913, allocations: 37.12 kB / 223.5 MB, free: 2.82 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2913, allocations: 0 / 223.5 MB, free: 2.82 MB / 170.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005489/0.2919, allocations: 139 kB / 223.6 MB, free: 2.75 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2919, allocations: 7.859 kB / 223.6 MB, free: 2.746 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2919, allocations: 0 / 223.6 MB, free: 2.746 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004208/0.2924, allocations: 54.16 kB / 223.7 MB, free: 2.719 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/0.294, allocations: 125.2 kB / 223.8 MB, free: 2.688 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002702/0.2967, allocations: 2.791 MB / 226.6 MB, free: 15.91 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.2969, allocations: 19.39 kB / 226.6 MB, free: 15.9 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.297, allocations: 7.812 kB / 226.6 MB, free: 15.89 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: SaturatingInductance1.Psi:VARIABLE(unit = "Wb" fixed = true ) 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 () * Number of clocked 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.0002286/0.2972, allocations: 118.6 kB / 226.7 MB, free: 15.78 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.633e-05/0.2973, allocations: 11.92 kB / 226.7 MB, free: 15.77 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005461/0.2978, allocations: 140.8 kB / 226.9 MB, free: 15.69 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2978, allocations: 0 / 226.9 MB, free: 15.69 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.2978, allocations: 0 / 226.9 MB, free: 15.69 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2979, allocations: 0 / 226.9 MB, free: 15.69 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002784/0.2981, allocations: 205.3 kB / 227.1 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2982, allocations: 7.812 kB / 227.1 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.2983, allocations: 7.859 kB / 227.1 MB, free: 15.47 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004196/0.2987, allocations: 50.12 kB / 227.1 MB, free: 15.45 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.2987, allocations: 0 / 227.1 MB, free: 15.45 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001697/0.3004, allocations: 1.361 MB / 228.5 MB, free: 14.13 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3005, allocations: 0 / 228.5 MB, free: 14.13 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006801/0.3011, allocations: 253.4 kB / 228.8 MB, free: 13.95 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.933e-05/0.3013, allocations: 93.44 kB / 228.8 MB, free: 13.85 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.3013, allocations: 9.312 kB / 228.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.3015, allocations: 11.48 kB / 228.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.3016, allocations: 3 kB / 228.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.3016, allocations: 5.562 kB / 228.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001299/0.3018, allocations: 135.9 kB / 229 MB, free: 13.74 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3018, allocations: 3.938 kB / 229 MB, free: 13.74 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003937/0.3022, allocations: 33.41 kB / 229 MB, free: 13.73 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 () * Number of clocked 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.001007/0.3032, allocations: 0.7975 MB / 229.8 MB, free: 13.02 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.3048, allocations: 264 kB / 230.1 MB, free: 12.86 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3048, allocations: 0 / 230.1 MB, free: 12.86 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003434/0.3051, allocations: 155 kB / 230.3 MB, free: 12.73 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.3054, allocations: 11.3 kB / 230.3 MB, free: 12.73 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.3067, allocations: 1.077 MB / 231.3 MB, free: 11.71 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.307, allocations: 0.7142 MB / 232.1 MB, free: 11 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.534e-05/0.3071, allocations: 34.8 kB / 232.1 MB, free: 10.98 MB / 186.7 MB Notification: Performance of SimCode: time 8.82e-07/0.3071, allocations: 4 kB / 232.1 MB, free: 10.98 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.471/2.778, allocations: 2.753 MB / 234.8 MB, free: 9.605 MB / 186.7 MB