Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002158/0.002158, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.005/2.005, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 90.19 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.245e-05/2.254e-05, allocations: 4 kB / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3321, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1392/0.4713, allocations: 85.44 MB / 447.9 MB, free: 0.7422 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003311/0.4717, allocations: 86.5 kB / 448 MB, free: 0.6602 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04585/0.5175, allocations: 9.15 MB / 457.1 MB, free: 7.52 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5176, allocations: 0 / 457.1 MB, free: 7.52 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.5176, allocations: 4 kB / 457.1 MB, free: 7.516 MB / 347.1 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.001651/0.5193, allocations: 0.5929 MB / 457.7 MB, free: 6.879 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.5193, allocations: 8.031 kB / 457.7 MB, free: 6.871 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.5195, allocations: 39.53 kB / 457.8 MB, free: 6.832 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006571/0.5201, allocations: 319.9 kB / 458.1 MB, free: 6.477 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.682e-05/0.5202, allocations: 42.81 kB / 458.1 MB, free: 6.426 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.5205, allocations: 24 kB / 458.1 MB, free: 6.402 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007099/0.5212, allocations: 245 kB / 458.4 MB, free: 6.164 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006669/0.5219, allocations: 263.4 kB / 458.6 MB, free: 5.891 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.5219, allocations: 0 / 458.6 MB, free: 5.891 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.511e-05/0.522, allocations: 3.984 kB / 458.6 MB, free: 5.887 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.522, allocations: 14.14 kB / 458.7 MB, free: 5.875 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/0.5247, allocations: 1.116 MB / 459.8 MB, free: 4.695 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000605/0.5253, allocations: 245.8 kB / 460 MB, free: 4.438 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003328/0.5256, allocations: 142.9 kB / 460.2 MB, free: 4.293 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.774e-05/0.5257, allocations: 7.953 kB / 460.2 MB, free: 4.285 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/0.5257, allocations: 35.73 kB / 460.2 MB, free: 4.242 MB / 347.1 MB Notification: Performance of pre-optimization done (n=31): time 2.815e-06/0.5258, allocations: 4 kB / 460.2 MB, free: 4.238 MB / 347.1 MB Notification: Performance of matching and sorting (n=42): time 0.01324/0.539, allocations: 1.91 MB / 462.1 MB, free: 2.277 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.069e-05/0.5391, allocations: 85.06 kB / 462.2 MB, free: 2.176 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005007/0.5396, allocations: 248.5 kB / 462.4 MB, free: 1.93 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 8.055e-05/0.5397, allocations: 25.7 kB / 462.5 MB, free: 1.898 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.5399, allocations: 223.2 kB / 462.7 MB, free: 1.68 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.5401, allocations: 137.9 kB / 462.8 MB, free: 1.543 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.666e-05/0.5402, allocations: 3.938 kB / 462.8 MB, free: 1.539 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.5403, allocations: 326.8 kB / 463.1 MB, free: 1.211 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003941/0.5407, allocations: 132.9 kB / 463.3 MB, free: 1.082 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004355/0.5412, allocations: 189 kB / 463.4 MB, free: 0.8828 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004659/0.5416, allocations: 145.8 kB / 463.6 MB, free: 0.7422 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.5417, allocations: 0 / 463.6 MB, free: 0.7422 MB / 347.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.01174/0.5534, allocations: 1.427 MB / 465 MB, free: 15.3 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/0.5535, allocations: 4 kB / 465 MB, free: 15.3 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.5535, allocations: 0 / 465 MB, free: 15.3 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01109/0.5646, allocations: 1.04 MB / 466.1 MB, free: 14.26 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005226/0.5652, allocations: 63.91 kB / 466.1 MB, free: 14.2 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01788/0.5831, allocations: 4.272 MB / 470.4 MB, free: 9.805 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000779/0.5839, allocations: 24.02 kB / 470.4 MB, free: 9.781 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-05/0.584, allocations: 19.98 kB / 470.4 MB, free: 9.762 MB / 363.1 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.0002463/0.5842, allocations: 113 kB / 470.5 MB, free: 9.645 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004037/0.5883, allocations: 0.6613 MB / 471.2 MB, free: 8.973 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.5885, allocations: 27.72 kB / 471.2 MB, free: 8.945 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002422/0.5909, allocations: 0.5589 MB / 471.8 MB, free: 8.371 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.5909, allocations: 4 kB / 471.8 MB, free: 8.367 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.5909, allocations: 0 / 471.8 MB, free: 8.367 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.5909, allocations: 3.984 kB / 471.8 MB, free: 8.363 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004595/0.5956, allocations: 1.139 MB / 472.9 MB, free: 7.18 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.5956, allocations: 0 / 472.9 MB, free: 7.18 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008998/0.5965, allocations: 95.89 kB / 473 MB, free: 7.086 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002491/0.599, allocations: 256.6 kB / 473.3 MB, free: 6.832 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-05/0.5991, allocations: 8 kB / 473.3 MB, free: 6.824 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005212/0.6043, allocations: 2.091 MB / 475.4 MB, free: 4.621 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.6044, allocations: 0 / 475.4 MB, free: 4.621 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002936/0.6073, allocations: 0.9028 MB / 476.3 MB, free: 3.691 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002807/0.6076, allocations: 144.7 kB / 476.4 MB, free: 3.531 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.6078, allocations: 8 kB / 476.4 MB, free: 3.523 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007483/0.6085, allocations: 19.98 kB / 476.5 MB, free: 3.504 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.6087, allocations: 44.33 kB / 476.5 MB, free: 3.461 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.421e-05/0.6088, allocations: 16 kB / 476.5 MB, free: 3.445 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0003139/0.6091, allocations: 196.5 kB / 476.7 MB, free: 3.254 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6091, allocations: 0 / 476.7 MB, free: 3.254 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0009882/0.6101, allocations: 120 kB / 476.8 MB, free: 3.137 MB / 363.1 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.003594/0.6137, allocations: 1.555 MB / 478.4 MB, free: 1.547 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.6152, allocations: 0.5131 MB / 478.9 MB, free: 1.023 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.6152, allocations: 4 kB / 478.9 MB, free: 1.02 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007693/0.616, allocations: 327.2 kB / 479.2 MB, free: 0.6875 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005219/0.6165, allocations: 30.23 kB / 479.2 MB, free: 0.6602 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002672/0.6192, allocations: 0.7971 MB / 480 MB, free: 15.82 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.6198, allocations: 0.7967 MB / 480.8 MB, free: 14.99 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.6201, allocations: 119.4 kB / 481 MB, free: 14.87 MB / 379.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6201, allocations: 4 kB / 481 MB, free: 14.87 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.515/3.135, allocations: 7.468 MB / 488.4 MB, free: 7.43 MB / 379.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat