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.0009833/0.0009832, allocations: 169.2 kB / 13.64 MB, free: 1.672 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.384/1.384, allocations: 221.3 MB / 235.5 MB, free: 2.871 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.0008528/0.0008528, allocations: 88.05 kB / 286.5 MB, free: 168 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.733e-05/2.735e-05, allocations: 4 kB / 343.9 MB, free: 4.18 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1114, allocations: 50.41 MB / 394.3 MB, free: 1.73 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3467/0.4582, allocations: 86.48 MB / 480.8 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.4585, allocations: 83.95 kB / 480.9 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07776/0.5363, allocations: 39.73 MB / 0.5084 GB, free: 8.867 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5363, allocations: 192 / 0.5084 GB, free: 8.867 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001451/0.5365, allocations: 35.94 kB / 0.5085 GB, free: 8.832 MB / 394.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.002789/0.5393, allocations: 1.928 MB / 0.5103 GB, free: 6.848 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.5393, allocations: 12.03 kB / 0.5104 GB, free: 6.836 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.244e-05/0.5394, allocations: 74.53 kB / 0.5104 GB, free: 6.754 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004217/0.5398, allocations: 292.3 kB / 0.5107 GB, free: 6.465 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003165/0.543, allocations: 1.884 MB / 0.5125 GB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.414e-05/0.5431, allocations: 58.48 kB / 0.5126 GB, free: 4.465 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001634/0.5433, allocations: 43.98 kB / 0.5126 GB, free: 4.422 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006029/0.5439, allocations: 367.8 kB / 0.513 GB, free: 4.043 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.5439, allocations: 3.938 kB / 0.513 GB, free: 4.039 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.182e-05/0.544, allocations: 20 kB / 0.513 GB, free: 4.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.544, allocations: 11.98 kB / 0.513 GB, free: 4.008 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004902/0.5445, allocations: 299 kB / 0.5133 GB, free: 3.719 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004412/0.5489, allocations: 3.116 MB / 0.5164 GB, free: 0.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004453/0.5494, allocations: 289.1 kB / 0.5166 GB, free: 204 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002178/0.5496, allocations: 153.6 kB / 0.5168 GB, free: 44 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.5497, allocations: 7.984 kB / 0.5168 GB, free: 36 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.5497, allocations: 42.64 kB / 0.5168 GB, free: 15.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 2.254e-06/0.5497, allocations: 0 / 0.5168 GB, free: 15.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=48): time 0.004132/0.5538, allocations: 2.244 MB / 0.519 GB, free: 13.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.872e-05/0.5539, allocations: 85.58 kB / 0.5191 GB, free: 13.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00898/0.5629, allocations: 4.847 MB / 0.5238 GB, free: 8.715 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.5631, allocations: 37.7 kB / 0.5239 GB, free: 8.672 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001142/0.5642, allocations: 1.183 MB / 0.525 GB, free: 7.484 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001662/0.5644, allocations: 161.6 kB / 0.5252 GB, free: 7.324 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.432e-05/0.5644, allocations: 12 kB / 0.5252 GB, free: 7.312 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.5645, allocations: 329.9 kB / 0.5255 GB, free: 6.984 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.5648, allocations: 129.1 kB / 0.5256 GB, free: 6.855 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.5651, allocations: 216.8 kB / 0.5258 GB, free: 6.621 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.5654, allocations: 157.6 kB / 0.526 GB, free: 6.469 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.5654, allocations: 0 / 0.526 GB, free: 6.469 MB / 410.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.003064/0.5684, allocations: 1.059 MB / 0.527 GB, free: 5.395 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.5685, allocations: 8.094 kB / 0.527 GB, free: 5.387 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-06/0.5685, allocations: 4 kB / 0.527 GB, free: 5.383 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000495/0.569, allocations: 158.3 kB / 0.5272 GB, free: 5.227 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003963/0.5694, allocations: 99.81 kB / 0.5273 GB, free: 5.129 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009053/0.5703, allocations: 0.7397 MB / 0.528 GB, free: 4.363 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007688/0.5711, allocations: 27.98 kB / 0.528 GB, free: 4.336 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.494e-05/0.5711, allocations: 23.92 kB / 0.5281 GB, free: 4.312 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.5713, allocations: 137.4 kB / 0.5282 GB, free: 4.172 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003812/0.5717, allocations: 280.5 kB / 0.5285 GB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.5733, allocations: 0.7705 MB / 0.5292 GB, free: 3.105 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.5733, allocations: 4 kB / 0.5292 GB, free: 3.102 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5733, allocations: 0 / 0.5292 GB, free: 3.102 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.5733, allocations: 8 kB / 0.5292 GB, free: 3.094 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001978/0.5753, allocations: 1.707 MB / 0.5309 GB, free: 1.336 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.5753, allocations: 4 kB / 0.5309 GB, free: 1.332 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004478/0.5758, allocations: 91.88 kB / 0.531 GB, free: 1.242 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000282/0.5761, allocations: 100.8 kB / 0.5311 GB, free: 1.141 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.5761, allocations: 8 kB / 0.5311 GB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005206/0.5767, allocations: 0.6344 MB / 0.5317 GB, free: 484 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5767, allocations: 0 / 0.5317 GB, free: 484 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.5781, allocations: 1.083 MB / 0.5328 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.5792, allocations: 0.6732 MB / 0.5334 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/0.5794, allocations: 12 kB / 0.5334 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/0.5799, allocations: 44.05 kB / 0.5335 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.351e-05/0.58, allocations: 24.41 kB / 0.5335 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.997e-05/0.58, allocations: 15.98 kB / 0.5335 GB, free: 14.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005171/0.5852, allocations: 3.804 MB / 0.5372 GB, free: 10.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5853, allocations: 3.938 kB / 0.5372 GB, free: 10.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001214/0.5865, allocations: 328 kB / 0.5375 GB, free: 10.45 MB / 426.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 () * 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.002504/0.589, allocations: 1.943 MB / 0.5394 GB, free: 8.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007146/0.5897, allocations: 360.9 kB / 0.5398 GB, free: 8.238 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/0.5897, allocations: 7.938 kB / 0.5398 GB, free: 8.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003342/0.5901, allocations: 202.3 kB / 0.54 GB, free: 8.031 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008874/0.591, allocations: 195.6 kB / 0.5402 GB, free: 7.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008427/0.5994, allocations: 5.428 MB / 0.5455 GB, free: 2.352 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/0.601, allocations: 1.865 MB / 0.5473 GB, free: 464 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007134/0.6017, allocations: 379.6 kB / 0.5476 GB, free: 80 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2164/0.8181, allocations: 1.019 MB / 0.5486 GB, free: 123.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.623e-06/0.8181, allocations: 0 / 0.5486 GB, free: 123.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07688/0.895, allocations: 45.16 MB / 0.5927 GB, free: 108.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/0.8952, allocations: 260.2 kB / 0.593 GB, free: 108.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.647/4.542, allocations: 2.812 kB / 0.593 GB, free: 108.4 MB / 426.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