Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses",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.001025/0.001025, allocations: 178.9 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.111/1.111, allocations: 205.2 MB / 214.1 MB, free: 1.836 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008902/0.0008902, allocations: 75.42 kB / 262.1 MB, free: 1.789 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1358/0.1368, allocations: 52.98 MB / 315.1 MB, free: 22.95 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06379/0.2006, allocations: 47.59 MB / 362.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2151/0.4157, allocations: 98.44 MB / 461.1 MB, free: 13.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.4159, allocations: 82.27 kB / 461.2 MB, free: 13.13 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: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.8502/1.266, allocations: 310.7 MB / 0.7538 GB, free: 42.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/1.266, allocations: 12.28 kB / 0.7538 GB, free: 42.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02297/1.289, allocations: 3.904 MB / 0.7576 GB, free: 42.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01066/1.3, allocations: 5.805 MB / 0.7632 GB, free: 41.37 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003448/1.3, allocations: 296.2 kB / 0.7635 GB, free: 41.37 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00178/1.302, allocations: 493.3 kB / 0.764 GB, free: 41.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01873/1.321, allocations: 12.23 MB / 0.7759 GB, free: 41.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02455/1.345, allocations: 13.96 MB / 0.7896 GB, free: 39.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001824/1.346, allocations: 11.91 kB / 0.7896 GB, free: 39.94 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000942/1.347, allocations: 7.938 kB / 0.7896 GB, free: 39.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004223/1.347, allocations: 0.627 MB / 0.7902 GB, free: 39.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06367/1.411, allocations: 44.3 MB / 0.8335 GB, free: 3.355 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01252/1.423, allocations: 9.015 MB / 0.8423 GB, free: 11.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01003/1.433, allocations: 7.268 MB / 0.8494 GB, free: 4.012 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007002/1.434, allocations: 273.4 kB / 0.8496 GB, free: 3.766 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.871e-05/1.434, allocations: 107.7 kB / 0.8497 GB, free: 3.648 MB / 442.7 MB Notification: Performance of pre-optimization done (n=817): time 1.112e-05/1.434, allocations: 0 / 0.8497 GB, free: 3.648 MB / 442.7 MB Notification: Performance of matching and sorting (n=817): time 0.2374/1.671, allocations: 13.81 MB / 0.8632 GB, free: 104.1 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/1.672, allocations: 148.1 kB / 0.8634 GB, free: 103.9 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002081/1.674, allocations: 1.641 MB / 0.865 GB, free: 103.8 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000597/1.674, allocations: 34.48 kB / 0.865 GB, free: 103.8 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008556/1.675, allocations: 2.479 MB / 0.8674 GB, free: 102.9 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001684/1.677, allocations: 2.572 MB / 0.8699 GB, free: 101.3 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004596/1.677, allocations: 3.188 kB / 0.8699 GB, free: 101.3 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0003169/1.678, allocations: 0.6024 MB / 0.8705 GB, free: 100.9 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00611/1.684, allocations: 5.225 MB / 0.8756 GB, free: 100.9 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006581/1.69, allocations: 6.043 MB / 0.8815 GB, free: 100.3 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008975/1.699, allocations: 6.368 MB / 0.8878 GB, free: 100.2 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.797e-05/1.699, allocations: 3.406 kB / 0.8878 GB, free: 100.2 MB / 442.8 MB Notification: Performance of matching and sorting (n=922) (initialization): time 0.01988/1.719, allocations: 14.64 MB / 0.902 GB, free: 99.77 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/1.719, allocations: 6.75 kB / 0.9021 GB, free: 99.77 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-05/1.719, allocations: 18.72 kB / 0.9021 GB, free: 99.77 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007843/1.727, allocations: 4.336 MB / 0.9063 GB, free: 99.69 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005257/1.732, allocations: 1.029 MB / 0.9073 GB, free: 99.69 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/1.744, allocations: 11.21 MB / 0.9183 GB, free: 96.85 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004055/1.748, allocations: 0.5314 MB / 0.9188 GB, free: 96.55 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006852/1.748, allocations: 255.5 kB / 0.919 GB, free: 96.49 MB / 442.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: loss_e.conductor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] loss_e.conductor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] loss_e.conductor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] loss_e.conductor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_e.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] loss_e.conductor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_e.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_e.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_e.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistor_m.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_m.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor_m.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor_m.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_m.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_m.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_m.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_m.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_m.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (559): * Single equations (assignments): 484 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 71 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,12 72,6 9,12 95} Notification: Performance of prepare postOptimizeDAE: time 0.001252/1.75, allocations: 293.3 kB / 0.9193 GB, free: 96.36 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008977/1.751, allocations: 388.5 kB / 0.9197 GB, free: 96.15 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.022/1.773, allocations: 15.4 MB / 0.9347 GB, free: 90.5 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01961/1.792, allocations: 13.77 MB / 0.9482 GB, free: 85.38 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.081e-05/1.792, allocations: 3 kB / 0.9482 GB, free: 85.38 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-05/1.792, allocations: 31.31 kB / 0.9482 GB, free: 85.38 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04127/1.834, allocations: 26.31 MB / 0.9739 GB, free: 65.69 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.643e-05/1.834, allocations: 2.594 kB / 0.9739 GB, free: 65.69 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004747/1.839, allocations: 0.8913 MB / 0.9748 GB, free: 65 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008578/1.847, allocations: 4.321 MB / 0.979 GB, free: 61.47 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001268/1.848, allocations: 87.5 kB / 0.9791 GB, free: 61.41 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/1.86, allocations: 11.19 MB / 0.99 GB, free: 51.3 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.86, allocations: 3.969 kB / 0.99 GB, free: 51.3 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0308/1.891, allocations: 22.93 MB / 1.012 GB, free: 31.14 MB / 442.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.199/2.09, allocations: 50.46 MB / 1.062 GB, free: 101.1 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003366/2.093, allocations: 1.726 MB / 1.063 GB, free: 101.1 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009109/2.094, allocations: 3.781 kB / 1.063 GB, free: 101.1 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002791/2.097, allocations: 181.4 kB / 1.064 GB, free: 101.1 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001024/2.098, allocations: 0.5436 MB / 1.064 GB, free: 101 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005813/2.099, allocations: 219.3 kB / 1.064 GB, free: 101 MB / 442.8 MB Notification: Performance of sort global known variables: time 0.001388/2.1, allocations: 1.246 MB / 1.065 GB, free: 100.9 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.005141/2.105, allocations: 2.055 MB / 1.067 GB, free: 100.9 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (converter_m.port_p.reference.gamma,loss_e.conductor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (488): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 71 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,12 72,6 9,12 95} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007528/2.106, allocations: 231.1 kB / 1.068 GB, free: 100.8 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01658/2.123, allocations: 12.7 MB / 1.08 GB, free: 100.6 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/2.123, allocations: 6.219 kB / 1.08 GB, free: 100.6 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009926/2.132, allocations: 6.732 MB / 1.087 GB, free: 100.5 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003165/2.136, allocations: 499.7 kB / 1.087 GB, free: 100.5 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02625/2.162, allocations: 17.57 MB / 1.104 GB, free: 98.27 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006934/2.169, allocations: 6.534 MB / 1.111 GB, free: 97.36 MB / 442.8 MB Notification: Performance of SimCode: time 6.81e-07/2.169, allocations: 0 / 1.111 GB, free: 97.36 MB / 442.8 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1)