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.001093/0.001093, allocations: 199.1 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 227.2 MB / 245 MB, free: 5.77 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008878/0.0008877, allocations: 106 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002417/0.0002417, allocations: 8 kB / 358 MB, free: 9.211 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.2204, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1136/0.334, allocations: 93.9 MB / 0.4916 GB, free: 12.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.3344, allocations: 83.95 kB / 0.4917 GB, free: 12.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2156/0.5499, allocations: 16.01 MB / 0.5073 GB, free: 93 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.55, allocations: 0 / 0.5073 GB, free: 93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.638e-05/0.55, allocations: 12 kB / 0.5073 GB, free: 93 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.002076/0.5521, allocations: 0.9769 MB / 0.5083 GB, free: 92.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.5521, allocations: 9.625 kB / 0.5083 GB, free: 92.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001477/0.5523, allocations: 101.3 kB / 0.5084 GB, free: 92.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002393/0.5525, allocations: 91.55 kB / 0.5085 GB, free: 92.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006861/0.5532, allocations: 0.4892 MB / 0.509 GB, free: 92.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.872e-05/0.5533, allocations: 74.97 kB / 0.509 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/0.5535, allocations: 64.83 kB / 0.5091 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.5545, allocations: 0.6027 MB / 0.5097 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.5546, allocations: 0.6875 kB / 0.5097 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.654e-05/0.5546, allocations: 24 kB / 0.5097 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.5547, allocations: 13.38 kB / 0.5097 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.5558, allocations: 0.5265 MB / 0.5102 GB, free: 91.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002829/0.5587, allocations: 2.329 MB / 0.5125 GB, free: 91.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000808/0.5595, allocations: 494 kB / 0.513 GB, free: 90.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.5595, allocations: 11.09 kB / 0.513 GB, free: 90.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.5595, allocations: 34.56 kB / 0.513 GB, free: 90.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.395e-06/0.5596, allocations: 0 / 0.513 GB, free: 90.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.01295/0.5725, allocations: 3.696 MB / 0.5166 GB, free: 89.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.5726, allocations: 84.17 kB / 0.5167 GB, free: 89.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005742/0.5731, allocations: 492.7 kB / 0.5172 GB, free: 88.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.348e-05/0.5732, allocations: 36.45 kB / 0.5172 GB, free: 88.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.5733, allocations: 305.5 kB / 0.5175 GB, free: 88.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.5735, allocations: 211.8 kB / 0.5177 GB, free: 88.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/0.5735, allocations: 12 kB / 0.5177 GB, free: 88.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.973e-05/0.5736, allocations: 378.7 kB / 0.5181 GB, free: 88.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004779/0.5741, allocations: 251.7 kB / 0.5183 GB, free: 88.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.5746, allocations: 349.6 kB / 0.5187 GB, free: 87.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005157/0.5751, allocations: 285.5 kB / 0.5189 GB, free: 87.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.5751, allocations: 3.938 kB / 0.5189 GB, free: 87.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001363/0.5765, allocations: 0.7486 MB / 0.5197 GB, free: 87.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.5765, allocations: 9.531 kB / 0.5197 GB, free: 87.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.5765, allocations: 3 kB / 0.5197 GB, free: 87.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002011/0.5767, allocations: 34.09 kB / 0.5197 GB, free: 87.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008309/0.5776, allocations: 171.7 kB / 0.5199 GB, free: 87.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007186/0.5783, allocations: 1.347 MB / 0.5212 GB, free: 86.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000657/0.579, allocations: 42.12 kB / 0.5212 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.642e-05/0.579, allocations: 23.14 kB / 0.5212 GB, free: 86.05 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.0003272/0.5794, allocations: 204.2 kB / 0.5214 GB, free: 85.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.5795, allocations: 55.03 kB / 0.5215 GB, free: 85.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.5811, allocations: 0.8685 MB / 0.5223 GB, free: 85.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.5812, allocations: 9.453 kB / 0.5224 GB, free: 85.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.5812, allocations: 0 / 0.5224 GB, free: 85.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.5812, allocations: 7.734 kB / 0.5224 GB, free: 85.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.5845, allocations: 1.882 MB / 0.5242 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.5846, allocations: 0 / 0.5242 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005644/0.5851, allocations: 111.6 kB / 0.5243 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002508/0.5877, allocations: 0.4993 MB / 0.5248 GB, free: 84.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.228e-05/0.5877, allocations: 19.42 kB / 0.5248 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004321/0.5921, allocations: 3.014 MB / 0.5278 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5921, allocations: 0 / 0.5278 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002908/0.595, allocations: 1.429 MB / 0.5292 GB, free: 80.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000338/0.5954, allocations: 213.8 kB / 0.5294 GB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.5955, allocations: 12 kB / 0.5294 GB, free: 79.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006835/0.5962, allocations: 54.22 kB / 0.5294 GB, free: 79.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.5963, allocations: 48.53 kB / 0.5295 GB, free: 79.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.252e-05/0.5964, allocations: 19.94 kB / 0.5295 GB, free: 79.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004392/0.5968, allocations: 384.8 kB / 0.5299 GB, free: 79.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5968, allocations: 0 / 0.5299 GB, free: 79.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000746/0.5976, allocations: 199.8 kB / 0.53 GB, free: 79.23 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.00295/0.6006, allocations: 2.099 MB / 0.5321 GB, free: 77.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.6018, allocations: 0.7514 MB / 0.5328 GB, free: 76.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.6019, allocations: 0 / 0.5328 GB, free: 76.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007728/0.6026, allocations: 0.5305 MB / 0.5333 GB, free: 76.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005503/0.6032, allocations: 79.31 kB / 0.5334 GB, free: 75.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006299/0.6095, allocations: 5.688 MB / 0.539 GB, free: 70.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.6098, allocations: 0.9123 MB / 0.5399 GB, free: 69.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003552/0.6102, allocations: 72.7 kB / 0.5399 GB, free: 69.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.6105, allocations: 243.3 kB / 0.5402 GB, free: 69.35 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.6105, allocations: 0 / 0.5402 GB, free: 69.35 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.6392, allocations: 15.02 MB / 0.5548 GB, free: 54.69 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001798/0.6394, allocations: 256.9 kB / 0.5551 GB, free: 54.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.168/2.807, allocations: 0 / 0.5551 GB, free: 54.36 MB / 378.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