Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003522, allocations: 12 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08217/0.08254, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3377/0.4203, allocations: 70.47 MB / 342.6 MB, free: 3.32 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.4206, allocations: 81.89 kB / 342.7 MB, free: 3.277 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02966/0.4503, allocations: 6.715 MB / 349.4 MB, free: 13.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4503, allocations: 7.875 kB / 349.4 MB, free: 13.58 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.4504, allocations: 4 kB / 349.4 MB, free: 13.57 MB / 282.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.001247/0.4516, allocations: 0.5659 MB / 349.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.4517, allocations: 8.031 kB / 350 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.475e-05/0.4518, allocations: 68.58 kB / 350 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.982e-05/0.4519, allocations: 31.62 kB / 350.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.4523, allocations: 260.8 kB / 350.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.049e-05/0.4524, allocations: 19.88 kB / 350.3 MB, free: 12.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/0.4525, allocations: 27.5 kB / 350.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007165/0.4532, allocations: 239.1 kB / 350.6 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.4532, allocations: 0 / 350.6 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/0.4533, allocations: 14.98 kB / 350.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.4533, allocations: 4 kB / 350.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007231/0.454, allocations: 207.3 kB / 350.8 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.4564, allocations: 1.008 MB / 351.8 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006314/0.457, allocations: 184.4 kB / 352 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/0.4572, allocations: 89.28 kB / 352.1 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.4572, allocations: 35.84 kB / 352.1 MB, free: 11.06 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.594e-06/0.4572, allocations: 0 / 352.1 MB, free: 11.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0105/0.4678, allocations: 1.493 MB / 353.6 MB, free: 9.746 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.4678, allocations: 51.41 kB / 353.7 MB, free: 9.684 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003496/0.4682, allocations: 208.1 kB / 353.9 MB, free: 9.508 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.295e-05/0.4683, allocations: 33.39 kB / 353.9 MB, free: 9.473 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.4684, allocations: 247.1 kB / 354.1 MB, free: 9.254 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.4686, allocations: 104.6 kB / 354.2 MB, free: 9.164 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.741e-05/0.4686, allocations: 3.688 kB / 354.2 MB, free: 9.164 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4688, allocations: 326 kB / 354.6 MB, free: 8.844 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003926/0.4692, allocations: 105 kB / 354.7 MB, free: 8.777 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004393/0.4696, allocations: 162.5 kB / 354.8 MB, free: 8.645 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004419/0.4701, allocations: 126 kB / 354.9 MB, free: 8.574 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4701, allocations: 0 / 354.9 MB, free: 8.574 MB / 282.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003551/0.4737, allocations: 0.5033 MB / 355.5 MB, free: 8.184 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.4737, allocations: 4.625 kB / 355.5 MB, free: 8.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.4737, allocations: 4 kB / 355.5 MB, free: 8.176 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004888/0.4786, allocations: 302.6 kB / 355.8 MB, free: 7.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.4791, allocations: 55.84 kB / 355.8 MB, free: 7.855 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005543/0.4847, allocations: 2.669 MB / 358.5 MB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004247/0.4852, allocations: 14.81 kB / 358.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.115e-05/0.4852, allocations: 19.3 kB / 358.5 MB, free: 5.383 MB / 282.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.000242/0.4855, allocations: 140.3 kB / 358.6 MB, free: 5.254 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.093e-05/0.4856, allocations: 23.72 kB / 358.7 MB, free: 5.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003488/0.4891, allocations: 0.5032 MB / 359.2 MB, free: 4.852 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4891, allocations: 4 kB / 359.2 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.4891, allocations: 0 / 359.2 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.4891, allocations: 4 kB / 359.2 MB, free: 4.844 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000622/0.4897, allocations: 374.2 kB / 359.5 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.4898, allocations: 0 / 359.5 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003664/0.4901, allocations: 39.61 kB / 359.6 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004791/0.4949, allocations: 298 kB / 359.9 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.495, allocations: 11.67 kB / 359.9 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005435/0.5004, allocations: 2.668 MB / 362.6 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.5005, allocations: 8.016 kB / 362.6 MB, free: 1.746 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003854/0.5043, allocations: 0.7038 MB / 363.3 MB, free: 1.195 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.5045, allocations: 124.4 kB / 363.4 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.713e-05/0.5046, allocations: 7.438 kB / 363.4 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004157/0.505, allocations: 19.98 kB / 363.4 MB, free: 1.051 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.5052, allocations: 27.94 kB / 363.4 MB, free: 1.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.022e-05/0.5052, allocations: 11.94 kB / 363.5 MB, free: 1.016 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002188/0.5054, allocations: 167.3 kB / 363.6 MB, free: 0.875 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5054, allocations: 0 / 363.6 MB, free: 0.875 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007124/0.5062, allocations: 91.81 kB / 363.7 MB, free: 0.793 MB / 282.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.004336/0.5105, allocations: 1.276 MB / 365 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.5118, allocations: 430.7 kB / 365.4 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.5119, allocations: 4.062 kB / 365.4 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000736/0.5126, allocations: 296 kB / 365.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.5129, allocations: 20.2 kB / 365.7 MB, free: 15.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006891/0.5198, allocations: 2.573 MB / 368.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004544/0.5203, allocations: 0.7794 MB / 369.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.5205, allocations: 87.84 kB / 369.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of SimCode: time 8.62e-07/0.5205, allocations: 0 / 369.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.6/3.121, allocations: 6.903 MB / 376.1 MB, free: 5.027 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat