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.001905/0.001905, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.353/1.353, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000892/0.0008918, allocations: 101.7 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002699, allocations: 7.984 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2294, allocations: 50.41 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1095/0.339, allocations: 88.99 MB / 490.6 MB, free: 7.418 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.3393, allocations: 84.52 kB / 490.7 MB, free: 7.336 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02986/0.3692, allocations: 9.539 MB / 0.4885 GB, free: 13.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3692, allocations: 0 / 0.4885 GB, free: 13.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.626e-05/0.3692, allocations: 8 kB / 0.4885 GB, free: 13.75 MB / 378.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.001349/0.3706, allocations: 0.6434 MB / 0.4891 GB, free: 13.06 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.3706, allocations: 12.03 kB / 0.4891 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.858e-05/0.3707, allocations: 62.48 kB / 0.4892 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.851e-05/0.3708, allocations: 35.61 kB / 0.4892 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004533/0.3713, allocations: 319.9 kB / 0.4895 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.928e-05/0.3713, allocations: 46.27 kB / 0.4896 GB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.3715, allocations: 43.94 kB / 0.4896 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005989/0.3721, allocations: 324.4 kB / 0.4899 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.3721, allocations: 3.906 kB / 0.4899 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.3722, allocations: 12 kB / 0.4899 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.3722, allocations: 8 kB / 0.4899 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006641/0.3729, allocations: 310 kB / 0.4902 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.3746, allocations: 1.171 MB / 0.4914 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006382/0.3753, allocations: 303.9 kB / 0.4917 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.3753, allocations: 7.984 kB / 0.4917 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.3753, allocations: 42.56 kB / 0.4917 GB, free: 10.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 2.344e-06/0.3754, allocations: 0 / 0.4917 GB, free: 10.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.01195/0.3873, allocations: 2.822 MB / 0.4945 GB, free: 7.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.3874, allocations: 88.89 kB / 0.4946 GB, free: 7.215 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003486/0.3878, allocations: 260.2 kB / 0.4948 GB, free: 6.953 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.189e-05/0.3878, allocations: 29.7 kB / 0.4948 GB, free: 6.918 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3879, allocations: 176.4 kB / 0.495 GB, free: 6.742 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.3881, allocations: 149.8 kB / 0.4951 GB, free: 6.594 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.3881, allocations: 4 kB / 0.4951 GB, free: 6.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3882, allocations: 346.8 kB / 0.4955 GB, free: 6.242 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003903/0.3886, allocations: 168.8 kB / 0.4956 GB, free: 6.078 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004155/0.389, allocations: 229.8 kB / 0.4959 GB, free: 5.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004261/0.3895, allocations: 185.8 kB / 0.496 GB, free: 5.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3895, allocations: 8 kB / 0.496 GB, free: 5.652 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001025/0.3905, allocations: 496.7 kB / 0.4965 GB, free: 5.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3906, allocations: 8 kB / 0.4965 GB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.3906, allocations: 0 / 0.4965 GB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.3906, allocations: 7.984 kB / 0.4965 GB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006496/0.3912, allocations: 119.9 kB / 0.4966 GB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.3913, allocations: 4 kB / 0.4966 GB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004075/0.3917, allocations: 39.97 kB / 0.4967 GB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/0.3917, allocations: 19.98 kB / 0.4967 GB, free: 4.965 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001961/0.3919, allocations: 161.6 kB / 0.4969 GB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.731e-05/0.392, allocations: 31.62 kB / 0.4969 GB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002364/0.3944, allocations: 0.7266 MB / 0.4976 GB, free: 4.023 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.3944, allocations: 4 kB / 0.4976 GB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3944, allocations: 4 kB / 0.4976 GB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3944, allocations: 0 / 0.4976 GB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003241/0.3977, allocations: 1.318 MB / 0.4989 GB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3977, allocations: 0 / 0.4989 GB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004852/0.3982, allocations: 95.88 kB / 0.499 GB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/0.4001, allocations: 296.4 kB / 0.4993 GB, free: 2.254 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-05/0.4002, allocations: 8 kB / 0.4993 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2025/0.6026, allocations: 2.31 MB / 0.5015 GB, free: 98.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.6027, allocations: 1.422 kB / 0.5015 GB, free: 98.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00281/0.6055, allocations: 1.061 MB / 0.5026 GB, free: 98.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001949/0.6057, allocations: 147.2 kB / 0.5027 GB, free: 98.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/0.6058, allocations: 11.67 kB / 0.5027 GB, free: 98.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004741/0.6062, allocations: 34.44 kB / 0.5028 GB, free: 98.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.6064, allocations: 35.19 kB / 0.5028 GB, free: 98.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.6064, allocations: 15.19 kB / 0.5028 GB, free: 98.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002463/0.6067, allocations: 217.1 kB / 0.503 GB, free: 98.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6067, allocations: 2.344 kB / 0.503 GB, free: 98.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000685/0.6074, allocations: 120.6 kB / 0.5031 GB, free: 98.46 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 () * Number of clocked 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.002953/0.6104, allocations: 1.719 MB / 0.5048 GB, free: 97.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.6115, allocations: 439.9 kB / 0.5052 GB, free: 97.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.6115, allocations: 1.25 kB / 0.5052 GB, free: 97.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006884/0.6122, allocations: 388.6 kB / 0.5056 GB, free: 97.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.6125, allocations: 35.28 kB / 0.5056 GB, free: 97.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004201/0.6168, allocations: 3.375 MB / 0.5089 GB, free: 95.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.617, allocations: 0.7976 MB / 0.5097 GB, free: 95.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002339/0.6173, allocations: 42.55 kB / 0.5097 GB, free: 95.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.6175, allocations: 125.2 kB / 0.5099 GB, free: 95.14 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.6175, allocations: 0 / 0.5099 GB, free: 95.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.6396, allocations: 8.967 MB / 0.5186 GB, free: 92.88 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.6398, allocations: 228.3 kB / 0.5188 GB, free: 92.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.099/2.739, allocations: 4 kB / 0.5188 GB, free: 92.64 MB / 378.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