Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001019/0.001019, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.11/1.11, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008592/0.0008592, allocations: 97.31 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08649/0.08739, allocations: 56.9 MB / 343.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07618/0.1636, allocations: 51.48 MB / 394.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2003/0.3639, allocations: 89 MB / 483.7 MB, free: 4.156 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001779/0.3642, allocations: 77.95 kB / 483.8 MB, free: 4.117 MB / 346.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.02669/0.3909, allocations: 9.817 MB / 493.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.974e-05/0.3909, allocations: 8 kB / 493.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.3911, allocations: 51.52 kB / 493.7 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.3915, allocations: 317.8 kB / 494 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.068e-05/0.3915, allocations: 38.36 kB / 494 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.3917, allocations: 43.8 kB / 494.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004022/0.3921, allocations: 241.9 kB / 494.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004067/0.3925, allocations: 265.3 kB / 494.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.3925, allocations: 4 kB / 494.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.3926, allocations: 0 / 494.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.3926, allocations: 4 kB / 494.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.394, allocations: 1.107 MB / 495.7 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.3943, allocations: 179.1 kB / 495.8 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.3945, allocations: 147 kB / 496 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.3945, allocations: 4 kB / 496 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.3946, allocations: 33.75 kB / 496 MB, free: 9.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.303e-06/0.3946, allocations: 4 kB / 496 MB, free: 9.973 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0076/0.4022, allocations: 1.905 MB / 497.9 MB, free: 8.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.4022, allocations: 85.11 kB / 498 MB, free: 8.219 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.4025, allocations: 250 kB / 498.3 MB, free: 8.023 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.4025, allocations: 25.7 kB / 498.3 MB, free: 7.992 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.999e-05/0.4026, allocations: 143.3 kB / 498.4 MB, free: 7.859 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.195e-05/0.4027, allocations: 139.9 kB / 498.6 MB, free: 7.738 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.373e-05/0.4027, allocations: 0 / 498.6 MB, free: 7.738 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.4028, allocations: 340.9 kB / 498.9 MB, free: 7.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002212/0.4031, allocations: 133.4 kB / 499 MB, free: 7.336 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.4033, allocations: 192.1 kB / 499.2 MB, free: 7.191 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.4036, allocations: 148.5 kB / 499.4 MB, free: 7.105 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.4036, allocations: 4 kB / 499.4 MB, free: 7.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.006551/0.4101, allocations: 1.452 MB / 0.4891 GB, free: 5.832 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.4102, allocations: 8 kB / 0.4891 GB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.4102, allocations: 5.609 kB / 0.4891 GB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006234/0.4164, allocations: 1.047 MB / 0.4901 GB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002964/0.4167, allocations: 59.91 kB / 0.4902 GB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/0.427, allocations: 4.2 MB / 0.4943 GB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004455/0.4275, allocations: 37.39 kB / 0.4943 GB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.4275, allocations: 19.11 kB / 0.4943 GB, free: 1.469 MB / 362.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.0001443/0.4277, allocations: 108.2 kB / 0.4944 GB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.352e-05/0.4278, allocations: 31.62 kB / 0.4945 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.4293, allocations: 0.5705 MB / 0.495 GB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.4293, allocations: 8 kB / 0.495 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.4293, allocations: 0 / 0.495 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4293, allocations: 3.984 kB / 0.495 GB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002697/0.432, allocations: 1.148 MB / 0.4962 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.432, allocations: 0 / 0.4962 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005168/0.4325, allocations: 95.38 kB / 0.4962 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00153/0.4341, allocations: 263.2 kB / 0.4965 GB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.4341, allocations: 4 kB / 0.4965 GB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003071/0.4372, allocations: 2.046 MB / 0.4985 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4372, allocations: 0 / 0.4985 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001714/0.4389, allocations: 0.9075 MB / 0.4994 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002175/0.4411, allocations: 1.478 MB / 0.5008 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.4413, allocations: 152 kB / 0.501 GB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.528e-05/0.4414, allocations: 1.5 kB / 0.501 GB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004799/0.4419, allocations: 27.98 kB / 0.501 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.599e-05/0.442, allocations: 32.3 kB / 0.501 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.05e-05/0.442, allocations: 15.98 kB / 0.501 GB, free: 11.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001786/0.4422, allocations: 196.5 kB / 0.5012 GB, free: 11.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00123/0.4434, allocations: 131.9 kB / 0.5014 GB, free: 11.36 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.000251/0.4437, allocations: 147.1 kB / 0.5015 GB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008263/0.4445, allocations: 488.5 kB / 0.502 GB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4445, allocations: 0 / 0.502 GB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004193/0.445, allocations: 311.3 kB / 0.5023 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.4453, allocations: 32.42 kB / 0.5023 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.4469, allocations: 0.7217 MB / 0.503 GB, free: 9.648 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004301/0.4473, allocations: 0.8382 MB / 0.5038 GB, free: 8.785 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4473, allocations: 0 / 0.5038 GB, free: 8.785 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat