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/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.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.099/1.099, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.055e-05/3.082e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0652/0.06529, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2776/0.343, allocations: 36.68 MB / 210.1 MB, free: 4.953 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.3433, allocations: 65.39 kB / 210.1 MB, free: 4.953 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02767/0.371, allocations: 6.496 MB / 216.6 MB, free: 3.73 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3711, allocations: 0 / 216.6 MB, free: 3.73 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.3711, allocations: 7.844 kB / 216.6 MB, free: 3.73 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.001047/0.3722, allocations: 0.5307 MB / 217.2 MB, free: 3.266 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.3722, allocations: 11.62 kB / 217.2 MB, free: 3.266 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.922e-05/0.3723, allocations: 35.11 kB / 217.2 MB, free: 3.246 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004103/0.3728, allocations: 254.4 kB / 217.5 MB, free: 3.008 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.3728, allocations: 11.75 kB / 217.5 MB, free: 3.004 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.632e-05/0.3729, allocations: 15.62 kB / 217.5 MB, free: 3.004 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004589/0.3733, allocations: 160.1 kB / 217.6 MB, free: 3 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/0.3738, allocations: 197.1 kB / 217.8 MB, free: 2.934 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.3738, allocations: 4 kB / 217.8 MB, free: 2.93 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.3739, allocations: 3.875 kB / 217.8 MB, free: 2.93 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3739, allocations: 3.875 kB / 217.8 MB, free: 2.93 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002113/0.376, allocations: 0.8886 MB / 218.7 MB, free: 2.367 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003844/0.3765, allocations: 173.6 kB / 218.9 MB, free: 2.328 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.3767, allocations: 85.45 kB / 219 MB, free: 2.32 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001299/0.3769, allocations: 84.59 kB / 219.1 MB, free: 2.223 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.3769, allocations: 41.88 kB / 219.1 MB, free: 2.18 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 3.256e-06/0.3769, allocations: 3.938 kB / 219.1 MB, free: 2.176 MB / 170.7 MB Notification: Performance of matching and sorting (n=31): time 0.009075/0.386, allocations: 1.177 MB / 220.3 MB, free: 1.617 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.3861, allocations: 59.17 kB / 220.3 MB, free: 1.551 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002805/0.3864, allocations: 184.7 kB / 220.5 MB, free: 1.449 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.229e-05/0.3865, allocations: 25.7 kB / 220.6 MB, free: 1.418 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.3866, allocations: 253.6 kB / 220.8 MB, free: 1.207 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.733e-05/0.3867, allocations: 91.31 kB / 220.9 MB, free: 1.137 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.64e-05/0.3867, allocations: 3.312 kB / 220.9 MB, free: 1.137 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.586e-05/0.3868, allocations: 328.9 kB / 221.2 MB, free: 0.8164 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.3871, allocations: 91.33 kB / 221.3 MB, free: 0.8125 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002688/0.3873, allocations: 135.5 kB / 221.4 MB, free: 0.7617 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003879/0.3877, allocations: 126.2 kB / 221.6 MB, free: 0.7344 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3878, allocations: 0 / 221.6 MB, free: 0.7344 MB / 170.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003587/0.3913, allocations: 482.9 kB / 222 MB, free: 0.5781 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.22e-05/0.3914, allocations: 7.656 kB / 222 MB, free: 0.5781 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.3915, allocations: 3.938 kB / 222 MB, free: 0.5742 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008369/0.3923, allocations: 161.7 kB / 222.2 MB, free: 0.5195 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004997/0.3928, allocations: 58.09 kB / 222.3 MB, free: 0.5078 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005713/0.3986, allocations: 2.636 MB / 224.9 MB, free: 14.53 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004939/0.3991, allocations: 7.922 kB / 224.9 MB, free: 14.52 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.3992, allocations: 23.11 kB / 224.9 MB, free: 14.52 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: r_mAirPar.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real 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.0002544/0.3994, allocations: 113.5 kB / 225 MB, free: 14.4 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003581/0.403, allocations: 450.3 kB / 225.5 MB, free: 14.24 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.4032, allocations: 23.31 kB / 225.5 MB, free: 14.23 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003658/0.4069, allocations: 463.3 kB / 225.9 MB, free: 14.06 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.407, allocations: 3.719 kB / 226 MB, free: 14.06 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.407, allocations: 0 / 226 MB, free: 14.06 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.407, allocations: 4 kB / 226 MB, free: 14.06 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004503/0.4115, allocations: 0.8837 MB / 226.8 MB, free: 13.59 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.4116, allocations: 4 kB / 226.8 MB, free: 13.58 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004016/0.412, allocations: 42.64 kB / 226.9 MB, free: 13.57 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00082/0.4129, allocations: 160.3 kB / 227 MB, free: 13.52 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.284e-05/0.4129, allocations: 7.891 kB / 227 MB, free: 13.52 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005713/0.4187, allocations: 2.623 MB / 229.7 MB, free: 11.54 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/0.4187, allocations: 3.594 kB / 229.7 MB, free: 11.54 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004076/0.4228, allocations: 0.6957 MB / 230.4 MB, free: 11.25 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002471/0.4231, allocations: 131.2 kB / 230.5 MB, free: 11.12 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.753e-05/0.4232, allocations: 3.984 kB / 230.5 MB, free: 11.12 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000428/0.4236, allocations: 3.906 kB / 230.5 MB, free: 11.12 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.4238, allocations: 31.67 kB / 230.5 MB, free: 11.11 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/0.4238, allocations: 15.52 kB / 230.6 MB, free: 11.1 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002102/0.424, allocations: 150.6 kB / 230.7 MB, free: 11.02 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4241, allocations: 0 / 230.7 MB, free: 11.02 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007819/0.4249, allocations: 85.28 kB / 230.8 MB, free: 11.01 MB / 186.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.004663/0.4296, allocations: 1.327 MB / 232.1 MB, free: 10.11 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.4307, allocations: 402.4 kB / 232.5 MB, free: 9.953 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4307, allocations: 0 / 232.5 MB, free: 9.953 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006155/0.4314, allocations: 280.5 kB / 232.8 MB, free: 9.812 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004272/0.4318, allocations: 15.03 kB / 232.8 MB, free: 9.805 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.4335, allocations: 0.4998 MB / 233.3 MB, free: 9.492 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.434, allocations: 0.7781 MB / 234.1 MB, free: 8.75 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001926/0.4342, allocations: 91.64 kB / 234.2 MB, free: 8.73 MB / 186.7 MB Notification: Performance of SimCode: time 1.253e-06/0.4342, allocations: 0 / 234.2 MB, free: 8.73 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.869/3.303, allocations: 6.917 MB / 241.1 MB, free: 4.375 MB / 186.7 MB