Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",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.0009558/0.0009557, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 91.86 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.000317, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2511, allocations: 50.41 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.3589, allocations: 93.09 MB / 494.7 MB, free: 3.305 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/0.3592, allocations: 87.95 kB / 494.8 MB, free: 3.219 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04618/0.4054, allocations: 15.9 MB / 0.4987 GB, free: 3.242 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.077e-06/0.4054, allocations: 0 / 0.4987 GB, free: 3.242 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.38e-05/0.4055, allocations: 16 kB / 0.4987 GB, free: 3.227 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002001/0.4075, allocations: 0.9745 MB / 0.4997 GB, free: 2.203 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.4075, allocations: 8.031 kB / 0.4997 GB, free: 2.195 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001249/0.4076, allocations: 98.52 kB / 0.4998 GB, free: 2.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.4078, allocations: 83.05 kB / 0.4998 GB, free: 2.008 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000703/0.4085, allocations: 498 kB / 0.5003 GB, free: 1.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.27e-05/0.4086, allocations: 71.02 kB / 0.5004 GB, free: 1.402 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001864/0.4088, allocations: 71.94 kB / 0.5005 GB, free: 1.332 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.4099, allocations: 0.6058 MB / 0.501 GB, free: 0.707 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.4099, allocations: 0 / 0.501 GB, free: 0.707 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.401e-05/0.41, allocations: 20 kB / 0.5011 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.41, allocations: 16 kB / 0.5011 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.4111, allocations: 0.5321 MB / 0.5016 GB, free: 144 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1821/0.5932, allocations: 2.322 MB / 0.5039 GB, free: 95.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.5943, allocations: 0.4891 MB / 0.5043 GB, free: 94.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.5943, allocations: 15.67 kB / 0.5044 GB, free: 94.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.5943, allocations: 42.56 kB / 0.5044 GB, free: 94.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.625e-06/0.5944, allocations: 0 / 0.5044 GB, free: 94.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.0137/0.6081, allocations: 3.689 MB / 0.508 GB, free: 94.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.6081, allocations: 89.14 kB / 0.5081 GB, free: 94.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005918/0.6087, allocations: 486.2 kB / 0.5086 GB, free: 94.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.6088, allocations: 31.33 kB / 0.5086 GB, free: 94.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/0.609, allocations: 318.9 kB / 0.5089 GB, free: 93.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.6092, allocations: 205.5 kB / 0.5091 GB, free: 93.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.563e-05/0.6092, allocations: 16.41 kB / 0.5091 GB, free: 93.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.429e-05/0.6093, allocations: 362.9 kB / 0.5094 GB, free: 93.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004926/0.6098, allocations: 258.9 kB / 0.5097 GB, free: 93.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005441/0.6104, allocations: 346.5 kB / 0.51 GB, free: 93.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005487/0.6109, allocations: 294.1 kB / 0.5103 GB, free: 93.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.6109, allocations: 3.75 kB / 0.5103 GB, free: 93.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001322/0.6123, allocations: 0.7528 MB / 0.511 GB, free: 92.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.6123, allocations: 6.438 kB / 0.511 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.6123, allocations: 3.812 kB / 0.511 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001635/0.6125, allocations: 31.98 kB / 0.5111 GB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008614/0.6133, allocations: 169.7 kB / 0.5112 GB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007569/0.6141, allocations: 1.339 MB / 0.5125 GB, free: 91.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006226/0.6147, allocations: 40.12 kB / 0.5126 GB, free: 91.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.6148, allocations: 29.2 kB / 0.5126 GB, free: 91.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003117/0.6151, allocations: 195.3 kB / 0.5128 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.6153, allocations: 66.08 kB / 0.5129 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001754/0.617, allocations: 0.8639 MB / 0.5137 GB, free: 90.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.617, allocations: 11.72 kB / 0.5137 GB, free: 90.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.617, allocations: 2.516 kB / 0.5137 GB, free: 90.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.6171, allocations: 3.469 kB / 0.5137 GB, free: 90.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003544/0.6206, allocations: 1.882 MB / 0.5156 GB, free: 90.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.6206, allocations: 0 / 0.5156 GB, free: 90.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000527/0.6212, allocations: 108.5 kB / 0.5157 GB, free: 90.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002442/0.6236, allocations: 0.5011 MB / 0.5162 GB, free: 89.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.921e-05/0.6237, allocations: 20.23 kB / 0.5162 GB, free: 89.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00427/0.628, allocations: 3.022 MB / 0.5191 GB, free: 87.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.628, allocations: 0 / 0.5191 GB, free: 87.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002812/0.6308, allocations: 1.424 MB / 0.5205 GB, free: 87.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004347/0.6313, allocations: 205.5 kB / 0.5207 GB, free: 86.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.956e-05/0.6314, allocations: 15.7 kB / 0.5207 GB, free: 86.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006354/0.632, allocations: 49.08 kB / 0.5208 GB, free: 86.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.6322, allocations: 54.58 kB / 0.5208 GB, free: 86.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-05/0.6322, allocations: 19 kB / 0.5208 GB, free: 86.83 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005384/0.6328, allocations: 383.4 kB / 0.5212 GB, free: 86.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6328, allocations: 0 / 0.5212 GB, free: 86.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000948/0.6338, allocations: 198 kB / 0.5214 GB, free: 86.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.003387/0.6371, allocations: 2.107 MB / 0.5235 GB, free: 85.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.6386, allocations: 0.7454 MB / 0.5242 GB, free: 84.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.6386, allocations: 0 / 0.5242 GB, free: 84.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007619/0.6394, allocations: 0.5356 MB / 0.5247 GB, free: 84.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005209/0.6399, allocations: 82.22 kB / 0.5248 GB, free: 84.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006055/0.646, allocations: 5.682 MB / 0.5303 GB, free: 78.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.6463, allocations: 0.9118 MB / 0.5312 GB, free: 77.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003705/0.6467, allocations: 76.25 kB / 0.5313 GB, free: 77.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/0.647, allocations: 236.9 kB / 0.5315 GB, free: 77.68 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.647, allocations: 0 / 0.5315 GB, free: 77.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.6737, allocations: 15.01 MB / 0.5462 GB, free: 64.56 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.6739, allocations: 252.1 kB / 0.5464 GB, free: 64.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.181/2.855, allocations: 0 / 0.5464 GB, free: 64.23 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat