Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008691/0.0008693, allocations: 94.05 kB / 281.2 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.711e-05/1.722e-05, allocations: 4 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.0985, allocations: 50.42 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3263/0.4248, allocations: 85.81 MB / 473.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.4251, allocations: 91.94 kB / 473.5 MB, free: 8.812 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08033/0.5055, allocations: 38.99 MB / 0.5004 GB, free: 1.527 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5055, allocations: 0 / 0.5004 GB, free: 1.527 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001353/0.5057, allocations: 36 kB / 0.5005 GB, free: 1.492 MB / 378.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.002467/0.5082, allocations: 1.938 MB / 0.5024 GB, free: 15.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.5082, allocations: 12.03 kB / 0.5024 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000357/0.5086, allocations: 284.3 kB / 0.5027 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002823/0.5114, allocations: 1.884 MB / 0.5045 GB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.487e-05/0.5115, allocations: 46.47 kB / 0.5045 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.5116, allocations: 32 kB / 0.5046 GB, free: 13.19 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004856/0.5121, allocations: 273.5 kB / 0.5048 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005144/0.5127, allocations: 318.2 kB / 0.5051 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.5127, allocations: 4 kB / 0.5051 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.5127, allocations: 0 / 0.5051 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.5127, allocations: 8 kB / 0.5051 GB, free: 12.58 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004152/0.5169, allocations: 3.013 MB / 0.5081 GB, free: 9.484 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004022/0.5173, allocations: 282 kB / 0.5084 GB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002001/0.5175, allocations: 141.6 kB / 0.5085 GB, free: 9.047 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.866e-05/0.5176, allocations: 4 kB / 0.5085 GB, free: 9.043 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.5176, allocations: 43.56 kB / 0.5085 GB, free: 8.992 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 1.763e-06/0.5176, allocations: 0 / 0.5085 GB, free: 8.992 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.003411/0.521, allocations: 2.057 MB / 0.5105 GB, free: 6.859 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.5211, allocations: 81.55 kB / 0.5106 GB, free: 6.762 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008348/0.5295, allocations: 4.694 MB / 0.5152 GB, free: 2.066 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.6e-05/0.5296, allocations: 25.7 kB / 0.5152 GB, free: 2.035 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.5306, allocations: 1.152 MB / 0.5164 GB, free: 0.875 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.5308, allocations: 173.4 kB / 0.5165 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.068e-05/0.5308, allocations: 0 / 0.5165 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.5309, allocations: 326 kB / 0.5168 GB, free: 388 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.5311, allocations: 121.1 kB / 0.5169 GB, free: 264 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002625/0.5314, allocations: 195.8 kB / 0.5171 GB, free: 44 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002687/0.5317, allocations: 148.8 kB / 0.5173 GB, free: 15.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.5317, allocations: 3.953 kB / 0.5173 GB, free: 15.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00247/0.5342, allocations: 1.016 MB / 0.5183 GB, free: 14.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.5342, allocations: 7.953 kB / 0.5183 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.5342, allocations: 4 kB / 0.5183 GB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004434/0.5347, allocations: 136.8 kB / 0.5184 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003944/0.5351, allocations: 91.88 kB / 0.5185 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007316/0.5358, allocations: 0.768 MB / 0.5193 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005153/0.5363, allocations: 12 kB / 0.5193 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.144e-05/0.5364, allocations: 16.06 kB / 0.5193 GB, free: 13.8 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001601/0.5365, allocations: 131.3 kB / 0.5194 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009741/0.5375, allocations: 0.6302 MB / 0.52 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003479/0.5379, allocations: 292.4 kB / 0.5203 GB, free: 12.74 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.5392, allocations: 0.7198 MB / 0.521 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.5392, allocations: 7.953 kB / 0.521 GB, free: 12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.5392, allocations: 4 kB / 0.521 GB, free: 12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.5393, allocations: 7.984 kB / 0.521 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001829/0.5411, allocations: 1.617 MB / 0.5226 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.5411, allocations: 0 / 0.5226 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004575/0.5416, allocations: 99.88 kB / 0.5227 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002391/0.5418, allocations: 92.78 kB / 0.5228 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.5419, allocations: 8 kB / 0.5228 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005029/0.5424, allocations: 0.6538 MB / 0.5234 GB, free: 9.457 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5424, allocations: 0 / 0.5234 GB, free: 9.457 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.5437, allocations: 1.032 MB / 0.5244 GB, free: 8.395 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000987/0.5447, allocations: 0.6695 MB / 0.5251 GB, free: 7.703 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.545, allocations: 11.95 kB / 0.5251 GB, free: 7.691 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004988/0.5455, allocations: 19.98 kB / 0.5251 GB, free: 7.672 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/0.5455, allocations: 28.39 kB / 0.5251 GB, free: 7.645 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.5456, allocations: 12 kB / 0.5252 GB, free: 7.633 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004393/0.55, allocations: 3.645 MB / 0.5287 GB, free: 3.996 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.55, allocations: 0 / 0.5287 GB, free: 3.996 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008693/0.5509, allocations: 312 kB / 0.529 GB, free: 3.691 MB / 410.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 () * 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.002313/0.5532, allocations: 1.88 MB / 0.5309 GB, free: 1.859 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000644/0.5538, allocations: 339.3 kB / 0.5312 GB, free: 1.531 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5539, allocations: 0 / 0.5312 GB, free: 1.531 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002966/0.5542, allocations: 189.5 kB / 0.5314 GB, free: 1.348 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000858/0.555, allocations: 175 kB / 0.5315 GB, free: 1.172 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008113/0.5632, allocations: 5.402 MB / 0.5368 GB, free: 11.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001554/0.5647, allocations: 1.856 MB / 0.5386 GB, free: 9.812 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006843/0.5654, allocations: 379.5 kB / 0.539 GB, free: 9.438 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001253/0.5667, allocations: 1.019 MB / 0.54 GB, free: 8.418 MB / 426.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5667, allocations: 0 / 0.54 GB, free: 8.418 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2997/0.8664, allocations: 39.42 MB / 0.5785 GB, free: 120.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.8666, allocations: 207.4 kB / 0.5787 GB, free: 120.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.89/3.757, allocations: 0 / 0.5787 GB, free: 120.1 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat