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.Hysteresis.InductorWithHysteresis.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.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.903/1.903, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003568, allocations: 11.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1046, allocations: 44.51 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4483/0.553, allocations: 81.98 MB / 390.5 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.5533, allocations: 85.53 kB / 390.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0408/0.5942, allocations: 9.249 MB / 399.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5942, allocations: 0 / 399.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.5942, allocations: 3.875 kB / 399.9 MB, free: 13.59 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001782/0.596, allocations: 0.646 MB / 400.5 MB, free: 13.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.5961, allocations: 14.47 kB / 400.5 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.488e-05/0.5962, allocations: 59.88 kB / 400.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.626e-05/0.5963, allocations: 43.02 kB / 400.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004901/0.5968, allocations: 320.2 kB / 400.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.687e-05/0.5969, allocations: 50.86 kB / 401 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002338/0.5971, allocations: 40.56 kB / 401 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000872/0.598, allocations: 328 kB / 401.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.598, allocations: 0 / 401.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.649e-05/0.5981, allocations: 18.47 kB / 401.4 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.5981, allocations: 11.83 kB / 401.4 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.5992, allocations: 303.6 kB / 401.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002261/0.6015, allocations: 1.164 MB / 402.8 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009246/0.6024, allocations: 298.6 kB / 403.1 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.6025, allocations: 7.672 kB / 403.1 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.6025, allocations: 41.78 kB / 403.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.064e-06/0.6025, allocations: 0 / 403.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=42): time 0.01906/0.6216, allocations: 2.83 MB / 406 MB, free: 10.94 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.6216, allocations: 84.95 kB / 406.1 MB, free: 10.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004189/0.6221, allocations: 268.6 kB / 406.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.452e-05/0.6221, allocations: 29.02 kB / 406.4 MB, free: 10.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.755e-05/0.6222, allocations: 220.3 kB / 406.6 MB, free: 10.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.6224, allocations: 148.3 kB / 406.7 MB, free: 10.4 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.154e-05/0.6224, allocations: 6 kB / 406.7 MB, free: 10.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.52e-05/0.6225, allocations: 331.4 kB / 407.1 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006479/0.6232, allocations: 167.2 kB / 407.2 MB, free: 10.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006644/0.6238, allocations: 232.1 kB / 407.5 MB, free: 9.965 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006692/0.6245, allocations: 185.2 kB / 407.6 MB, free: 9.949 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.6245, allocations: 0 / 407.6 MB, free: 9.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001523/0.6261, allocations: 489.3 kB / 408.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.6261, allocations: 7.719 kB / 408.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.6261, allocations: 3.984 kB / 408.1 MB, free: 9.832 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.6262, allocations: 4.031 kB / 408.1 MB, free: 9.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.6272, allocations: 128.2 kB / 408.3 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.6272, allocations: 3.969 kB / 408.3 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006571/0.6279, allocations: 41.52 kB / 408.3 MB, free: 9.789 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.293e-05/0.628, allocations: 15.61 kB / 408.3 MB, free: 9.785 MB / 314.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: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002076/0.6282, allocations: 148.7 kB / 408.5 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.6283, allocations: 38.56 kB / 408.5 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003616/0.6319, allocations: 0.726 MB / 409.2 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.632, allocations: 7.844 kB / 409.2 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.632, allocations: 0 / 409.2 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.632, allocations: 0 / 409.2 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004898/0.6369, allocations: 1.322 MB / 410.6 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.6369, allocations: 7.922 kB / 410.6 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008037/0.6378, allocations: 92.98 kB / 410.7 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002814/0.6406, allocations: 286.5 kB / 410.9 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.795e-05/0.6407, allocations: 14.69 kB / 410.9 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005635/0.6463, allocations: 2.322 MB / 413.3 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.6463, allocations: 4.062 kB / 413.3 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003961/0.6503, allocations: 1.063 MB / 414.3 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003271/0.6507, allocations: 141.9 kB / 414.5 MB, free: 6.625 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.6508, allocations: 14.98 kB / 414.5 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.6519, allocations: 34.72 kB / 414.5 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.6521, allocations: 39.56 kB / 414.6 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.947e-05/0.6522, allocations: 18.53 kB / 414.6 MB, free: 6.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004169/0.6526, allocations: 208 kB / 414.8 MB, free: 6.492 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.6527, allocations: 3.875 kB / 414.8 MB, free: 6.492 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001239/0.6539, allocations: 125.1 kB / 414.9 MB, free: 6.48 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.005778/0.6597, allocations: 1.72 MB / 416.6 MB, free: 5.473 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002048/0.6618, allocations: 448 kB / 417.1 MB, free: 5.395 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.6618, allocations: 0 / 417.1 MB, free: 5.395 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.6632, allocations: 397.2 kB / 417.5 MB, free: 5.227 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007493/0.664, allocations: 28.42 kB / 417.5 MB, free: 5.223 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008649/0.6727, allocations: 3.394 MB / 420.9 MB, free: 3.137 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.6731, allocations: 0.799 MB / 421.7 MB, free: 2.387 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005192/0.6736, allocations: 121 kB / 421.8 MB, free: 2.363 MB / 314.7 MB Notification: Performance of SimCode: time 1.553e-06/0.6736, allocations: 3.938 kB / 421.8 MB, free: 2.359 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.705/3.378, allocations: 7.022 MB / 428.8 MB, free: 14.89 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat