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.028/1.028, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.427e-05/2.438e-05, allocations: 0 / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1727, allocations: 25.15 MB / 179.5 MB, free: 0.8281 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06795/0.2407, allocations: 37.36 MB / 216.9 MB, free: 11.73 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.241, allocations: 63.97 kB / 216.9 MB, free: 11.67 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02968/0.2707, allocations: 6.551 MB / 223.5 MB, free: 5.09 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2708, allocations: 0 / 223.5 MB, free: 5.09 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.818e-05/0.2708, allocations: 8 kB / 223.5 MB, free: 5.082 MB / 186.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.001187/0.272, allocations: 0.5294 MB / 224 MB, free: 4.504 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.117e-05/0.2721, allocations: 16.03 kB / 224 MB, free: 4.488 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.2722, allocations: 58.55 kB / 224.1 MB, free: 4.422 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.2724, allocations: 31.62 kB / 224.1 MB, free: 4.391 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.2729, allocations: 258.8 kB / 224.4 MB, free: 4.098 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.667e-05/0.273, allocations: 24.56 kB / 224.4 MB, free: 4.074 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-05/0.2731, allocations: 24 kB / 224.4 MB, free: 4.051 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008217/0.2739, allocations: 224.9 kB / 224.7 MB, free: 3.824 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.274, allocations: 7.891 kB / 224.7 MB, free: 3.816 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.168e-05/0.2741, allocations: 12 kB / 224.7 MB, free: 3.805 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.2741, allocations: 4 kB / 224.7 MB, free: 3.801 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007347/0.2748, allocations: 186.2 kB / 224.9 MB, free: 3.621 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00309/0.2779, allocations: 0.936 MB / 225.8 MB, free: 2.609 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006407/0.2786, allocations: 179 kB / 226 MB, free: 2.426 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003727/0.279, allocations: 101.3 kB / 226.1 MB, free: 2.324 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001663/0.2792, allocations: 89.28 kB / 226.2 MB, free: 2.219 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.405e-05/0.2793, allocations: 42.7 kB / 226.2 MB, free: 2.168 MB / 186.7 MB Notification: Performance of pre-optimization done (n=21): time 3.386e-06/0.2793, allocations: 0 / 226.2 MB, free: 2.168 MB / 186.7 MB Notification: Performance of matching and sorting (n=31): time 0.01361/0.2929, allocations: 1.262 MB / 227.5 MB, free: 0.8477 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.453e-05/0.293, allocations: 55.41 kB / 227.5 MB, free: 0.7812 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/0.2935, allocations: 209 kB / 227.7 MB, free: 0.5742 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.408e-05/0.2936, allocations: 29.7 kB / 227.7 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/0.2939, allocations: 242.5 kB / 228 MB, free: 308 kB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.2941, allocations: 110.4 kB / 228.1 MB, free: 196 kB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.2941, allocations: 4 kB / 228.1 MB, free: 192 kB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.2943, allocations: 326.8 kB / 228.4 MB, free: 15.86 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004416/0.2948, allocations: 92 kB / 228.5 MB, free: 15.77 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005195/0.2953, allocations: 160.8 kB / 228.7 MB, free: 15.59 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005091/0.2959, allocations: 115.8 kB / 228.8 MB, free: 15.48 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2959, allocations: 0 / 228.8 MB, free: 15.48 MB / 202.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.005076/0.301, allocations: 0.4948 MB / 229.3 MB, free: 14.97 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.3011, allocations: 7.953 kB / 229.3 MB, free: 14.96 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.3011, allocations: 4 kB / 229.3 MB, free: 14.96 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003034/0.3041, allocations: 213.5 kB / 229.5 MB, free: 14.75 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006813/0.3049, allocations: 63.91 kB / 229.6 MB, free: 14.68 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00829/0.3132, allocations: 2.688 MB / 232.2 MB, free: 11.84 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006308/0.3138, allocations: 12 kB / 232.3 MB, free: 11.82 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-05/0.3139, allocations: 11.98 kB / 232.3 MB, free: 11.81 MB / 202.7 MB 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.0002144/0.3142, allocations: 123.7 kB / 232.4 MB, free: 11.69 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.3143, allocations: 23.72 kB / 232.4 MB, free: 11.66 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005059/0.3194, allocations: 498 kB / 232.9 MB, free: 11.16 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/0.3194, allocations: 4 kB / 232.9 MB, free: 11.16 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.3195, allocations: 4 kB / 232.9 MB, free: 11.15 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.057e-05/0.3195, allocations: 7.938 kB / 232.9 MB, free: 11.14 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006405/0.3259, allocations: 0.9511 MB / 233.9 MB, free: 10.13 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.326, allocations: 0 / 233.9 MB, free: 10.13 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005129/0.3265, allocations: 35.97 kB / 233.9 MB, free: 10.09 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00282/0.3294, allocations: 213.5 kB / 234.1 MB, free: 9.879 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.81e-05/0.3295, allocations: 7.984 kB / 234.1 MB, free: 9.871 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008218/0.3377, allocations: 2.7 MB / 236.8 MB, free: 7.012 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.3378, allocations: 96 / 236.8 MB, free: 7.012 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005667/0.3434, allocations: 0.7183 MB / 237.5 MB, free: 6.262 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003016/0.3438, allocations: 124.8 kB / 237.7 MB, free: 6.121 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.698e-05/0.3439, allocations: 8 kB / 237.7 MB, free: 6.113 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006099/0.3445, allocations: 20.05 kB / 237.7 MB, free: 6.094 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.3447, allocations: 23.95 kB / 237.7 MB, free: 6.07 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.078e-05/0.3448, allocations: 8 kB / 237.7 MB, free: 6.062 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003358/0.3451, allocations: 165.4 kB / 237.9 MB, free: 5.898 MB / 202.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.3451, allocations: 0 / 237.9 MB, free: 5.898 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001191/0.3463, allocations: 99.94 kB / 238 MB, free: 5.801 MB / 202.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.00995/0.3563, allocations: 1.347 MB / 239.3 MB, free: 4.414 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.3582, allocations: 418.7 kB / 239.7 MB, free: 3.992 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.3582, allocations: 0 / 239.7 MB, free: 3.992 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.3592, allocations: 294.6 kB / 240 MB, free: 3.691 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006363/0.3599, allocations: 30.41 kB / 240 MB, free: 3.664 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.3625, allocations: 0.532 MB / 240.6 MB, free: 3.086 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006273/0.3631, allocations: 0.7798 MB / 241.4 MB, free: 2.281 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/0.3635, allocations: 95.41 kB / 241.4 MB, free: 2.188 MB / 202.7 MB Notification: Performance of SimCode: time 1.924e-06/0.3635, allocations: 0 / 241.4 MB, free: 2.188 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.922/3.286, allocations: 6.964 MB / 248.4 MB, free: 53.75 MB / 202.7 MB