Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|lossPower_e|lossPower_m",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|lossPower_e|lossPower_m",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses") [: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.001693/0.001692, allocations: 182.1 kB / 8.151 MB, free: 2.039 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.682/1.682, allocations: 205.2 MB / 213.8 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001297/0.001297, allocations: 95.72 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.548e-06/9.708e-06, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.239, allocations: 47.56 MB / 361.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1517/0.3907, allocations: 98.16 MB / 460 MB, free: 3.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/0.3911, allocations: 82.02 kB / 460.1 MB, free: 3.785 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.304/1.695, allocations: 301.9 MB / 0.7441 GB, free: 51.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006331/1.696, allocations: 190.4 kB / 0.7443 GB, free: 51.7 MB / 410.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.04565/1.742, allocations: 8.632 MB / 0.7527 GB, free: 48.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/1.742, allocations: 7.375 kB / 0.7527 GB, free: 48.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03847/1.78, allocations: 3.912 MB / 0.7565 GB, free: 44.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02144/1.802, allocations: 5.8 MB / 0.7622 GB, free: 39.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009598/1.803, allocations: 296 kB / 0.7625 GB, free: 38.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004511/1.807, allocations: 499.9 kB / 0.763 GB, free: 38.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0385/1.846, allocations: 12.22 MB / 0.7749 GB, free: 26.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0502/1.896, allocations: 13.97 MB / 0.7885 GB, free: 11.83 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004915/1.897, allocations: 15.84 kB / 0.7886 GB, free: 11.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003974/1.901, allocations: 7.75 kB / 0.7886 GB, free: 11.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008567/1.901, allocations: 0.627 MB / 0.7892 GB, free: 11.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3152/2.217, allocations: 44.31 MB / 0.8324 GB, free: 98.53 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02189/2.239, allocations: 8.981 MB / 0.8412 GB, free: 98.46 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0179/2.257, allocations: 7.263 MB / 0.8483 GB, free: 98.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001309/2.258, allocations: 281.9 kB / 0.8486 GB, free: 98.26 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/2.258, allocations: 100.5 kB / 0.8487 GB, free: 98.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=817): time 1.335e-05/2.258, allocations: 0 / 0.8487 GB, free: 98.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=817): time 0.04292/2.301, allocations: 13.8 MB / 0.8621 GB, free: 97.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.432e-05/2.301, allocations: 153.2 kB / 0.8623 GB, free: 97.67 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004617/2.306, allocations: 1.648 MB / 0.8639 GB, free: 97.51 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001928/2.308, allocations: 29.2 kB / 0.8639 GB, free: 97.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001455/2.309, allocations: 2.412 MB / 0.8663 GB, free: 96.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004556/2.314, allocations: 2.572 MB / 0.8688 GB, free: 94.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002082/2.316, allocations: 0 / 0.8688 GB, free: 94.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001133/2.317, allocations: 0.6096 MB / 0.8694 GB, free: 94.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01459/2.332, allocations: 5.224 MB / 0.8745 GB, free: 94.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01567/2.348, allocations: 6.049 MB / 0.8804 GB, free: 91.37 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01939/2.367, allocations: 6.365 MB / 0.8866 GB, free: 89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.122e-05/2.367, allocations: 3.719 kB / 0.8866 GB, free: 89 MB / 426.7 MB Notification: Performance of matching and sorting (n=922) (initialization): time 0.04804/2.415, allocations: 14.53 MB / 0.9008 GB, free: 83.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/2.415, allocations: 3.812 kB / 0.9008 GB, free: 83.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001196/2.415, allocations: 14.25 kB / 0.9008 GB, free: 83.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01563/2.431, allocations: 4.157 MB / 0.9049 GB, free: 82.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01071/2.442, allocations: 1.027 MB / 0.9059 GB, free: 81.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02459/2.467, allocations: 11.79 MB / 0.9174 GB, free: 71.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007196/2.474, allocations: 494.7 kB / 0.9179 GB, free: 70.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002499/2.476, allocations: 255.2 kB / 0.9181 GB, free: 70.66 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: reluctance_e.Phi.re:VARIABLE(unit = "Wb" ) "Real part of complex magnetic flux" type: Real resistor_e.resistor[2].i.re:VARIABLE(unit = "A" ) "Real 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] resistor_e.resistor[3].i.re:VARIABLE(unit = "A" ) "Real 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] reluctance_e.Phi.im:VARIABLE(unit = "Wb" ) "Imaginary part of complex magnetic flux" type: Real resistor_e.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor_e.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor_e.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_e.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary 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: powerb_m.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor_m.resistor[2].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[1].i.im:VARIABLE(unit = "A" ) "Imaginary 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[3].i.re:VARIABLE(unit = "A" ) "Real 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] converter_m.Phi.im:VARIABLE(unit = "Wb" ) "Imaginary part of complex magnetic flux" type: Real resistor_m.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] converter_m.Phi.re:VARIABLE(unit = "Wb" ) "Real part of complex magnetic flux" type: Real 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,14 67,6 9,14 90} Notification: Performance of prepare postOptimizeDAE: time 0.004544/2.481, allocations: 228.7 kB / 0.9183 GB, free: 70.56 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002944/2.484, allocations: 390.3 kB / 0.9187 GB, free: 70.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05147/2.535, allocations: 15.4 MB / 0.9338 GB, free: 57.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04084/2.576, allocations: 13.77 MB / 0.9472 GB, free: 45.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.332e-05/2.576, allocations: 0 / 0.9472 GB, free: 45.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002222/2.577, allocations: 35.5 kB / 0.9472 GB, free: 45.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07895/2.656, allocations: 26.36 MB / 0.973 GB, free: 23.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001251/2.656, allocations: 0 / 0.973 GB, free: 23.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009724/2.666, allocations: 0.8924 MB / 0.9738 GB, free: 22.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01698/2.683, allocations: 4.312 MB / 0.9781 GB, free: 18.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002305/2.685, allocations: 95.77 kB / 0.9781 GB, free: 18.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02385/2.709, allocations: 11.2 MB / 0.9891 GB, free: 8.707 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/2.709, allocations: 3.062 kB / 0.9891 GB, free: 8.707 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2509/2.96, allocations: 23.53 MB / 1.012 GB, free: 93.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006778/2.967, allocations: 1.739 MB / 1.014 GB, free: 93.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003183/2.97, allocations: 6.969 kB / 1.014 GB, free: 93.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007686/2.978, allocations: 191 kB / 1.014 GB, free: 93.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00344/2.981, allocations: 0.5483 MB / 1.014 GB, free: 93.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002491/2.984, allocations: 215.6 kB / 1.015 GB, free: 93.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003498/2.987, allocations: 1.248 MB / 1.016 GB, free: 93.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01145/2.999, allocations: 2.043 MB / 1.018 GB, free: 93.54 MB / 426.7 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.002732/3.002, allocations: 232.5 kB / 1.018 GB, free: 93.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03693/3.038, allocations: 12.74 MB / 1.031 GB, free: 93.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/3.039, allocations: 2.906 kB / 1.031 GB, free: 93.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02205/3.061, allocations: 6.735 MB / 1.037 GB, free: 93.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007849/3.069, allocations: 0.4983 MB / 1.038 GB, free: 93.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05971/3.128, allocations: 17.29 MB / 1.055 GB, free: 90.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01891/3.147, allocations: 6.342 MB / 1.061 GB, free: 90.06 MB / 426.7 MB Notification: Performance of SimCode: time 2.104e-06/3.147, allocations: 0 / 1.061 GB, free: 90.06 MB / 426.7 MB Notification: Performance of Templates: time 0.629/3.776, allocations: 282.6 MB / 1.337 GB, free: 7.906 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches