Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",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.001633/0.001633, allocations: 177.1 kB / 13.64 MB, free: 1.676 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.467/1.467, allocations: 221.3 MB / 235.5 MB, free: 2.926 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.0008786/0.0008785, allocations: 91.67 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.013e-05/3.015e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 50.42 MB / 394.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3113/0.4255, allocations: 88.92 MB / 483.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.4258, allocations: 77.7 kB / 483.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02824/0.454, allocations: 9.517 MB / 492.9 MB, free: 4.934 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4541, allocations: 0 / 492.9 MB, free: 4.934 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.4541, allocations: 8 kB / 492.9 MB, free: 4.926 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001004/0.4551, allocations: 0.5812 MB / 493.5 MB, free: 4.301 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.4552, allocations: 12.03 kB / 493.5 MB, free: 4.289 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.914e-05/0.4552, allocations: 62.53 kB / 493.5 MB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.356e-05/0.4553, allocations: 35.53 kB / 493.6 MB, free: 4.184 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.4557, allocations: 324.1 kB / 493.9 MB, free: 3.824 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.472e-05/0.4558, allocations: 46.27 kB / 493.9 MB, free: 3.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.456, allocations: 43.88 kB / 494 MB, free: 3.727 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.4565, allocations: 300.5 kB / 494.3 MB, free: 3.418 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.4565, allocations: 7.938 kB / 494.3 MB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.4566, allocations: 11.94 kB / 494.3 MB, free: 3.398 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/0.4566, allocations: 8 kB / 494.3 MB, free: 3.391 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.457, allocations: 254.2 kB / 494.5 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.4588, allocations: 1.171 MB / 495.7 MB, free: 1.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004094/0.4592, allocations: 261.9 kB / 496 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.4594, allocations: 149.6 kB / 496.1 MB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.4594, allocations: 8.484 kB / 496.1 MB, free: 1.461 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.4595, allocations: 38.56 kB / 496.2 MB, free: 1.414 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.054e-06/0.4595, allocations: 0 / 496.2 MB, free: 1.414 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.008033/0.4675, allocations: 2.15 MB / 498.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.4676, allocations: 84.89 kB / 498.4 MB, free: 15.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003232/0.4679, allocations: 264.9 kB / 498.6 MB, free: 14.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.468, allocations: 33.7 kB / 498.7 MB, free: 14.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.4681, allocations: 164.5 kB / 498.8 MB, free: 14.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.4682, allocations: 145.8 kB / 499 MB, free: 14.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.646e-05/0.4682, allocations: 8 kB / 499 MB, free: 14.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4684, allocations: 346.8 kB / 499.3 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.4686, allocations: 140.9 kB / 499.5 MB, free: 14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/0.4689, allocations: 197.9 kB / 499.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002736/0.4692, allocations: 161.6 kB / 499.8 MB, free: 13.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4692, allocations: 0 / 499.8 MB, free: 13.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.006046/0.4752, allocations: 1.478 MB / 0.4895 GB, free: 12.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.4753, allocations: 4 kB / 0.4895 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4753, allocations: 4 kB / 0.4896 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005663/0.481, allocations: 1.03 MB / 0.4906 GB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.4812, allocations: 71.89 kB / 0.4906 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009901/0.4912, allocations: 4.345 MB / 0.4949 GB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004564/0.4916, allocations: 40.05 kB / 0.4949 GB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/0.4917, allocations: 15.98 kB / 0.4949 GB, free: 6.492 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (31): * Single equations (assignments): 30 * 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 20} Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.4918, allocations: 124.9 kB / 0.495 GB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.734e-05/0.4919, allocations: 27.62 kB / 0.4951 GB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.4934, allocations: 0.6054 MB / 0.4957 GB, free: 5.723 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.4934, allocations: 8 kB / 0.4957 GB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.4934, allocations: 0 / 0.4957 GB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.4934, allocations: 7.953 kB / 0.4957 GB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.4962, allocations: 1.216 MB / 0.4969 GB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.4962, allocations: 15.94 kB / 0.4969 GB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004418/0.4967, allocations: 91.89 kB / 0.497 GB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/0.4981, allocations: 256.6 kB / 0.4972 GB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-05/0.4981, allocations: 15.98 kB / 0.4972 GB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003197/0.5013, allocations: 2.124 MB / 0.4993 GB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5014, allocations: 0 / 0.4993 GB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001775/0.5031, allocations: 0.9341 MB / 0.5002 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.5033, allocations: 152.6 kB / 0.5004 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.5034, allocations: 12 kB / 0.5004 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004323/0.5038, allocations: 31.98 kB / 0.5004 GB, free: 0.625 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.504, allocations: 40.38 kB / 0.5004 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.869e-05/0.504, allocations: 8 kB / 0.5004 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002192/0.5043, allocations: 213.4 kB / 0.5006 GB, free: 380 kB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5043, allocations: 0 / 0.5006 GB, free: 380 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006684/0.5049, allocations: 140 kB / 0.5008 GB, free: 240 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.002161/0.5071, allocations: 1.614 MB / 0.5024 GB, free: 14.59 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009592/0.5081, allocations: 0.5538 MB / 0.5029 GB, free: 14.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5081, allocations: 0 / 0.5029 GB, free: 14.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004696/0.5086, allocations: 353.2 kB / 0.5032 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.5089, allocations: 32.36 kB / 0.5033 GB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.5106, allocations: 0.8099 MB / 0.5041 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.5109, allocations: 0.8009 MB / 0.5048 GB, free: 11.95 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001744/0.5111, allocations: 34.97 kB / 0.5049 GB, free: 11.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/0.5113, allocations: 115.4 kB / 0.505 GB, free: 11.8 MB / 394.7 MB Notification: Performance of SimCode: time 4e-07/0.5113, allocations: 0 / 0.505 GB, free: 11.8 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02512/0.5364, allocations: 11.25 MB / 0.516 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/0.5366, allocations: 197.4 kB / 0.5162 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.309/2.845, allocations: 0 / 0.5162 GB, free: 0.5234 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat