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.0009752/0.0009753, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.401/1.401, allocations: 221.3 MB / 235.5 MB, free: 2.898 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.0009239/0.0009241, allocations: 91.86 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.399e-05/2.404e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 50.42 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3543/0.4551, allocations: 93.01 MB / 487.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.4554, allocations: 89.69 kB / 487.5 MB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0465/0.5019, allocations: 15.88 MB / 0.4915 GB, free: 10.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.502, allocations: 0 / 0.4915 GB, free: 10.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.461e-05/0.502, allocations: 20 kB / 0.4916 GB, free: 10.37 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.002073/0.5041, allocations: 0.866 MB / 0.4924 GB, free: 9.457 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.5042, allocations: 8.031 kB / 0.4924 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001836/0.5044, allocations: 98.52 kB / 0.4925 GB, free: 9.344 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.5046, allocations: 79.06 kB / 0.4926 GB, free: 9.266 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009222/0.5055, allocations: 486.1 kB / 0.493 GB, free: 8.746 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.5057, allocations: 75.02 kB / 0.4931 GB, free: 8.668 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/0.5059, allocations: 71.88 kB / 0.4932 GB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.507, allocations: 0.5747 MB / 0.4937 GB, free: 8.004 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.325e-05/0.507, allocations: 0 / 0.4937 GB, free: 8.004 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.515e-05/0.5071, allocations: 20 kB / 0.4938 GB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/0.5071, allocations: 16 kB / 0.4938 GB, free: 7.969 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009359/0.508, allocations: 481.1 kB / 0.4942 GB, free: 7.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004103/0.5122, allocations: 2.33 MB / 0.4965 GB, free: 5.055 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007366/0.5129, allocations: 435.3 kB / 0.4969 GB, free: 4.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004165/0.5134, allocations: 242.2 kB / 0.4972 GB, free: 4.363 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.5134, allocations: 4 kB / 0.4972 GB, free: 4.359 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.5135, allocations: 46.5 kB / 0.4972 GB, free: 4.305 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.585e-06/0.5135, allocations: 0 / 0.4972 GB, free: 4.305 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.01143/0.5249, allocations: 3.013 MB / 0.5001 GB, free: 1.234 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.525, allocations: 85.67 kB / 0.5002 GB, free: 1.129 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008436/0.5259, allocations: 487.8 kB / 0.5007 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.304e-05/0.5259, allocations: 37.7 kB / 0.5007 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002275/0.5262, allocations: 300.4 kB / 0.501 GB, free: 312 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002021/0.5264, allocations: 220.8 kB / 0.5012 GB, free: 88 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.5264, allocations: 12 kB / 0.5012 GB, free: 76 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.5266, allocations: 362.8 kB / 0.5016 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000425/0.5271, allocations: 225.5 kB / 0.5018 GB, free: 15.49 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004805/0.5275, allocations: 324.8 kB / 0.5021 GB, free: 15.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004622/0.528, allocations: 255.2 kB / 0.5024 GB, free: 14.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.528, allocations: 0 / 0.5024 GB, free: 14.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0068/0.5348, allocations: 1.787 MB / 0.5041 GB, free: 13.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.5349, allocations: 12.03 kB / 0.5041 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.5349, allocations: 0 / 0.5041 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006138/0.5411, allocations: 1.164 MB / 0.5052 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004862/0.5416, allocations: 95.89 kB / 0.5053 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01288/0.5545, allocations: 5.766 MB / 0.511 GB, free: 5.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007799/0.5553, allocations: 48.05 kB / 0.511 GB, free: 5.863 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.5555, allocations: 27.97 kB / 0.511 GB, free: 5.836 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002308/0.5557, allocations: 140.8 kB / 0.5112 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.5559, allocations: 59.34 kB / 0.5112 GB, free: 5.633 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/0.5575, allocations: 0.7749 MB / 0.512 GB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.5575, allocations: 4 kB / 0.512 GB, free: 4.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.5576, allocations: 4 kB / 0.512 GB, free: 4.836 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.5576, allocations: 3.984 kB / 0.512 GB, free: 4.832 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003615/0.5612, allocations: 1.828 MB / 0.5138 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.5612, allocations: 0 / 0.5138 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005515/0.5618, allocations: 119.8 kB / 0.5139 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001622/0.5634, allocations: 344.4 kB / 0.5142 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.064e-05/0.5635, allocations: 12 kB / 0.5142 GB, free: 2.473 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004422/0.5679, allocations: 2.798 MB / 0.517 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.568, allocations: 3.953 kB / 0.517 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002316/0.5703, allocations: 1.271 MB / 0.5182 GB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000327/0.5706, allocations: 216.2 kB / 0.5184 GB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.5707, allocations: 12 kB / 0.5184 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006177/0.5714, allocations: 47.97 kB / 0.5185 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.5715, allocations: 52.48 kB / 0.5185 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.5716, allocations: 16 kB / 0.5185 GB, free: 13.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004711/0.572, allocations: 381.6 kB / 0.5189 GB, free: 13.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.572, allocations: 0 / 0.5189 GB, free: 13.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008712/0.5729, allocations: 220 kB / 0.5191 GB, free: 13.3 MB / 410.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.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete 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.002817/0.5758, allocations: 1.951 MB / 0.521 GB, free: 11.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.5772, allocations: 0.8104 MB / 0.5218 GB, free: 10.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.5772, allocations: 4 kB / 0.5218 GB, free: 10.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007263/0.5779, allocations: 0.4906 MB / 0.5223 GB, free: 9.992 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005326/0.5785, allocations: 85.84 kB / 0.5224 GB, free: 9.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002616/0.5811, allocations: 1.247 MB / 0.5236 GB, free: 8.625 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004662/0.5816, allocations: 0.9199 MB / 0.5245 GB, free: 7.68 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003133/0.5819, allocations: 64.75 kB / 0.5246 GB, free: 7.613 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003392/0.5823, allocations: 231.3 kB / 0.5248 GB, free: 7.387 MB / 410.7 MB Notification: Performance of SimCode: time 7.42e-07/0.5823, allocations: 0 / 0.5248 GB, free: 7.387 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03734/0.6196, allocations: 17.89 MB / 0.5423 GB, free: 5.793 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/0.6198, allocations: 217.4 kB / 0.5425 GB, free: 5.566 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.439/3.059, allocations: 10.86 kB / 0.5425 GB, free: 5.559 MB / 426.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