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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002744/0.002744, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.164/2.164, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00158/0.00158, allocations: 91.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.1e-05/2.103e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3896, allocations: 47.56 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1649/0.5545, allocations: 98.23 MB / 460.7 MB, free: 4.031 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003569/0.555, allocations: 89.06 kB / 460.8 MB, free: 3.945 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.512/2.067, allocations: 303.9 MB / 0.7467 GB, free: 67.63 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.355e-06/2.067, allocations: 3.625 kB / 0.7467 GB, free: 67.63 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.00065/2.068, allocations: 190.6 kB / 0.7469 GB, free: 67.61 MB / 427.1 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.04425/2.112, allocations: 8.726 MB / 0.7554 GB, free: 63.75 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/2.112, allocations: 11.75 kB / 0.7555 GB, free: 63.75 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03447/2.146, allocations: 4.186 MB / 0.7595 GB, free: 59.62 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01966/2.166, allocations: 5.797 MB / 0.7652 GB, free: 53.79 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009018/2.167, allocations: 292 kB / 0.7655 GB, free: 53.51 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004307/2.171, allocations: 0.5023 MB / 0.766 GB, free: 53.01 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03399/2.205, allocations: 11.96 MB / 0.7777 GB, free: 41.04 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04528/2.251, allocations: 13.72 MB / 0.7911 GB, free: 27.04 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004461/2.251, allocations: 11.91 kB / 0.7911 GB, free: 27.02 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003261/2.255, allocations: 4 kB / 0.7911 GB, free: 27.02 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008679/2.255, allocations: 0.6036 MB / 0.7917 GB, free: 26.41 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4532/2.709, allocations: 43.91 MB / 0.8345 GB, free: 59.96 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02574/2.735, allocations: 12.09 MB / 0.8463 GB, free: 56.97 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01757/2.752, allocations: 7.1 MB / 0.8533 GB, free: 56.89 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001425/2.754, allocations: 268.2 kB / 0.8535 GB, free: 56.77 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001231/2.754, allocations: 114.1 kB / 0.8536 GB, free: 56.72 MB / 427.1 MB Notification: Performance of pre-optimization done (n=817): time 1.303e-05/2.754, allocations: 0 / 0.8536 GB, free: 56.72 MB / 427.1 MB Notification: Performance of matching and sorting (n=817): time 0.04231/2.796, allocations: 14.05 MB / 0.8674 GB, free: 56.26 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.254e-05/2.796, allocations: 149 kB / 0.8675 GB, free: 56.16 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004061/2.8, allocations: 1.612 MB / 0.8691 GB, free: 55.99 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001927/2.802, allocations: 25.7 kB / 0.8691 GB, free: 55.96 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002259/2.805, allocations: 2.7 MB / 0.8717 GB, free: 54.87 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004952/2.81, allocations: 2.572 MB / 0.8742 GB, free: 53.02 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002121/2.812, allocations: 2.906 kB / 0.8742 GB, free: 53.02 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.001161/2.813, allocations: 0.6061 MB / 0.8748 GB, free: 52.58 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01303/2.826, allocations: 5 MB / 0.8797 GB, free: 50.56 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0142/2.84, allocations: 5.809 MB / 0.8854 GB, free: 47.82 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02078/2.861, allocations: 7.044 MB / 0.8923 GB, free: 45.28 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.769e-05/2.861, allocations: 7.078 kB / 0.8923 GB, free: 45.28 MB / 427.1 MB Notification: Performance of matching and sorting (n=922) (initialization): time 0.04473/2.906, allocations: 14.81 MB / 0.9067 GB, free: 39.76 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.397e-05/2.906, allocations: 11.56 kB / 0.9067 GB, free: 39.76 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-05/2.906, allocations: 21.38 kB / 0.9068 GB, free: 39.76 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01488/2.921, allocations: 4.3 MB / 0.911 GB, free: 38.39 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00936/2.93, allocations: 1.092 MB / 0.912 GB, free: 37.57 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01945/2.95, allocations: 10.85 MB / 0.9226 GB, free: 27.8 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007748/2.958, allocations: 0.6307 MB / 0.9232 GB, free: 27.29 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002387/2.96, allocations: 251.1 kB / 0.9235 GB, free: 27.06 MB / 427.1 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.00438/2.965, allocations: 307.8 kB / 0.9238 GB, free: 26.88 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03962/3.004, allocations: 14.05 MB / 0.9375 GB, free: 14.85 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002846/3.007, allocations: 394.3 kB / 0.9379 GB, free: 14.46 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04591/3.053, allocations: 15.51 MB / 0.953 GB, free: 1.617 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05018/3.103, allocations: 14.53 MB / 0.9672 GB, free: 6.824 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.744e-05/3.103, allocations: 4 kB / 0.9672 GB, free: 6.82 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001995/3.104, allocations: 38.98 kB / 0.9673 GB, free: 6.812 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08432/3.188, allocations: 26.66 MB / 0.9933 GB, free: 0.9414 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.827e-05/3.188, allocations: 0 / 0.9933 GB, free: 0.9414 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008747/3.197, allocations: 0.9503 MB / 0.9942 GB, free: 240 kB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3861/3.583, allocations: 4.481 MB / 0.9986 GB, free: 92.99 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002139/3.585, allocations: 88.91 kB / 0.9987 GB, free: 92.99 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02104/3.606, allocations: 10.82 MB / 1.009 GB, free: 90.86 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.266e-06/3.606, allocations: 0 / 1.009 GB, free: 90.86 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0913/3.698, allocations: 22.77 MB / 1.031 GB, free: 90.25 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00871/3.706, allocations: 1.729 MB / 1.033 GB, free: 89.95 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002648/3.709, allocations: 0 / 1.033 GB, free: 89.95 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006892/3.716, allocations: 282.7 kB / 1.033 GB, free: 89.95 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002954/3.719, allocations: 0.5704 MB / 1.034 GB, free: 89.94 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002146/3.721, allocations: 215.7 kB / 1.034 GB, free: 89.94 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.002732/3.724, allocations: 1.219 MB / 1.035 GB, free: 89.83 MB / 459.1 MB Notification: Performance of sort global known variables: time 8.62e-07/3.724, allocations: 0 / 1.035 GB, free: 89.83 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01038/3.734, allocations: 2.038 MB / 1.037 GB, free: 89.58 MB / 459.1 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,11 73,6 9,12 95} Notification: Performance of Backend phase and start with SimCode phase: time 0.06303/3.798, allocations: 23.53 MB / 1.06 GB, free: 83.46 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.03186/3.829, allocations: 12.21 MB / 1.072 GB, free: 78.91 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/3.829, allocations: 0.5625 kB / 1.072 GB, free: 78.91 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01949/3.849, allocations: 6.494 MB / 1.079 GB, free: 76.55 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007377/3.856, allocations: 0.5226 MB / 1.079 GB, free: 76.45 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06145/3.918, allocations: 19.29 MB / 1.098 GB, free: 60.41 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01222/3.93, allocations: 6.023 MB / 1.104 GB, free: 55.83 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008966/3.939, allocations: 2.946 MB / 1.107 GB, free: 53.1 MB / 459.1 MB Notification: Performance of SimCode: time 2.145e-06/3.939, allocations: 0 / 1.107 GB, free: 53.1 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.434/9.373, allocations: 339.1 MB / 1.438 GB, free: 87.88 MB / 491.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat