Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.731/1.731, allocations: 171.1 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004926/0.0004927, allocations: 11.98 kB / 233.4 MB, free: 172 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09241/0.09294, allocations: 38.76 MB / 272.1 MB, free: 9.324 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3393/0.4323, allocations: 70.47 MB / 342.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.4326, allocations: 79.89 kB / 342.7 MB, free: 12 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0296/0.4622, allocations: 6.717 MB / 349.4 MB, free: 5.258 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4622, allocations: 0 / 349.4 MB, free: 5.258 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.095e-05/0.4623, allocations: 8 kB / 349.4 MB, free: 5.25 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.001255/0.4635, allocations: 0.5649 MB / 350 MB, free: 4.637 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.4636, allocations: 15.95 kB / 350 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.489e-05/0.4637, allocations: 66.55 kB / 350 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.247e-05/0.4638, allocations: 31.62 kB / 350.1 MB, free: 4.516 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004159/0.4642, allocations: 254.9 kB / 350.3 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.4643, allocations: 24.5 kB / 350.3 MB, free: 4.199 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.439e-05/0.4644, allocations: 28 kB / 350.4 MB, free: 4.172 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000764/0.4652, allocations: 252.3 kB / 350.6 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.4652, allocations: 0 / 350.6 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.4652, allocations: 12 kB / 350.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.4653, allocations: 8 kB / 350.6 MB, free: 3.902 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007324/0.466, allocations: 206.1 kB / 350.8 MB, free: 3.703 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.4684, allocations: 1.002 MB / 351.8 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006389/0.469, allocations: 197.2 kB / 352 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.4692, allocations: 81.3 kB / 352.1 MB, free: 2.316 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.4692, allocations: 39.91 kB / 352.2 MB, free: 2.27 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.755e-06/0.4693, allocations: 0 / 352.2 MB, free: 2.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.01044/0.4797, allocations: 1.49 MB / 353.6 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.4798, allocations: 55.41 kB / 353.7 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003299/0.4801, allocations: 204.2 kB / 353.9 MB, free: 444 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/0.4802, allocations: 33.64 kB / 353.9 MB, free: 404 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.4804, allocations: 184.1 kB / 354.1 MB, free: 216 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.4805, allocations: 106.5 kB / 354.2 MB, free: 108 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.4805, allocations: 12 kB / 354.2 MB, free: 96 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.4807, allocations: 330.8 kB / 354.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004324/0.4812, allocations: 111.9 kB / 354.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.4816, allocations: 155.7 kB / 354.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004503/0.4821, allocations: 127.7 kB / 354.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.4821, allocations: 0 / 354.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003418/0.4855, allocations: 0.506 MB / 355.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.4856, allocations: 4 kB / 355.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.4856, allocations: 8 kB / 355.4 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004876/0.4905, allocations: 301.3 kB / 355.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005058/0.4911, allocations: 51.97 kB / 355.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005635/0.4967, allocations: 2.672 MB / 358.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004792/0.4973, allocations: 16.02 kB / 358.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/0.4973, allocations: 12 kB / 358.5 MB, free: 11.62 MB / 298.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.0002576/0.4976, allocations: 141.8 kB / 358.6 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.993e-05/0.4977, allocations: 27.7 kB / 358.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00349/0.5012, allocations: 0.5022 MB / 359.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.5013, allocations: 4 kB / 359.2 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.5013, allocations: 0 / 359.2 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.5013, allocations: 7.922 kB / 359.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007545/0.5021, allocations: 373.4 kB / 359.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.5021, allocations: 0 / 359.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000391/0.5025, allocations: 39.97 kB / 359.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004776/0.5073, allocations: 297.4 kB / 359.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.371e-05/0.5074, allocations: 8 kB / 359.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005507/0.5129, allocations: 2.672 MB / 362.5 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/0.513, allocations: 4.031 kB / 362.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004344/0.5173, allocations: 0.7118 MB / 363.3 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003085/0.5177, allocations: 124.8 kB / 363.4 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.079e-05/0.5178, allocations: 7.984 kB / 363.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005922/0.5184, allocations: 12 kB / 363.4 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.5186, allocations: 28 kB / 363.4 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.358e-05/0.5187, allocations: 15.98 kB / 363.4 MB, free: 6.387 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003393/0.519, allocations: 164.5 kB / 363.6 MB, free: 6.223 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.519, allocations: 0 / 363.6 MB, free: 6.223 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00122/0.5203, allocations: 99.92 kB / 363.7 MB, free: 6.125 MB / 298.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.005341/0.5256, allocations: 1.264 MB / 365 MB, free: 4.824 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.5273, allocations: 431 kB / 365.4 MB, free: 4.391 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.5274, allocations: 0 / 365.4 MB, free: 4.391 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.5285, allocations: 302.7 kB / 365.7 MB, free: 4.082 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005519/0.5291, allocations: 24.39 kB / 365.7 MB, free: 4.059 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01/0.5392, allocations: 2.532 MB / 368.2 MB, free: 1.457 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005597/0.5398, allocations: 0.7755 MB / 369 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002526/0.5401, allocations: 22.28 kB / 369 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002482/0.5403, allocations: 91.39 kB / 369.1 MB, free: 0.543 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5403, allocations: 0 / 369.1 MB, free: 0.543 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0837/0.6241, allocations: 7.204 MB / 376.3 MB, free: 9.402 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003095/0.6244, allocations: 225 kB / 376.6 MB, free: 9.152 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.722/3.347, allocations: 3.938 kB / 376.6 MB, free: 9.148 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat