Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002552/0.002552, allocations: 180.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.189/2.189, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001533/0.001533, allocations: 90.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.856e-05/3.874e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.425/0.5281, allocations: 86.11 MB / 455.3 MB, free: 6.758 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003115/0.5285, allocations: 78.64 kB / 455.4 MB, free: 6.719 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04783/0.5763, allocations: 9.287 MB / 464.7 MB, free: 14.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5764, allocations: 0 / 464.7 MB, free: 14.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.409e-05/0.5764, allocations: 4 kB / 464.7 MB, free: 14.73 MB / 346.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.001756/0.5782, allocations: 0.5887 MB / 465.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.5782, allocations: 8.031 kB / 465.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.5783, allocations: 68.34 kB / 465.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.5785, allocations: 39.53 kB / 465.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006417/0.5791, allocations: 322.9 kB / 465.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.336e-05/0.5793, allocations: 47.77 kB / 465.7 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002935/0.5796, allocations: 37.3 kB / 465.8 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007932/0.5804, allocations: 296.8 kB / 466.1 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.5804, allocations: 7.938 kB / 466.1 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.932e-05/0.5805, allocations: 10.19 kB / 466.1 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.5805, allocations: 4 kB / 466.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007542/0.5813, allocations: 257.5 kB / 466.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002862/0.5842, allocations: 1.181 MB / 467.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006732/0.5849, allocations: 266.4 kB / 467.8 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003715/0.5853, allocations: 150 kB / 467.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.5853, allocations: 4 kB / 467.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.5854, allocations: 38.44 kB / 468 MB, free: 11.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 4.839e-06/0.5854, allocations: 3.938 kB / 468 MB, free: 11.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.01555/0.601, allocations: 2.138 MB / 470.1 MB, free: 9.809 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/0.6011, allocations: 85.11 kB / 470.2 MB, free: 9.707 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006145/0.6017, allocations: 272.9 kB / 470.4 MB, free: 9.434 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.6018, allocations: 33.7 kB / 470.5 MB, free: 9.395 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.602, allocations: 222.9 kB / 470.7 MB, free: 9.176 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.6022, allocations: 141.9 kB / 470.8 MB, free: 9.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.6023, allocations: 8 kB / 470.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.6025, allocations: 326.8 kB / 471.2 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004608/0.6029, allocations: 140.9 kB / 471.3 MB, free: 8.562 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005271/0.6035, allocations: 201.9 kB / 471.5 MB, free: 8.344 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005009/0.604, allocations: 161.5 kB / 471.7 MB, free: 8.188 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.604, allocations: 0 / 471.7 MB, free: 8.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.01199/0.616, allocations: 1.455 MB / 473.1 MB, free: 6.719 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.6161, allocations: 8 kB / 473.1 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.6161, allocations: 0 / 473.1 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01128/0.6274, allocations: 1.041 MB / 474.2 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005494/0.628, allocations: 63.91 kB / 474.2 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01897/0.647, allocations: 4.354 MB / 478.6 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008315/0.6479, allocations: 35.98 kB / 478.6 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.301e-05/0.648, allocations: 19.98 kB / 478.6 MB, free: 1.055 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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 20} Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.6482, allocations: 136.9 kB / 478.8 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.6483, allocations: 27.72 kB / 478.8 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002633/0.651, allocations: 0.5976 MB / 479.4 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/0.651, allocations: 4 kB / 479.4 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.651, allocations: 0 / 479.4 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.6511, allocations: 0 / 479.4 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005018/0.6561, allocations: 1.228 MB / 480.6 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.6562, allocations: 4 kB / 480.6 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009391/0.6571, allocations: 91.88 kB / 480.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002568/0.6597, allocations: 260.6 kB / 481 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.6599, allocations: 15.98 kB / 481 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005554/0.6654, allocations: 2.139 MB / 483.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.6655, allocations: 0 / 483.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003252/0.6687, allocations: 0.9341 MB / 484.1 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003294/0.6691, allocations: 148.7 kB / 484.2 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.502e-05/0.6692, allocations: 12 kB / 484.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007926/0.67, allocations: 31.94 kB / 484.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.6703, allocations: 36.38 kB / 484.3 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.184e-05/0.6703, allocations: 16 kB / 484.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003736/0.6707, allocations: 213.4 kB / 484.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6707, allocations: 0 / 484.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001011/0.6717, allocations: 143.9 kB / 484.6 MB, free: 10.79 MB / 362.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 () * 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.004017/0.6758, allocations: 1.605 MB / 486.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.6775, allocations: 0.5466 MB / 486.8 MB, free: 8.586 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.6775, allocations: 0 / 486.8 MB, free: 8.586 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008393/0.6784, allocations: 356.8 kB / 487.1 MB, free: 8.227 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005517/0.679, allocations: 37 kB / 487.2 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.6819, allocations: 0.8389 MB / 488 MB, free: 7.305 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005387/0.6825, allocations: 0.7971 MB / 488.8 MB, free: 6.477 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004146/0.6829, allocations: 119.3 kB / 488.9 MB, free: 6.363 MB / 362.7 MB Notification: Performance of SimCode: time 1.583e-06/0.6829, allocations: 4 kB / 488.9 MB, free: 6.359 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.657/3.34, allocations: 7.532 MB / 496.5 MB, free: 14.81 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat