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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 183 kB / 8.134 MB, free: 2.223 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.182/1.182, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.000931/0.000931, allocations: 109.2 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09473/0.09569, allocations: 55.82 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.2767, allocations: 50.39 MB / 387 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08876/0.3655, allocations: 88.19 MB / 475.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.3657, allocations: 80.58 kB / 475.3 MB, free: 14.58 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.03137/0.3971, allocations: 9.73 MB / 485 MB, free: 4.805 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.3971, allocations: 12 kB / 485 MB, free: 4.793 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.3972, allocations: 35.53 kB / 485.1 MB, free: 4.758 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000472/0.3977, allocations: 316.1 kB / 485.4 MB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.539e-05/0.3978, allocations: 46.36 kB / 485.4 MB, free: 4.355 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.398, allocations: 27.89 kB / 485.4 MB, free: 4.328 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004722/0.3985, allocations: 246.2 kB / 485.7 MB, free: 4.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004348/0.3989, allocations: 260.3 kB / 485.9 MB, free: 3.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.3989, allocations: 0 / 485.9 MB, free: 3.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.399, allocations: 0 / 485.9 MB, free: 3.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.399, allocations: 8 kB / 485.9 MB, free: 3.812 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/0.4007, allocations: 1.116 MB / 487 MB, free: 2.629 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.401, allocations: 175.2 kB / 487.2 MB, free: 2.445 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002178/0.4012, allocations: 137.7 kB / 487.4 MB, free: 2.305 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.4013, allocations: 7.984 kB / 487.4 MB, free: 2.297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.4013, allocations: 39.28 kB / 487.4 MB, free: 2.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.4013, allocations: 4 kB / 487.4 MB, free: 2.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.008481/0.4098, allocations: 1.917 MB / 489.3 MB, free: 280 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.4099, allocations: 81.11 kB / 489.4 MB, free: 180 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.4102, allocations: 252 kB / 489.6 MB, free: 15.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.4102, allocations: 25.7 kB / 489.7 MB, free: 15.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.4103, allocations: 140.5 kB / 489.8 MB, free: 15.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.4104, allocations: 141.8 kB / 489.9 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.721e-05/0.4105, allocations: 0 / 489.9 MB, free: 15.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4106, allocations: 342.8 kB / 490.3 MB, free: 15.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002528/0.4108, allocations: 132.9 kB / 490.4 MB, free: 15.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/0.4111, allocations: 189 kB / 490.6 MB, free: 14.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002835/0.4114, allocations: 153.5 kB / 490.7 MB, free: 14.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.4114, allocations: 8 kB / 490.8 MB, free: 14.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.007074/0.4185, allocations: 1.446 MB / 492.2 MB, free: 13.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.4185, allocations: 4 kB / 492.2 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.4186, allocations: 3.984 kB / 492.2 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006595/0.4252, allocations: 1.041 MB / 493.3 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003351/0.4255, allocations: 63.91 kB / 493.3 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.4364, allocations: 4.208 MB / 497.5 MB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005251/0.4369, allocations: 35.95 kB / 497.6 MB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/0.437, allocations: 15.98 kB / 497.6 MB, free: 7.828 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.000172/0.4372, allocations: 117.6 kB / 497.7 MB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.4373, allocations: 27.62 kB / 497.7 MB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.4388, allocations: 0.5579 MB / 498.3 MB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.4388, allocations: 8 kB / 498.3 MB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.4388, allocations: 0 / 498.3 MB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.4388, allocations: 3.984 kB / 498.3 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002878/0.4417, allocations: 1.142 MB / 499.4 MB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.4417, allocations: 1.188 kB / 499.4 MB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005096/0.4423, allocations: 103.8 kB / 499.5 MB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001527/0.4438, allocations: 256.5 kB / 499.8 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.823e-05/0.4438, allocations: 11.94 kB / 499.8 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003232/0.4471, allocations: 2.043 MB / 0.4901 GB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4471, allocations: 0 / 0.4901 GB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001814/0.4489, allocations: 0.9088 MB / 0.491 GB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002208/0.4511, allocations: 1.484 MB / 0.4924 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.4513, allocations: 144.7 kB / 0.4925 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.881e-05/0.4514, allocations: 4 kB / 0.4926 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000499/0.4519, allocations: 27.98 kB / 0.4926 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.761e-05/0.452, allocations: 28.58 kB / 0.4926 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.4521, allocations: 11.98 kB / 0.4926 GB, free: 0.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001982/0.4523, allocations: 204.3 kB / 0.4928 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001269/0.4536, allocations: 132 kB / 0.4929 GB, free: 384 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.0002755/0.4538, allocations: 147.9 kB / 0.4931 GB, free: 228 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.09844/0.5523, allocations: 482.1 kB / 0.4935 GB, free: 138.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.5523, allocations: 0 / 0.4935 GB, free: 138.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004283/0.5528, allocations: 320.7 kB / 0.4938 GB, free: 138 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.5532, allocations: 14.83 kB / 0.4939 GB, free: 138 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.5547, allocations: 0.7238 MB / 0.4946 GB, free: 137.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003028/0.555, allocations: 0.8433 MB / 0.4954 GB, free: 137.2 MB / 378.7 MB Notification: Performance of SimCode: time 6.12e-07/0.555, allocations: 0 / 0.4954 GB, free: 137.2 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