Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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.001348/0.001348, allocations: 185.6 kB / 8.138 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.154/1.154, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0009164/0.0009163, allocations: 97.81 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08925/0.09021, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.2686, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08779/0.3564, allocations: 85.74 MB / 472.7 MB, free: 1.023 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.3567, allocations: 87.89 kB / 472.8 MB, free: 0.9375 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.2087/0.5654, allocations: 40.33 MB / 0.5011 GB, free: 98.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.5655, allocations: 10.59 kB / 0.5011 GB, free: 98.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004453/0.5659, allocations: 278 kB / 0.5014 GB, free: 98.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002927/0.5689, allocations: 1.879 MB / 0.5032 GB, free: 97.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.343e-05/0.569, allocations: 46.95 kB / 0.5033 GB, free: 97.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/0.5692, allocations: 34.31 kB / 0.5033 GB, free: 97.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004915/0.5697, allocations: 271.7 kB / 0.5036 GB, free: 97.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004682/0.5702, allocations: 322.9 kB / 0.5039 GB, free: 97.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.5702, allocations: 0.75 kB / 0.5039 GB, free: 97.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/0.5702, allocations: 3.312 kB / 0.5039 GB, free: 97.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.5702, allocations: 12.16 kB / 0.5039 GB, free: 97.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004095/0.5743, allocations: 3.008 MB / 0.5068 GB, free: 96.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002708/0.5746, allocations: 177.2 kB / 0.507 GB, free: 96.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.5748, allocations: 141.8 kB / 0.5071 GB, free: 96.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.883e-05/0.5749, allocations: 9.594 kB / 0.5072 GB, free: 96.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.5749, allocations: 42.88 kB / 0.5072 GB, free: 95.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.435e-06/0.5749, allocations: 0 / 0.5072 GB, free: 95.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.003264/0.5782, allocations: 2.05 MB / 0.5092 GB, free: 94.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.064e-05/0.5782, allocations: 85.36 kB / 0.5093 GB, free: 94.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009272/0.5875, allocations: 4.692 MB / 0.5139 GB, free: 92.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.22e-05/0.5876, allocations: 29.73 kB / 0.5139 GB, free: 92.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003651/0.588, allocations: 497 kB / 0.5144 GB, free: 92.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.5881, allocations: 154.8 kB / 0.5145 GB, free: 92.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.156e-05/0.5881, allocations: 0 / 0.5145 GB, free: 92.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.378e-05/0.5882, allocations: 325 kB / 0.5148 GB, free: 91.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.5884, allocations: 124.4 kB / 0.5149 GB, free: 91.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.5886, allocations: 194.6 kB / 0.5151 GB, free: 91.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.5888, allocations: 147.5 kB / 0.5153 GB, free: 91.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5889, allocations: 4 kB / 0.5153 GB, free: 91.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00249/0.5914, allocations: 1.024 MB / 0.5163 GB, free: 90.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.5914, allocations: 7.703 kB / 0.5163 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.5914, allocations: 4.938 kB / 0.5163 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004407/0.5918, allocations: 138.9 kB / 0.5164 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004257/0.5923, allocations: 98.61 kB / 0.5165 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007467/0.593, allocations: 0.7579 MB / 0.5173 GB, free: 89.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006889/0.5938, allocations: 16.05 kB / 0.5173 GB, free: 89.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.5938, allocations: 19.61 kB / 0.5173 GB, free: 89.33 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: 8 * 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 (47): * Single equations (assignments): 46 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.594, allocations: 110.4 kB / 0.5174 GB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004093/0.5944, allocations: 268.4 kB / 0.5176 GB, free: 88.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/0.5958, allocations: 0.738 MB / 0.5184 GB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.5958, allocations: 7.938 kB / 0.5184 GB, free: 88.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5958, allocations: 4 kB / 0.5184 GB, free: 88.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.5958, allocations: 3.188 kB / 0.5184 GB, free: 88.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/0.5977, allocations: 1.618 MB / 0.52 GB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.5977, allocations: 0 / 0.52 GB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005233/0.5983, allocations: 95.31 kB / 0.5201 GB, free: 87.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002608/0.5985, allocations: 100.5 kB / 0.5202 GB, free: 86.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.504e-05/0.5986, allocations: 4 kB / 0.5202 GB, free: 86.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005022/0.5991, allocations: 0.6458 MB / 0.5208 GB, free: 86.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.5991, allocations: 4 kB / 0.5208 GB, free: 86.32 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001331/0.6004, allocations: 1.029 MB / 0.5218 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001597/0.6021, allocations: 1.631 MB / 0.5234 GB, free: 83.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/0.6032, allocations: 0.6702 MB / 0.524 GB, free: 83.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003805/0.6036, allocations: 4 kB / 0.524 GB, free: 83.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006403/0.6042, allocations: 11.7 kB / 0.5241 GB, free: 83.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.761e-05/0.6043, allocations: 27.64 kB / 0.5241 GB, free: 83.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.6043, allocations: 19.94 kB / 0.5241 GB, free: 83.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00462/0.609, allocations: 3.64 MB / 0.5277 GB, free: 79.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001759/0.6108, allocations: 301.4 kB / 0.5279 GB, free: 79.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006921/0.6115, allocations: 339.3 kB / 0.5283 GB, free: 79.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006838/0.6122, allocations: 342.1 kB / 0.5286 GB, free: 78.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.6122, allocations: 0 / 0.5286 GB, free: 78.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000289/0.6125, allocations: 190.3 kB / 0.5288 GB, free: 78.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.6136, allocations: 168.5 kB / 0.5289 GB, free: 78.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007794/0.6214, allocations: 4.813 MB / 0.5336 GB, free: 74.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002015/0.6234, allocations: 2.004 MB / 0.5356 GB, free: 71.99 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.6235, allocations: 0 / 0.5356 GB, free: 71.99 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1)