Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001123/0.001123, allocations: 197.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.611/1.611, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008744/0.0008745, allocations: 95.17 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.429e-05/2.433e-05, allocations: 0 / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 51.48 MB / 395.3 MB, free: 4.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4046/0.5155, allocations: 122.8 MB / 0.5059 GB, free: 3.207 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.5158, allocations: 95.84 kB / 0.506 GB, free: 3.156 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5347/1.051, allocations: 104.7 MB / 0.6083 GB, free: 74.47 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.893e-06/1.051, allocations: 0 / 0.6083 GB, free: 74.47 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004648/1.051, allocations: 98.98 kB / 0.6084 GB, free: 74.46 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1076 * Number of variables: 1076 Notification: Performance of Generate backend data structure: time 0.01428/1.065, allocations: 4.234 MB / 0.6126 GB, free: 72.78 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/1.065, allocations: 8.656 kB / 0.6126 GB, free: 72.78 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006706/1.072, allocations: 0.9623 MB / 0.6135 GB, free: 72.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/1.086, allocations: 3.976 MB / 0.6174 GB, free: 71.83 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005076/1.086, allocations: 347.5 kB / 0.6177 GB, free: 71.63 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001693/1.088, allocations: 252.1 kB / 0.618 GB, free: 71.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00977/1.098, allocations: 3.944 MB / 0.6218 GB, free: 71.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/1.109, allocations: 4.6 MB / 0.6263 GB, free: 71.08 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.55e-05/1.109, allocations: 6.984 kB / 0.6263 GB, free: 71.08 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003609/1.109, allocations: 3.031 kB / 0.6263 GB, free: 71.08 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001971/1.109, allocations: 166.6 kB / 0.6265 GB, free: 71.07 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02834/1.138, allocations: 17.26 MB / 0.6433 GB, free: 61.83 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005441/1.143, allocations: 8.274 MB / 0.6514 GB, free: 54.47 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002976/1.146, allocations: 2.072 MB / 0.6534 GB, free: 53.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008597/1.155, allocations: 6.123 MB / 0.6594 GB, free: 50.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001521/1.156, allocations: 1.153 MB / 0.6605 GB, free: 49.64 MB / 442.7 MB Notification: Performance of pre-optimization done (n=176): time 3.206e-06/1.157, allocations: 0 / 0.6605 GB, free: 49.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=208): time 0.01639/1.173, allocations: 7.527 MB / 0.6679 GB, free: 46.56 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.534e-05/1.173, allocations: 343.3 kB / 0.6682 GB, free: 46.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002613/1.176, allocations: 1.812 MB / 0.67 GB, free: 45.43 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001801/1.176, allocations: 37.2 kB / 0.67 GB, free: 45.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/1.177, allocations: 1.942 MB / 0.6719 GB, free: 43.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004595/1.178, allocations: 0.6689 MB / 0.6726 GB, free: 43.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/1.178, allocations: 0 / 0.6726 GB, free: 43.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/1.178, allocations: 406 kB / 0.6729 GB, free: 43.05 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/1.179, allocations: 0.994 MB / 0.6739 GB, free: 42.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/1.181, allocations: 1.743 MB / 0.6756 GB, free: 41.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00257/1.183, allocations: 1.515 MB / 0.6771 GB, free: 40.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/1.183, allocations: 3.531 kB / 0.6771 GB, free: 40.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=323) (initialization): time 0.006327/1.19, allocations: 3.863 MB / 0.6809 GB, free: 39.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001434/1.191, allocations: 8.29 MB / 0.689 GB, free: 30.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-05/1.191, allocations: 22.12 kB / 0.689 GB, free: 30.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002392/1.194, allocations: 0.9842 MB / 0.69 GB, free: 29.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002125/1.196, allocations: 480.2 kB / 0.6904 GB, free: 29.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/1.208, allocations: 14.6 MB / 0.7047 GB, free: 18.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002672/1.21, allocations: 122.2 kB / 0.7048 GB, free: 18.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000373/1.211, allocations: 105.6 kB / 0.7049 GB, free: 17.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/1.211, allocations: 3.5 kB / 0.7049 GB, free: 17.99 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006362/1.217, allocations: 3.553 MB / 0.7084 GB, free: 16.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.486e-05/1.217, allocations: 21.5 kB / 0.7084 GB, free: 16.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002153/1.22, allocations: 0.9864 MB / 0.7093 GB, free: 16.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/1.221, allocations: 463.8 kB / 0.7098 GB, free: 16.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/1.233, allocations: 14.6 MB / 0.724 GB, free: 4.137 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002995/1.236, allocations: 109.2 kB / 0.7241 GB, free: 4.055 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002844/1.236, allocations: 111.5 kB / 0.7243 GB, free: 3.953 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[3]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[1]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[2]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 261 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 22,(1,100.0%) 12,(2,100.0%) 6,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006708/1.237, allocations: 202.6 kB / 0.7244 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006124/1.243, allocations: 3.129 MB / 0.7275 GB, free: 1.082 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006095/1.244, allocations: 263.8 kB / 0.7278 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008223/1.252, allocations: 3.378 MB / 0.731 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/1.252, allocations: 20 kB / 0.7311 GB, free: 14.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/1.252, allocations: 3.953 kB / 0.7311 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.077e-05/1.252, allocations: 15.06 kB / 0.7311 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01329/1.265, allocations: 6.559 MB / 0.7375 GB, free: 9.059 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/1.266, allocations: 0 / 0.7375 GB, free: 9.059 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/1.267, allocations: 276.3 kB / 0.7378 GB, free: 8.828 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002477/1.269, allocations: 1.028 MB / 0.7388 GB, free: 8.008 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001973/1.27, allocations: 27.73 kB / 0.7388 GB, free: 7.988 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3104/1.58, allocations: 11.37 MB / 0.7499 GB, free: 79.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.58, allocations: 2.5 kB / 0.7499 GB, free: 79.01 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007462/1.588, allocations: 4.668 MB / 0.7545 GB, free: 78.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001466/1.589, allocations: 0.5627 MB / 0.755 GB, free: 78.51 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004259/1.589, allocations: 27.75 kB / 0.755 GB, free: 78.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/1.591, allocations: 93.48 kB / 0.7551 GB, free: 78.51 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00046/1.591, allocations: 232.3 kB / 0.7553 GB, free: 78.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/1.591, allocations: 62.09 kB / 0.7554 GB, free: 78.51 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0022/1.594, allocations: 1.353 MB / 0.7567 GB, free: 78.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.594, allocations: 0 / 0.7567 GB, free: 78.36 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005165/1.599, allocations: 1.333 MB / 0.758 GB, free: 78.36 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.strayReluctance.Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 {5 51,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007584/1.606, allocations: 5.904 MB / 0.7638 GB, free: 77.06 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0087/1.615, allocations: 6.31 MB / 0.7699 GB, free: 75.33 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.128e-06/1.615, allocations: 0 / 0.7699 GB, free: 75.33 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00314/1.618, allocations: 2.058 MB / 0.772 GB, free: 74.88 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/1.622, allocations: 496.8 kB / 0.7724 GB, free: 74.87 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01875/1.64, allocations: 7.328 MB / 0.7796 GB, free: 73.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003245/1.644, allocations: 2.92 MB / 0.7824 GB, free: 72.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004292/1.648, allocations: 0.9884 MB / 0.7834 GB, free: 72.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002131/1.65, allocations: 1.551 MB / 0.7849 GB, free: 72.57 MB / 458.7 MB Notification: Performance of SimCode: time 1.102e-06/1.65, allocations: 0.9375 kB / 0.7849 GB, free: 72.57 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1263/1.776, allocations: 74.04 MB / 0.8572 GB, free: 51.24 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/1.777, allocations: 196.9 kB / 0.8574 GB, free: 51.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.419/6.196, allocations: 1.312 kB / 0.8574 GB, free: 51.04 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat