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"}) [: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 3.2.3+maint.om/package.mo): time 0.001058/0.001057, allocations: 183.8 kB / 8.476 MB, free: 0.5312 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.046/1.046, allocations: 205.2 MB / 214.1 MB, free: 8.496 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008418/0.0008418, allocations: 99.75 kB / 262.1 MB, free: 5.105 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 0.08546/0.08633, allocations: 53 MB / 315.1 MB, free: 1.875 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07447/0.1608, allocations: 47.57 MB / 362.6 MB, free: 2.188 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.193/0.3539, allocations: 85.37 MB / 448 MB, free: 2.457 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.3541, allocations: 77.33 kB / 448.1 MB, free: 2.418 MB / 322.8 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.02822/0.3823, allocations: 9.499 MB / 457.6 MB, free: 10.65 MB / 338.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.3824, allocations: 8 kB / 457.6 MB, free: 10.64 MB / 338.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.601e-05/0.3825, allocations: 39.53 kB / 457.6 MB, free: 10.6 MB / 338.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004371/0.3829, allocations: 321.4 kB / 457.9 MB, free: 10.29 MB / 338.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.342e-05/0.383, allocations: 42.36 kB / 458 MB, free: 10.25 MB / 338.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.3831, allocations: 31.89 kB / 458 MB, free: 10.21 MB / 338.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004265/0.3836, allocations: 242.2 kB / 458.3 MB, free: 10.06 MB / 338.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.384, allocations: 260.8 kB / 458.5 MB, free: 9.855 MB / 338.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.384, allocations: 0 / 458.5 MB, free: 9.855 MB / 338.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.384, allocations: 4 kB / 458.5 MB, free: 9.852 MB / 338.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.384, allocations: 5.188 kB / 458.5 MB, free: 9.848 MB / 338.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.3858, allocations: 1.111 MB / 459.6 MB, free: 8.891 MB / 338.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003177/0.3861, allocations: 179.9 kB / 459.8 MB, free: 8.758 MB / 338.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.3863, allocations: 144.8 kB / 459.9 MB, free: 8.664 MB / 338.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.3864, allocations: 3.906 kB / 460 MB, free: 8.66 MB / 338.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.3864, allocations: 38.56 kB / 460 MB, free: 8.617 MB / 338.8 MB Notification: Performance of pre-optimization done (n=31): time 3.016e-06/0.3864, allocations: 4 kB / 460 MB, free: 8.613 MB / 338.8 MB Notification: Performance of matching and sorting (n=42): time 0.007678/0.3941, allocations: 1.914 MB / 461.9 MB, free: 6.949 MB / 338.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.3942, allocations: 81.11 kB / 462 MB, free: 6.852 MB / 338.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.3945, allocations: 256.6 kB / 462.2 MB, free: 6.648 MB / 338.8 MB Notification: Performance of collectPreVariables (initialization): time 3.434e-05/0.3945, allocations: 25.7 kB / 462.3 MB, free: 6.617 MB / 338.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.735e-05/0.3946, allocations: 141.3 kB / 462.4 MB, free: 6.484 MB / 338.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.943e-05/0.3947, allocations: 144.8 kB / 462.5 MB, free: 6.359 MB / 338.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.3947, allocations: 0 / 462.5 MB, free: 6.359 MB / 338.8 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3948, allocations: 338.6 kB / 462.9 MB, free: 6.031 MB / 338.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002242/0.3951, allocations: 139.7 kB / 463 MB, free: 5.953 MB / 338.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002543/0.3953, allocations: 192.6 kB / 463.2 MB, free: 5.816 MB / 338.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.3956, allocations: 144.8 kB / 463.3 MB, free: 5.734 MB / 338.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3956, allocations: 0 / 463.3 MB, free: 5.734 MB / 338.8 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.006525/0.4021, allocations: 1.452 MB / 464.8 MB, free: 4.465 MB / 338.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.4022, allocations: 4 kB / 464.8 MB, free: 4.461 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.4022, allocations: 7.984 kB / 464.8 MB, free: 4.453 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006129/0.4083, allocations: 1.049 MB / 465.9 MB, free: 3.465 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003098/0.4087, allocations: 63.91 kB / 465.9 MB, free: 3.402 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.4193, allocations: 4.2 MB / 470.1 MB, free: 15.09 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005057/0.4198, allocations: 39.95 kB / 470.2 MB, free: 15.05 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/0.4199, allocations: 19.5 kB / 470.2 MB, free: 15.04 MB / 354.8 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.000185/0.4201, allocations: 110 kB / 470.3 MB, free: 14.92 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.4202, allocations: 31.62 kB / 470.3 MB, free: 14.89 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/0.4218, allocations: 0.5617 MB / 470.9 MB, free: 14.32 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.4218, allocations: 4 kB / 470.9 MB, free: 14.31 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.4218, allocations: 4 kB / 470.9 MB, free: 14.31 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.4218, allocations: 3.984 kB / 470.9 MB, free: 14.3 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002887/0.4247, allocations: 1.146 MB / 472 MB, free: 13.11 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.4247, allocations: 0 / 472 MB, free: 13.11 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005014/0.4252, allocations: 97.44 kB / 472.1 MB, free: 13.02 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.4268, allocations: 261.8 kB / 472.4 MB, free: 12.76 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.125e-05/0.4268, allocations: 4 kB / 472.4 MB, free: 12.76 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003167/0.43, allocations: 2.049 MB / 474.4 MB, free: 10.59 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.43, allocations: 3.938 kB / 474.4 MB, free: 10.59 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001729/0.4317, allocations: 0.9101 MB / 475.3 MB, free: 9.652 MB / 354.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002126/0.4339, allocations: 1.488 MB / 476.8 MB, free: 8.133 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001927/0.4341, allocations: 152.7 kB / 477 MB, free: 7.965 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.673e-05/0.4342, allocations: 0 / 477 MB, free: 7.965 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004692/0.4346, allocations: 27.98 kB / 477 MB, free: 7.938 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.4347, allocations: 28.39 kB / 477 MB, free: 7.91 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/0.4348, allocations: 15.98 kB / 477.1 MB, free: 7.895 MB / 354.8 MB Notification: Performance of sort global known variables: time 0.000182/0.435, allocations: 196.4 kB / 477.2 MB, free: 7.699 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.001199/0.4362, allocations: 128 kB / 477.4 MB, free: 7.574 MB / 354.8 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.0002827/0.4365, allocations: 143.1 kB / 477.5 MB, free: 7.426 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.0008133/0.4373, allocations: 486.7 kB / 478 MB, free: 6.941 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4373, allocations: 0 / 478 MB, free: 6.941 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0004301/0.4377, allocations: 311.3 kB / 478.3 MB, free: 6.629 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/0.438, allocations: 24.8 kB / 478.3 MB, free: 6.605 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.4397, allocations: 0.721 MB / 479 MB, free: 5.863 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004453/0.4401, allocations: 0.8363 MB / 479.9 MB, free: 4.996 MB / 354.8 MB Notification: Performance of SimCode: time 3.91e-07/0.4401, allocations: 4 kB / 479.9 MB, free: 4.992 MB / 354.8 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