Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.036/1.036, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.0002638, allocations: 4 kB / 158.4 MB, free: 15.1 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05414/0.05444, allocations: 25.17 MB / 183.6 MB, free: 5.887 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2157/0.2702, allocations: 37.44 MB / 221 MB, free: 5.828 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.2704, allocations: 66.19 kB / 221.1 MB, free: 5.82 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02528/0.2957, allocations: 6.557 MB / 227.7 MB, free: 3.121 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2958, allocations: 1.188 kB / 227.7 MB, free: 3.121 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.763e-05/0.2958, allocations: 4.844 kB / 227.7 MB, free: 3.121 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.001082/0.2969, allocations: 0.5625 MB / 228.2 MB, free: 2.629 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.297, allocations: 9.219 kB / 228.2 MB, free: 2.629 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.678e-05/0.2971, allocations: 59.23 kB / 228.3 MB, free: 2.586 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.352e-05/0.2971, allocations: 36.2 kB / 228.3 MB, free: 2.566 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.2975, allocations: 254.8 kB / 228.6 MB, free: 2.324 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.2975, allocations: 22.73 kB / 228.6 MB, free: 2.32 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.959e-05/0.2976, allocations: 29.66 kB / 228.6 MB, free: 2.316 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000659/0.2983, allocations: 249.2 kB / 228.9 MB, free: 2.168 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.2983, allocations: 3.953 kB / 228.9 MB, free: 2.164 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.2984, allocations: 15.12 kB / 228.9 MB, free: 2.156 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.2984, allocations: 4 kB / 228.9 MB, free: 2.152 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006416/0.2991, allocations: 210.6 kB / 229.1 MB, free: 2.012 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.301, allocations: 0.9466 MB / 230 MB, free: 1.172 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005467/0.3016, allocations: 187.4 kB / 230.2 MB, free: 1.035 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.3017, allocations: 81.3 kB / 230.3 MB, free: 0.9375 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.3018, allocations: 38.56 kB / 230.3 MB, free: 0.8945 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 2.635e-06/0.3018, allocations: 3.938 kB / 230.3 MB, free: 0.8906 MB / 170.7 MB Notification: Performance of matching and sorting (n=31): time 0.01004/0.3118, allocations: 1.495 MB / 231.8 MB, free: 15.58 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.3119, allocations: 55.41 kB / 231.9 MB, free: 15.51 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.3122, allocations: 210.4 kB / 232.1 MB, free: 15.33 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/0.3123, allocations: 29.52 kB / 232.1 MB, free: 15.3 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.3125, allocations: 241.1 kB / 232.4 MB, free: 15.09 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.3126, allocations: 105.8 kB / 232.5 MB, free: 15 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.3126, allocations: 7.812 kB / 232.5 MB, free: 14.99 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3128, allocations: 331.5 kB / 232.8 MB, free: 14.67 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003812/0.3132, allocations: 98.52 kB / 232.9 MB, free: 14.61 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000449/0.3136, allocations: 165.6 kB / 233.1 MB, free: 14.47 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00044/0.3141, allocations: 121.3 kB / 233.2 MB, free: 14.41 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3141, allocations: 4 kB / 233.2 MB, free: 14.4 MB / 186.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003458/0.3176, allocations: 0.5085 MB / 233.7 MB, free: 14.01 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.3176, allocations: 8.578 kB / 233.7 MB, free: 14 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3176, allocations: 4 kB / 233.7 MB, free: 14 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004822/0.3225, allocations: 295.8 kB / 234 MB, free: 13.73 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000477/0.323, allocations: 51.78 kB / 234 MB, free: 13.69 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005785/0.3288, allocations: 2.66 MB / 236.7 MB, free: 11.25 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004677/0.3293, allocations: 18.66 kB / 236.7 MB, free: 11.24 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.84e-05/0.3294, allocations: 15.31 kB / 236.7 MB, free: 11.23 MB / 186.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.0002698/0.3296, allocations: 149.5 kB / 236.9 MB, free: 11.09 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-05/0.3297, allocations: 23.72 kB / 236.9 MB, free: 11.07 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003493/0.3332, allocations: 0.4961 MB / 237.4 MB, free: 10.69 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.3333, allocations: 4 kB / 237.4 MB, free: 10.68 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3333, allocations: 0 / 237.4 MB, free: 10.68 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.3333, allocations: 0 / 237.4 MB, free: 10.68 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006692/0.334, allocations: 382.4 kB / 237.8 MB, free: 10.34 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.334, allocations: 0 / 237.8 MB, free: 10.34 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003678/0.3344, allocations: 43.91 kB / 237.8 MB, free: 10.3 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004744/0.3391, allocations: 298.7 kB / 238.1 MB, free: 10.04 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.3392, allocations: 6.562 kB / 238.1 MB, free: 10.03 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005698/0.3449, allocations: 2.67 MB / 240.8 MB, free: 7.586 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.345, allocations: 3.953 kB / 240.8 MB, free: 7.582 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004005/0.349, allocations: 0.7041 MB / 241.5 MB, free: 7.031 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002129/0.3492, allocations: 123.2 kB / 241.6 MB, free: 6.906 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.994e-05/0.3493, allocations: 7.438 kB / 241.6 MB, free: 6.902 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004133/0.3497, allocations: 19.48 kB / 241.6 MB, free: 6.887 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.3499, allocations: 27.64 kB / 241.7 MB, free: 6.863 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-05/0.35, allocations: 11.98 kB / 241.7 MB, free: 6.852 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000239/0.3502, allocations: 160.1 kB / 241.8 MB, free: 6.723 MB / 186.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3502, allocations: 3.938 kB / 241.8 MB, free: 6.719 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007222/0.351, allocations: 98.25 kB / 241.9 MB, free: 6.633 MB / 186.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.004449/0.3554, allocations: 1.28 MB / 243.2 MB, free: 5.5 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.3569, allocations: 438.9 kB / 243.6 MB, free: 5.152 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3569, allocations: 0 / 243.6 MB, free: 5.152 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007674/0.3577, allocations: 300.6 kB / 243.9 MB, free: 4.902 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.3581, allocations: 26.59 kB / 244 MB, free: 4.887 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006865/0.365, allocations: 2.572 MB / 246.5 MB, free: 2.539 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.3655, allocations: 0.7766 MB / 247.3 MB, free: 1.738 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.3657, allocations: 88.58 kB / 247.4 MB, free: 1.711 MB / 186.7 MB Notification: Performance of SimCode: time 1.243e-06/0.3657, allocations: 0 / 247.4 MB, free: 1.711 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.669/3.035, allocations: 6.917 MB / 254.3 MB, free: 10.84 MB / 202.7 MB