Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.435/2.435, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004774/0.0004774, allocations: 11.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.09709, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4126/0.5098, allocations: 75.03 MB / 383.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.5101, allocations: 77.77 kB / 383.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03026/0.5404, allocations: 6.887 MB / 390.5 MB, free: 14.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5405, allocations: 0 / 390.5 MB, free: 14.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.9e-05/0.5405, allocations: 7.844 kB / 390.5 MB, free: 14.05 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001147/0.5417, allocations: 0.5524 MB / 391.1 MB, free: 13.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.5417, allocations: 10.83 kB / 391.1 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.732e-05/0.5418, allocations: 65.08 kB / 391.2 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/0.5419, allocations: 34.91 kB / 391.2 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.5424, allocations: 262.8 kB / 391.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.5424, allocations: 19.38 kB / 391.5 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.117e-05/0.5425, allocations: 30.28 kB / 391.5 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007061/0.5432, allocations: 246.5 kB / 391.7 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.5432, allocations: 0 / 391.7 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.925e-05/0.5433, allocations: 12.58 kB / 391.7 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.5433, allocations: 7.75 kB / 391.8 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006906/0.544, allocations: 215.7 kB / 392 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.5462, allocations: 1.029 MB / 393 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006615/0.5469, allocations: 207.1 kB / 393.2 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.21e-05/0.5469, allocations: 7.266 kB / 393.2 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.547, allocations: 41.69 kB / 393.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.296e-06/0.547, allocations: 0 / 393.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.007866/0.5549, allocations: 1.491 MB / 394.7 MB, free: 12.19 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/0.555, allocations: 55.36 kB / 394.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.5552, allocations: 208.4 kB / 395 MB, free: 12.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.5553, allocations: 32.83 kB / 395 MB, free: 11.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.5554, allocations: 242.8 kB / 395.3 MB, free: 11.79 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.5555, allocations: 113.4 kB / 395.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.5556, allocations: 10.5 kB / 395.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.282e-05/0.5557, allocations: 331.7 kB / 395.7 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003632/0.556, allocations: 100.9 kB / 395.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003899/0.5564, allocations: 161.7 kB / 396 MB, free: 11.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.5568, allocations: 126.4 kB / 396.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5569, allocations: 0 / 396.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002535/0.5594, allocations: 0.5379 MB / 396.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.5595, allocations: 4.562 kB / 396.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.5595, allocations: 3.969 kB / 396.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002355/0.5619, allocations: 251 kB / 396.9 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.5624, allocations: 54.17 kB / 396.9 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006647/0.5691, allocations: 3.8 MB / 400.7 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004375/0.5696, allocations: 19.11 kB / 400.8 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-05/0.5696, allocations: 11.53 kB / 400.8 MB, free: 8.48 MB / 314.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 (28): * Single equations (assignments): 26 * 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%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002379/0.5699, allocations: 144.1 kB / 400.9 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.756e-05/0.57, allocations: 28.78 kB / 400.9 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001277/0.5701, allocations: 46.83 kB / 401 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.5701, allocations: 4.5 kB / 401 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.5701, allocations: 1.5 kB / 401 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.5702, allocations: 0 / 401 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005892/0.5707, allocations: 380.8 kB / 401.4 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5708, allocations: 3.938 kB / 401.4 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003851/0.5712, allocations: 42.08 kB / 401.4 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002258/0.5734, allocations: 246.6 kB / 401.6 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.393e-05/0.5735, allocations: 7.641 kB / 401.6 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005678/0.5792, allocations: 3.682 MB / 405.3 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5793, allocations: 4.078 kB / 405.3 MB, free: 5.473 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002938/0.5822, allocations: 0.7191 MB / 406.1 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.5824, allocations: 96.61 kB / 406.1 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.024e-05/0.5825, allocations: 11.64 kB / 406.2 MB, free: 5.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003974/0.5829, allocations: 18.23 kB / 406.2 MB, free: 5.172 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.583, allocations: 29.62 kB / 406.2 MB, free: 5.168 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.5831, allocations: 11.81 kB / 406.2 MB, free: 5.164 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001938/0.5833, allocations: 166.7 kB / 406.4 MB, free: 5.082 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5833, allocations: 0 / 406.4 MB, free: 5.082 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007925/0.5841, allocations: 108.4 kB / 406.5 MB, free: 5.082 MB / 314.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 (18): * Single equations (assignments): 16 * 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%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003373/0.5875, allocations: 1.274 MB / 407.8 MB, free: 20.36 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.5889, allocations: 0.5647 MB / 408.3 MB, free: 20.11 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.589, allocations: 0 / 408.3 MB, free: 20.11 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008387/0.5898, allocations: 430.7 kB / 408.7 MB, free: 19.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.5902, allocations: 20.72 kB / 408.8 MB, free: 19.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005872/0.5961, allocations: 2.619 MB / 411.4 MB, free: 18.42 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004368/0.5966, allocations: 0.79 MB / 412.2 MB, free: 17.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/0.5968, allocations: 98.94 kB / 412.3 MB, free: 17.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5968, allocations: 0 / 412.3 MB, free: 17.7 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.771/3.368, allocations: 7.054 MB / 419.3 MB, free: 14.91 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat