Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001669/0.001669, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009343/0.0009345, allocations: 82.73 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.785e-05/1.798e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1033, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.363/0.4664, allocations: 85.68 MB / 448.9 MB, free: 9.711 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.4667, allocations: 85.06 kB / 448.9 MB, free: 9.664 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0297/0.4964, allocations: 9.149 MB / 458.1 MB, free: 2.203 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4965, allocations: 0 / 458.1 MB, free: 2.203 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.4965, allocations: 8 kB / 458.1 MB, free: 2.195 MB / 330.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.001111/0.4976, allocations: 0.5869 MB / 458.7 MB, free: 1.582 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.4977, allocations: 8.031 kB / 458.7 MB, free: 1.574 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.487e-05/0.4978, allocations: 39.53 kB / 458.7 MB, free: 1.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004558/0.4982, allocations: 330 kB / 459.1 MB, free: 1.219 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.059e-05/0.4983, allocations: 38.27 kB / 459.1 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.4985, allocations: 23.98 kB / 459.1 MB, free: 1.148 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004045/0.4989, allocations: 242.4 kB / 459.4 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/0.4994, allocations: 258.7 kB / 459.6 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.4995, allocations: 15.94 kB / 459.6 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.4995, allocations: 0 / 459.6 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.4995, allocations: 7.984 kB / 459.6 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/0.5012, allocations: 1.12 MB / 460.7 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000344/0.5016, allocations: 255.7 kB / 461 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/0.5018, allocations: 141.5 kB / 461.1 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.5018, allocations: 7.953 kB / 461.1 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.5018, allocations: 39.06 kB / 461.2 MB, free: 15.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.523e-06/0.5019, allocations: 0 / 461.2 MB, free: 15.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.007215/0.5091, allocations: 1.911 MB / 463.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.5091, allocations: 85.06 kB / 463.2 MB, free: 13.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003122/0.5095, allocations: 244.8 kB / 463.4 MB, free: 13.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.5095, allocations: 25.7 kB / 463.4 MB, free: 13.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.643e-05/0.5096, allocations: 168.1 kB / 463.6 MB, free: 13.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.5097, allocations: 139.1 kB / 463.7 MB, free: 13.22 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.395e-05/0.5098, allocations: 3.938 kB / 463.7 MB, free: 13.22 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.5099, allocations: 341.5 kB / 464.1 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.5101, allocations: 131.1 kB / 464.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.5105, allocations: 187.2 kB / 464.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.5107, allocations: 155.2 kB / 464.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5107, allocations: 3.938 kB / 464.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.005925/0.5167, allocations: 1.426 MB / 466 MB, free: 11.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.5167, allocations: 8 kB / 466 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.5167, allocations: 0 / 466 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00558/0.5223, allocations: 1.038 MB / 467 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.5226, allocations: 63.41 kB / 467.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009827/0.5325, allocations: 4.255 MB / 471.3 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004718/0.533, allocations: 35.33 kB / 471.4 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.533, allocations: 19.42 kB / 471.4 MB, free: 6.988 MB / 346.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.00017/0.5332, allocations: 108.9 kB / 471.5 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002227/0.5354, allocations: 0.657 MB / 472.2 MB, free: 6.344 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-05/0.5355, allocations: 35.61 kB / 472.2 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001524/0.5371, allocations: 0.5502 MB / 472.7 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.5371, allocations: 8 kB / 472.7 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.5371, allocations: 0 / 472.7 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.5371, allocations: 3.984 kB / 472.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002722/0.5398, allocations: 1.145 MB / 473.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.5399, allocations: 0 / 473.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004442/0.5403, allocations: 95.81 kB / 474 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.5418, allocations: 259.1 kB / 474.2 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.5418, allocations: 7.984 kB / 474.2 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002979/0.5448, allocations: 2.093 MB / 476.3 MB, free: 2.789 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5448, allocations: 0 / 476.3 MB, free: 2.789 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.5465, allocations: 0.8987 MB / 477.2 MB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001623/0.5467, allocations: 141.5 kB / 477.4 MB, free: 1.953 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.635e-05/0.5468, allocations: 8 kB / 477.4 MB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004211/0.5472, allocations: 23.97 kB / 477.4 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.809e-05/0.5473, allocations: 39.28 kB / 477.4 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.5474, allocations: 19.05 kB / 477.5 MB, free: 1.875 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002426/0.5477, allocations: 190.2 kB / 477.7 MB, free: 1.734 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5477, allocations: 4 kB / 477.7 MB, free: 1.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007227/0.5485, allocations: 128 kB / 477.8 MB, free: 1.605 MB / 346.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.00212/0.5506, allocations: 1.551 MB / 479.3 MB, free: 252 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008144/0.5514, allocations: 0.5109 MB / 479.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5514, allocations: 4.062 kB / 479.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005231/0.552, allocations: 330.4 kB / 480.2 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.5523, allocations: 35.34 kB / 480.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.5538, allocations: 0.7765 MB / 481 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.5543, allocations: 0.7967 MB / 481.8 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001651/0.5544, allocations: 35.27 kB / 481.8 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.5546, allocations: 117.8 kB / 481.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.5546, allocations: 0 / 481.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03383/0.5885, allocations: 9.985 MB / 491.9 MB, free: 3.945 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000184/0.5887, allocations: 170.2 kB / 492.1 MB, free: 3.746 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/2.807, allocations: 3.938 kB / 492.1 MB, free: 3.742 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat