Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.304/1.304, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008052/0.0008052, allocations: 96.62 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002513/0.0002513, allocations: 8 kB / 328.4 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2084, allocations: 47.57 MB / 375.9 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09445/0.3029, allocations: 83.93 MB / 459.8 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.3032, allocations: 87.95 kB / 459.9 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09972/0.4029, allocations: 39.28 MB / 499.2 MB, free: 5.062 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.403, allocations: 0 / 499.2 MB, free: 5.062 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001247/0.4031, allocations: 36 kB / 499.2 MB, free: 5.027 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.003559/0.4067, allocations: 2.585 MB / 0.4901 GB, free: 2.375 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.4067, allocations: 8.031 kB / 0.4901 GB, free: 2.367 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.371e-05/0.4068, allocations: 74.53 kB / 0.4901 GB, free: 2.285 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003286/0.4072, allocations: 284.3 kB / 0.4904 GB, free: 2.004 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003014/0.4102, allocations: 1.908 MB / 0.4923 GB, free: 44 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1611/0.5713, allocations: 60.97 kB / 0.4923 GB, free: 102.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003245/0.5717, allocations: 45.3 kB / 0.4924 GB, free: 102.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009697/0.5727, allocations: 392.3 kB / 0.4928 GB, free: 102 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.5727, allocations: 1.719 kB / 0.4928 GB, free: 102 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.757e-05/0.5727, allocations: 14.84 kB / 0.4928 GB, free: 102 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.5728, allocations: 9.906 kB / 0.4928 GB, free: 102 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008324/0.5736, allocations: 326.8 kB / 0.4931 GB, free: 102 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005364/0.579, allocations: 3.102 MB / 0.4961 GB, free: 101.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005697/0.5796, allocations: 320.1 kB / 0.4964 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.35e-05/0.5796, allocations: 7 kB / 0.4964 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.5796, allocations: 40.09 kB / 0.4965 GB, free: 101.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.813e-06/0.5796, allocations: 2 kB / 0.4965 GB, free: 101.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.005038/0.5847, allocations: 2.545 MB / 0.499 GB, free: 100.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.5847, allocations: 86.17 kB / 0.499 GB, free: 100.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008024/0.5928, allocations: 4.883 MB / 0.5038 GB, free: 99.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.606e-05/0.5928, allocations: 33.7 kB / 0.5038 GB, free: 98.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007722/0.5936, allocations: 1.186 MB / 0.505 GB, free: 98.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.379e-05/0.5937, allocations: 166.4 kB / 0.5052 GB, free: 97.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.92e-05/0.5937, allocations: 10.41 kB / 0.5052 GB, free: 97.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.957e-05/0.5938, allocations: 328.3 kB / 0.5055 GB, free: 97.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002782/0.5941, allocations: 136.3 kB / 0.5056 GB, free: 97.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.5944, allocations: 213.6 kB / 0.5058 GB, free: 97.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002951/0.5947, allocations: 169.9 kB / 0.506 GB, free: 97.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.5947, allocations: 0 / 0.506 GB, free: 97.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009584/0.5956, allocations: 0.6797 MB / 0.5066 GB, free: 97.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.5957, allocations: 10.66 kB / 0.5067 GB, free: 97.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.5957, allocations: 3.312 kB / 0.5067 GB, free: 97.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.5957, allocations: 6.484 kB / 0.5067 GB, free: 97.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004588/0.5962, allocations: 121 kB / 0.5068 GB, free: 97.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.5962, allocations: 7.438 kB / 0.5068 GB, free: 97.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004234/0.5966, allocations: 26.14 kB / 0.5068 GB, free: 97.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.5967, allocations: 21.58 kB / 0.5068 GB, free: 97.09 MB / 378.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 (61): * Single equations (assignments): 61 * 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.0007693/0.5974, allocations: 0.9225 MB / 0.5077 GB, free: 96.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002927/0.5977, allocations: 283.2 kB / 0.508 GB, free: 96.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.5989, allocations: 0.7769 MB / 0.5088 GB, free: 96.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.5989, allocations: 3.594 kB / 0.5088 GB, free: 96.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.5989, allocations: 0 / 0.5088 GB, free: 96.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.5989, allocations: 7.016 kB / 0.5088 GB, free: 96.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/0.6003, allocations: 1.708 MB / 0.5104 GB, free: 95.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.6003, allocations: 3.688 kB / 0.5104 GB, free: 95.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.6008, allocations: 95.95 kB / 0.5105 GB, free: 95.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002721/0.601, allocations: 83.59 kB / 0.5106 GB, free: 95.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.6011, allocations: 11.56 kB / 0.5106 GB, free: 95.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004096/0.6015, allocations: 0.6468 MB / 0.5113 GB, free: 95.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6015, allocations: 4.906 kB / 0.5113 GB, free: 95.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.6028, allocations: 1.097 MB / 0.5123 GB, free: 94.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.6041, allocations: 0.6707 MB / 0.513 GB, free: 94.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/0.6043, allocations: 21.22 kB / 0.513 GB, free: 94.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004764/0.6048, allocations: 26.64 kB / 0.513 GB, free: 94.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.231e-05/0.6049, allocations: 28.36 kB / 0.5131 GB, free: 94.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.6049, allocations: 17.45 kB / 0.5131 GB, free: 94.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003534/0.6084, allocations: 3.845 MB / 0.5168 GB, free: 92.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6084, allocations: 1.969 kB / 0.5168 GB, free: 92.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000751/0.6092, allocations: 329.2 kB / 0.5171 GB, free: 92.69 MB / 378.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.002258/0.6115, allocations: 2.031 MB / 0.5191 GB, free: 91.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006173/0.6121, allocations: 373.6 kB / 0.5195 GB, free: 91.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.6121, allocations: 0 / 0.5195 GB, free: 91.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003587/0.6125, allocations: 215.6 kB / 0.5197 GB, free: 91.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007269/0.6132, allocations: 186.1 kB / 0.5199 GB, free: 91.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02646/0.6397, allocations: 21.01 MB / 0.5404 GB, free: 71.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/0.641, allocations: 1.86 MB / 0.5422 GB, free: 70 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006987/0.6417, allocations: 391 kB / 0.5426 GB, free: 69.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009933/0.6427, allocations: 1.019 MB / 0.5436 GB, free: 68.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6427, allocations: 0 / 0.5436 GB, free: 68.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06068/0.7034, allocations: 45.85 MB / 0.5883 GB, free: 22.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/0.7036, allocations: 288.4 kB / 0.5886 GB, free: 22.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.838/3.541, allocations: 0 / 0.5886 GB, free: 22.32 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat