Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 180.2 kB / 16.38 MB, free: 5.762 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.293/1.293, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008608/0.0008608, allocations: 96 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002441/0.0002442, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2653, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1093/0.3746, allocations: 86.54 MB / 488.1 MB, free: 9.918 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.3749, allocations: 93.98 kB / 488.2 MB, free: 9.828 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2919/0.6668, allocations: 39.73 MB / 0.5156 GB, free: 97.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6669, allocations: 0 / 0.5156 GB, free: 97.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001425/0.667, allocations: 40.31 kB / 0.5156 GB, free: 97.73 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.003946/0.671, allocations: 2.596 MB / 0.5182 GB, free: 95.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.671, allocations: 12.03 kB / 0.5182 GB, free: 95.38 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.835e-05/0.6711, allocations: 78.52 kB / 0.5182 GB, free: 95.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003704/0.6715, allocations: 287.1 kB / 0.5185 GB, free: 95.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00313/0.6746, allocations: 1.89 MB / 0.5204 GB, free: 93.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.755e-05/0.6747, allocations: 58.7 kB / 0.5204 GB, free: 93.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.6749, allocations: 55.89 kB / 0.5205 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006231/0.6755, allocations: 394.9 kB / 0.5208 GB, free: 92.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.6756, allocations: 7.891 kB / 0.5209 GB, free: 92.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.6756, allocations: 23.84 kB / 0.5209 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.6756, allocations: 8 kB / 0.5209 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005788/0.6762, allocations: 323.8 kB / 0.5212 GB, free: 92.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004471/0.6807, allocations: 3.105 MB / 0.5242 GB, free: 89.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005474/0.6812, allocations: 314 kB / 0.5245 GB, free: 88.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.6813, allocations: 12 kB / 0.5245 GB, free: 88.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.6813, allocations: 34.56 kB / 0.5246 GB, free: 88.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.595e-06/0.6813, allocations: 0 / 0.5246 GB, free: 88.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.005147/0.6865, allocations: 2.576 MB / 0.5271 GB, free: 86.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.6866, allocations: 85.48 kB / 0.5272 GB, free: 85.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008528/0.6951, allocations: 4.887 MB / 0.5319 GB, free: 81.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.6952, allocations: 37.64 kB / 0.532 GB, free: 81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008921/0.6961, allocations: 1.183 MB / 0.5331 GB, free: 79.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.6963, allocations: 169.5 kB / 0.5333 GB, free: 79.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.129e-05/0.6963, allocations: 12 kB / 0.5333 GB, free: 79.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.135e-05/0.6964, allocations: 322 kB / 0.5336 GB, free: 79.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002991/0.6967, allocations: 145 kB / 0.5337 GB, free: 79.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.697, allocations: 208.8 kB / 0.5339 GB, free: 78.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000312/0.6973, allocations: 164.7 kB / 0.5341 GB, free: 78.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.6973, allocations: 4 kB / 0.5341 GB, free: 78.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001544/0.6989, allocations: 0.6801 MB / 0.5348 GB, free: 78.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.6989, allocations: 7.125 kB / 0.5348 GB, free: 78.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.6989, allocations: 4 kB / 0.5348 GB, free: 78.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.6989, allocations: 4 kB / 0.5348 GB, free: 78.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.6994, allocations: 119.8 kB / 0.5349 GB, free: 77.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/0.6995, allocations: 12.17 kB / 0.5349 GB, free: 77.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008511/0.7003, allocations: 23.98 kB / 0.5349 GB, free: 77.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.7004, allocations: 20 kB / 0.535 GB, free: 77.92 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.001297/0.7017, allocations: 0.922 MB / 0.5359 GB, free: 76.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006811/0.7024, allocations: 284.4 kB / 0.5361 GB, free: 76.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001655/0.704, allocations: 0.8001 MB / 0.5369 GB, free: 75.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.704, allocations: 4 kB / 0.5369 GB, free: 75.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.7041, allocations: 0 / 0.5369 GB, free: 75.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.7041, allocations: 7.984 kB / 0.5369 GB, free: 75.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002552/0.7066, allocations: 1.706 MB / 0.5386 GB, free: 74.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.7067, allocations: 3.938 kB / 0.5386 GB, free: 74.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004382/0.7071, allocations: 95.89 kB / 0.5387 GB, free: 74.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003765/0.7075, allocations: 96.69 kB / 0.5388 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.7075, allocations: 8 kB / 0.5388 GB, free: 73.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005843/0.7081, allocations: 0.6435 MB / 0.5394 GB, free: 73.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.7081, allocations: 3.953 kB / 0.5394 GB, free: 73.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.7099, allocations: 1.114 MB / 0.5405 GB, free: 72.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/0.7116, allocations: 0.6694 MB / 0.5412 GB, free: 71.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000372/0.7119, allocations: 12 kB / 0.5412 GB, free: 71.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006244/0.7126, allocations: 31.98 kB / 0.5412 GB, free: 71.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/0.7127, allocations: 32.39 kB / 0.5412 GB, free: 71.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.7127, allocations: 19.95 kB / 0.5412 GB, free: 71.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00595/0.7187, allocations: 3.844 MB / 0.545 GB, free: 67.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7187, allocations: 0 / 0.545 GB, free: 67.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001193/0.7199, allocations: 327.9 kB / 0.5453 GB, free: 67.18 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.002786/0.7227, allocations: 2.046 MB / 0.5473 GB, free: 65.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000731/0.7234, allocations: 385.1 kB / 0.5477 GB, free: 64.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.7234, allocations: 0 / 0.5477 GB, free: 64.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000402/0.7238, allocations: 206.4 kB / 0.5479 GB, free: 64.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.7251, allocations: 185 kB / 0.5481 GB, free: 64.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03698/0.7621, allocations: 21.01 MB / 0.5686 GB, free: 42.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001213/0.7634, allocations: 1.861 MB / 0.5704 GB, free: 40.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009257/0.7643, allocations: 387.6 kB / 0.5708 GB, free: 39.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/0.7653, allocations: 1.023 MB / 0.5718 GB, free: 38.85 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.7653, allocations: 0 / 0.5718 GB, free: 38.85 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0698/0.8351, allocations: 45.84 MB / 0.6165 GB, free: 9.309 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002283/0.8354, allocations: 303 kB / 0.6168 GB, free: 8.941 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.067/3.903, allocations: 0 / 0.6168 GB, free: 8.941 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat