Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001642/0.001643, allocations: 193.9 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008898/0.0008898, allocations: 99.52 kB / 286.7 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.22e-05/2.213e-05, allocations: 0 / 343.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 51.48 MB / 395.3 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.354/0.4637, allocations: 93.18 MB / 488.4 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001843/0.4639, allocations: 81.83 kB / 488.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04406/0.508, allocations: 15.79 MB / 0.4925 GB, free: 2.859 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5081, allocations: 4 kB / 0.4925 GB, free: 2.855 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.389e-05/0.5081, allocations: 12 kB / 0.4925 GB, free: 2.844 MB / 362.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.002149/0.5103, allocations: 0.8567 MB / 0.4933 GB, free: 1.984 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.5103, allocations: 12.02 kB / 0.4934 GB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000408/0.5108, allocations: 87.06 kB / 0.4934 GB, free: 1.887 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.5118, allocations: 496.4 kB / 0.4939 GB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.676e-05/0.5119, allocations: 58.61 kB / 0.494 GB, free: 1.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002149/0.5122, allocations: 47.34 kB / 0.494 GB, free: 1.367 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009112/0.5131, allocations: 459.3 kB / 0.4945 GB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008838/0.514, allocations: 491.6 kB / 0.4949 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.514, allocations: 4 kB / 0.4949 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.742e-05/0.5141, allocations: 0 / 0.4949 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.5141, allocations: 12 kB / 0.4949 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003737/0.5178, allocations: 2.223 MB / 0.4971 GB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006465/0.5185, allocations: 409.4 kB / 0.4975 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003493/0.5189, allocations: 223 kB / 0.4977 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.5189, allocations: 8 kB / 0.4977 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.5189, allocations: 44.38 kB / 0.4978 GB, free: 14.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.876e-06/0.519, allocations: 0 / 0.4978 GB, free: 14.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.00837/0.5273, allocations: 2.548 MB / 0.5002 GB, free: 12.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.5274, allocations: 85.67 kB / 0.5003 GB, free: 12.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.528, allocations: 434.3 kB / 0.5007 GB, free: 11.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.967e-05/0.528, allocations: 25.7 kB / 0.5008 GB, free: 11.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.5282, allocations: 311.6 kB / 0.5011 GB, free: 11.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.5284, allocations: 204.4 kB / 0.5013 GB, free: 11.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.448e-05/0.5284, allocations: 0 / 0.5013 GB, free: 11.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.5286, allocations: 370.7 kB / 0.5016 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003373/0.5289, allocations: 210 kB / 0.5018 GB, free: 11.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003678/0.5293, allocations: 295.5 kB / 0.5021 GB, free: 10.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.5297, allocations: 252.4 kB / 0.5023 GB, free: 10.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.5297, allocations: 7.891 kB / 0.5023 GB, free: 10.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006618/0.5363, allocations: 1.722 MB / 0.504 GB, free: 9.035 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/0.5364, allocations: 4.125 kB / 0.504 GB, free: 9.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.5364, allocations: 8 kB / 0.504 GB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006136/0.5426, allocations: 1.156 MB / 0.5052 GB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004629/0.5431, allocations: 99.84 kB / 0.5053 GB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/0.5551, allocations: 5.637 MB / 0.5108 GB, free: 1.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006797/0.5558, allocations: 31.98 kB / 0.5108 GB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.631e-05/0.5559, allocations: 23.98 kB / 0.5108 GB, free: 1.938 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real 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.0002336/0.5561, allocations: 126 kB / 0.5109 GB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002605/0.5588, allocations: 0.8816 MB / 0.5118 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/0.5589, allocations: 60.45 kB / 0.5119 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.5602, allocations: 0.7087 MB / 0.5126 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.5602, allocations: 8 kB / 0.5126 GB, free: 132 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.5602, allocations: 0 / 0.5126 GB, free: 132 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/0.5602, allocations: 3.984 kB / 0.5126 GB, free: 128 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003213/0.5635, allocations: 1.692 MB / 0.5142 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.5635, allocations: 0 / 0.5142 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005461/0.564, allocations: 111.9 kB / 0.5143 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001637/0.5657, allocations: 344.4 kB / 0.5147 GB, free: 13.94 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.314e-05/0.5657, allocations: 7.984 kB / 0.5147 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003913/0.5697, allocations: 2.729 MB / 0.5173 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.5697, allocations: 4.031 kB / 0.5173 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.5719, allocations: 1.226 MB / 0.5185 GB, free: 9.832 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003088/0.5722, allocations: 200.4 kB / 0.5187 GB, free: 9.617 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.5723, allocations: 7.938 kB / 0.5187 GB, free: 9.609 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006577/0.573, allocations: 35.97 kB / 0.5188 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.5731, allocations: 56.44 kB / 0.5188 GB, free: 9.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.482e-05/0.5731, allocations: 16 kB / 0.5188 GB, free: 9.504 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003994/0.5736, allocations: 343 kB / 0.5192 GB, free: 9.172 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5736, allocations: 0 / 0.5192 GB, free: 9.172 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008933/0.5745, allocations: 196.1 kB / 0.5193 GB, free: 8.98 MB / 394.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.002636/0.5771, allocations: 1.884 MB / 0.5212 GB, free: 7.062 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.5784, allocations: 0.7635 MB / 0.5219 GB, free: 6.289 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5784, allocations: 0 / 0.5219 GB, free: 6.289 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006541/0.5791, allocations: 475.9 kB / 0.5224 GB, free: 5.816 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.5796, allocations: 51.75 kB / 0.5224 GB, free: 5.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.5821, allocations: 1.17 MB / 0.5236 GB, free: 4.559 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004823/0.5826, allocations: 0.9233 MB / 0.5245 GB, free: 3.605 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002874/0.5829, allocations: 56.55 kB / 0.5245 GB, free: 3.551 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000319/0.5832, allocations: 227.3 kB / 0.5247 GB, free: 3.328 MB / 394.7 MB Notification: Performance of SimCode: time 4.1e-07/0.5832, allocations: 0 / 0.5247 GB, free: 3.328 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03999/0.6232, allocations: 15.78 MB / 0.5402 GB, free: 3.73 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.6234, allocations: 182.7 kB / 0.5403 GB, free: 3.539 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.217/2.84, allocations: 0 / 0.5403 GB, free: 3.539 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat