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.SinglePhaseTransformerWithHysteresis1.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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.187/2.187, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003551, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09727/0.09767, allocations: 44.52 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4267/0.5244, allocations: 79 MB / 387.5 MB, free: 14.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003132/0.5248, allocations: 90.09 kB / 387.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1195/0.6443, allocations: 38.55 MB / 426.2 MB, free: 2.098 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.6444, allocations: 3.969 kB / 426.2 MB, free: 2.098 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003309/0.6447, allocations: 31.03 kB / 426.2 MB, free: 2.098 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.006366/0.6511, allocations: 2.636 MB / 428.9 MB, free: 276 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.6512, allocations: 11.5 kB / 428.9 MB, free: 276 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002458/0.6514, allocations: 77.11 kB / 428.9 MB, free: 224 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007836/0.6522, allocations: 279.8 kB / 429.2 MB, free: 72 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006203/0.6585, allocations: 1.914 MB / 431.1 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.6586, allocations: 64.41 kB / 431.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002784/0.6589, allocations: 54.39 kB / 431.2 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.6601, allocations: 392 kB / 431.6 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.6602, allocations: 0 / 431.6 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.722e-05/0.6603, allocations: 16.25 kB / 431.6 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.6603, allocations: 8 kB / 431.7 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.6615, allocations: 329.9 kB / 432 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008563/0.6701, allocations: 3.094 MB / 435.1 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.6713, allocations: 315.5 kB / 435.4 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.692e-05/0.6714, allocations: 11.14 kB / 435.4 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.6715, allocations: 38.12 kB / 435.4 MB, free: 11.69 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 2.635e-06/0.6715, allocations: 4 kB / 435.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.009752/0.6812, allocations: 2.553 MB / 438 MB, free: 9.363 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/0.6813, allocations: 81.55 kB / 438.1 MB, free: 9.266 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01736/0.6987, allocations: 4.875 MB / 442.9 MB, free: 5.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001289/0.6989, allocations: 29.64 kB / 443 MB, free: 5.648 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.7004, allocations: 0.8993 MB / 443.9 MB, free: 5.387 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002997/0.7008, allocations: 173.3 kB / 444 MB, free: 5.242 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.7008, allocations: 10.38 kB / 444 MB, free: 5.238 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.701, allocations: 332.1 kB / 444.4 MB, free: 4.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006259/0.7016, allocations: 144.2 kB / 444.5 MB, free: 4.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006523/0.7023, allocations: 223.8 kB / 444.7 MB, free: 4.633 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006892/0.703, allocations: 229.9 kB / 445 MB, free: 4.469 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.703, allocations: 0 / 445 MB, free: 4.469 MB / 330.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001582/0.7046, allocations: 0.5054 MB / 445.5 MB, free: 4.078 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.394e-05/0.7048, allocations: 56.25 kB / 445.5 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.7048, allocations: 8 kB / 445.5 MB, free: 4.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.7048, allocations: 4 kB / 445.5 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009766/0.7058, allocations: 119.8 kB / 445.6 MB, free: 3.887 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.7059, allocations: 4 kB / 445.6 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.7071, allocations: 30.95 kB / 445.7 MB, free: 3.859 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.7072, allocations: 15.75 kB / 445.7 MB, free: 3.848 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 2 * 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.002438/0.7097, allocations: 0.9247 MB / 446.6 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/0.7108, allocations: 276.5 kB / 446.9 MB, free: 2.867 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003004/0.7138, allocations: 0.7867 MB / 447.7 MB, free: 2.277 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.7139, allocations: 4 kB / 447.7 MB, free: 2.273 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.7139, allocations: 8 kB / 447.7 MB, free: 2.266 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.7139, allocations: 0 / 447.7 MB, free: 2.266 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004779/0.7187, allocations: 1.689 MB / 449.4 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/0.7188, allocations: 0 / 449.4 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009794/0.7197, allocations: 100.2 kB / 449.5 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005299/0.7203, allocations: 85.11 kB / 449.6 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.855e-05/0.7204, allocations: 22.19 kB / 449.6 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.7215, allocations: 0.644 MB / 450.2 MB, free: 200 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.7215, allocations: 0 / 450.2 MB, free: 200 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003565/0.7251, allocations: 1.101 MB / 451.3 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002119/0.7273, allocations: 0.6639 MB / 452 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006565/0.728, allocations: 27.23 kB / 452 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.7292, allocations: 31.14 kB / 452 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.7293, allocations: 27.7 kB / 452.1 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.056e-05/0.7294, allocations: 21.53 kB / 452.1 MB, free: 14.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.01149/0.7409, allocations: 3.831 MB / 455.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.741, allocations: 0 / 455.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002312/0.7433, allocations: 335.9 kB / 456.3 MB, free: 10.62 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * 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 (41): * Single equations (assignments): 40 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.006086/0.7494, allocations: 2.019 MB / 458.3 MB, free: 8.645 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.7511, allocations: 0.489 MB / 458.8 MB, free: 8.129 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.7512, allocations: 4.062 kB / 458.8 MB, free: 8.125 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000822/0.752, allocations: 214.3 kB / 459 MB, free: 7.914 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.7538, allocations: 175 kB / 459.1 MB, free: 7.738 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02383/0.7777, allocations: 11.91 MB / 471.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003226/0.781, allocations: 1.864 MB / 472.9 MB, free: 8.645 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002798/0.7838, allocations: 1.015 MB / 473.9 MB, free: 7.629 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.7839, allocations: 0 / 473.9 MB, free: 7.629 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.72/4.504, allocations: 60.87 MB / 0.5223 GB, free: 123.7 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat