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.001349/0.001349, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.535/1.535, allocations: 221.5 MB / 230.3 MB, free: 7.559 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.001009/0.001009, allocations: 91.47 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.325e-05/2.348e-05, allocations: 0 / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09565/0.0957, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3293/0.4251, allocations: 88.25 MB / 475.8 MB, free: 6.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.4254, allocations: 83.95 kB / 475.9 MB, free: 6.348 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02914/0.4546, allocations: 9.376 MB / 485.3 MB, free: 12.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4546, allocations: 0 / 485.3 MB, free: 12.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.4547, allocations: 16 kB / 485.3 MB, free: 12.92 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.001005/0.4557, allocations: 0.589 MB / 485.9 MB, free: 12.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.4557, allocations: 12.03 kB / 485.9 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.465e-05/0.4558, allocations: 35.53 kB / 485.9 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004155/0.4562, allocations: 320.1 kB / 486.2 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.473e-05/0.4563, allocations: 42.25 kB / 486.3 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.4565, allocations: 27.94 kB / 486.3 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004236/0.4569, allocations: 249 kB / 486.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.4573, allocations: 255.4 kB / 486.8 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.4574, allocations: 0 / 486.8 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.4574, allocations: 7.938 kB / 486.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.4574, allocations: 4 kB / 486.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001737/0.4592, allocations: 1.116 MB / 487.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00036/0.4595, allocations: 245.2 kB / 488.2 MB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.4598, allocations: 138.9 kB / 488.3 MB, free: 9.711 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.4598, allocations: 0 / 488.3 MB, free: 9.711 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.4598, allocations: 50.98 kB / 488.4 MB, free: 9.652 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.4598, allocations: 0 / 488.4 MB, free: 9.652 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.007005/0.4668, allocations: 1.922 MB / 490.3 MB, free: 7.676 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.4669, allocations: 84.89 kB / 490.4 MB, free: 7.574 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.4673, allocations: 248.5 kB / 490.6 MB, free: 7.324 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.4673, allocations: 25.7 kB / 490.6 MB, free: 7.293 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.464e-05/0.4674, allocations: 164.8 kB / 490.8 MB, free: 7.129 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.4675, allocations: 137.9 kB / 490.9 MB, free: 6.992 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.4675, allocations: 0 / 490.9 MB, free: 6.992 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4677, allocations: 338.8 kB / 491.3 MB, free: 6.652 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.4679, allocations: 136.9 kB / 491.4 MB, free: 6.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.4681, allocations: 185 kB / 491.6 MB, free: 6.324 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.4684, allocations: 161.5 kB / 491.7 MB, free: 6.168 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4684, allocations: 0 / 491.7 MB, free: 6.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.006058/0.4745, allocations: 1.427 MB / 493.1 MB, free: 4.727 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.4746, allocations: 8 kB / 493.2 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.4746, allocations: 4.062 kB / 493.2 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005607/0.4802, allocations: 1.029 MB / 494.2 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003191/0.4805, allocations: 63.86 kB / 494.3 MB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009673/0.4902, allocations: 4.267 MB / 498.5 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004863/0.4908, allocations: 31.84 kB / 498.6 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.4908, allocations: 19.98 kB / 498.6 MB, free: 15.18 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real 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.0002242/0.491, allocations: 109.6 kB / 498.7 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002212/0.4933, allocations: 0.654 MB / 499.3 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.598e-05/0.4934, allocations: 31.62 kB / 499.4 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00143/0.4948, allocations: 0.5512 MB / 499.9 MB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.4948, allocations: 8 kB / 499.9 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.4948, allocations: 0 / 499.9 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.4948, allocations: 15.88 kB / 499.9 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.4975, allocations: 1.135 MB / 0.4893 GB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4975, allocations: 3.984 kB / 0.4893 GB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004462/0.4979, allocations: 91.89 kB / 0.4894 GB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001374/0.4993, allocations: 264.5 kB / 0.4897 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.5e-05/0.4994, allocations: 11.94 kB / 0.4897 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00303/0.5024, allocations: 2.076 MB / 0.4917 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.5024, allocations: 8.062 kB / 0.4917 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.5042, allocations: 0.8949 MB / 0.4926 GB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.5043, allocations: 148.7 kB / 0.4927 GB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.512e-05/0.5044, allocations: 4 kB / 0.4927 GB, free: 8.945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004251/0.5048, allocations: 23.98 kB / 0.4928 GB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.505, allocations: 36.38 kB / 0.4928 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.505, allocations: 12 kB / 0.4928 GB, free: 8.875 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002027/0.5052, allocations: 196.5 kB / 0.493 GB, free: 8.684 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5052, allocations: 0 / 0.493 GB, free: 8.684 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007146/0.5059, allocations: 127.9 kB / 0.4931 GB, free: 8.559 MB / 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.002153/0.5081, allocations: 1.559 MB / 0.4946 GB, free: 6.969 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009061/0.509, allocations: 0.5131 MB / 0.4951 GB, free: 6.441 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.509, allocations: 0 / 0.4951 GB, free: 6.441 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004166/0.5094, allocations: 331.5 kB / 0.4955 GB, free: 6.105 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.5098, allocations: 24.5 kB / 0.4955 GB, free: 6.082 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.5114, allocations: 0.7798 MB / 0.4962 GB, free: 5.262 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.5118, allocations: 0.8044 MB / 0.497 GB, free: 4.422 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.512, allocations: 35.27 kB / 0.4971 GB, free: 4.383 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.5122, allocations: 115.4 kB / 0.4972 GB, free: 4.27 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5122, allocations: 0 / 0.4972 GB, free: 4.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.5431, allocations: 10.01 MB / 0.5069 GB, free: 10.3 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.5434, allocations: 162.8 kB / 0.5071 GB, free: 10.11 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.317/2.86, allocations: 3 kB / 0.5071 GB, free: 10.11 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