Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001139, allocations: 87.41 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 180.4 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 223.3 MB / 241.2 MB, free: 5.309 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002354/0.0002354, allocations: 6.219 kB / 300.9 MB, free: 5.594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1028, allocations: 50.43 MB / 351.4 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.03503/0.1379, allocations: 36.01 MB / 387.4 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02276/0.1607, allocations: 10.32 MB / 397.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008736/0.1695, allocations: 267.2 kB / 398 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007774/0.1773, allocations: 1.74 MB / 399.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01194/0.1893, allocations: 2.917 MB / 402.6 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006468/0.1958, allocations: 1.445 MB / 404.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02162/0.2174, allocations: 13.33 MB / 417.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2836/0.5011, allocations: 18.24 MB / 435.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00999/0.5111, allocations: 4.536 MB / 440.2 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01112/0.5223, allocations: 5.274 MB / 445.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0036/0.526, allocations: 0.7116 MB / 446.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006164/0.5322, allocations: 1.102 MB / 447.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004089/0.5363, allocations: 2.262 MB / 449.5 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005246/0.5415, allocations: 2.368 MB / 451.9 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03757/0.5791, allocations: 21.59 MB / 473.5 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.5792, allocations: 8.031 kB / 473.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5792, allocations: 0 / 473.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008738/0.5801, allocations: 0 / 473.5 MB, free: 15.99 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.03533/0.6154, allocations: 11.97 MB / 485.5 MB, free: 8.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.6155, allocations: 11.31 kB / 485.5 MB, free: 8.402 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007537/0.6231, allocations: 1.743 MB / 487.2 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02978/0.6529, allocations: 5.169 MB / 492.4 MB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01876/0.6717, allocations: 7.322 MB / 499.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001041/0.6728, allocations: 0.8407 MB / 0.4888 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004963/0.6778, allocations: 1.094 MB / 0.4899 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05319/0.731, allocations: 16.55 MB / 0.506 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006861/0.7317, allocations: 11.91 kB / 0.5061 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004703/0.7364, allocations: 460.4 kB / 0.5065 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007134/0.7372, allocations: 0.5774 MB / 0.5071 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03701/0.7742, allocations: 14.72 MB / 0.5214 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1146/0.8888, allocations: 56.46 MB / 0.5766 GB, free: 4.723 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2783/1.167, allocations: 20.88 MB / 0.597 GB, free: 145.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005825/1.173, allocations: 3.371 MB / 0.6002 GB, free: 145.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01822/1.191, allocations: 9.586 MB / 0.6096 GB, free: 144.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/1.191, allocations: 67.83 kB / 0.6097 GB, free: 144.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=319): time 5.901e-06/1.191, allocations: 1.531 kB / 0.6097 GB, free: 144.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=346): time 0.03523/1.227, allocations: 17.7 MB / 0.627 GB, free: 138.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.712e-05/1.227, allocations: 115.6 kB / 0.6271 GB, free: 138.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008215/1.235, allocations: 5.134 MB / 0.6321 GB, free: 136.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006479/1.236, allocations: 80.38 kB / 0.6322 GB, free: 136.7 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002746/1.238, allocations: 5.155 MB / 0.6372 GB, free: 132.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001317/1.24, allocations: 1.214 MB / 0.6384 GB, free: 131.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003986/1.24, allocations: 130.9 kB / 0.6385 GB, free: 131.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002951/1.24, allocations: 0.5584 MB / 0.639 GB, free: 131.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003829/1.244, allocations: 2.67 MB / 0.6417 GB, free: 130.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005061/1.249, allocations: 5.487 MB / 0.647 GB, free: 125.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005276/1.255, allocations: 3.838 MB / 0.6508 GB, free: 123.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.179e-05/1.255, allocations: 29.62 kB / 0.6508 GB, free: 123.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01499/1.27, allocations: 9.308 MB / 0.6599 GB, free: 119.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.635e-05/1.27, allocations: 44 kB / 0.6599 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001367/1.27, allocations: 96 kB / 0.66 GB, free: 118.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002148/1.272, allocations: 0.952 MB / 0.6609 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004973/1.277, allocations: 1.478 MB / 0.6624 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/1.287, allocations: 9.761 MB / 0.6719 GB, free: 107 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006338/1.294, allocations: 413.9 kB / 0.6723 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00153/1.295, allocations: 336 kB / 0.6726 GB, free: 106.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 431 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (770): * Single equations (assignments): 762 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008595/1.304, allocations: 3.751 MB / 0.6763 GB, free: 102.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001322/1.305, allocations: 0.5054 MB / 0.6768 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01042/1.316, allocations: 6.005 MB / 0.6827 GB, free: 95.98 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004388/1.32, allocations: 3.127 MB / 0.6857 GB, free: 92.84 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-05/1.32, allocations: 12 kB / 0.6857 GB, free: 92.83 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.463e-05/1.32, allocations: 17.58 kB / 0.6857 GB, free: 92.81 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02684/1.347, allocations: 14.76 MB / 0.7002 GB, free: 77.97 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/1.347, allocations: 11.28 kB / 0.7002 GB, free: 77.96 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/1.35, allocations: 0.6046 MB / 0.7008 GB, free: 77.36 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002144/1.352, allocations: 0.9133 MB / 0.7016 GB, free: 76.43 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004312/1.352, allocations: 79.97 kB / 0.7017 GB, free: 76.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0111/1.363, allocations: 12.88 MB / 0.7143 GB, free: 62.83 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.363, allocations: 8 kB / 0.7143 GB, free: 62.82 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01324/1.377, allocations: 8.697 MB / 0.7228 GB, free: 53.93 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003179/1.38, allocations: 1.01 MB / 0.7238 GB, free: 52.89 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0015/1.381, allocations: 68 kB / 0.7238 GB, free: 52.83 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003203/1.385, allocations: 207.8 kB / 0.724 GB, free: 52.62 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006474/1.385, allocations: 262.5 kB / 0.7243 GB, free: 52.37 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002546/1.386, allocations: 104.2 kB / 0.7244 GB, free: 52.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006118/1.392, allocations: 3.395 MB / 0.7277 GB, free: 48.89 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.21e-07/1.392, allocations: 0 / 0.7277 GB, free: 48.89 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01046/1.402, allocations: 1.786 MB / 0.7295 GB, free: 47.11 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (301): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01425/1.416, allocations: 9.425 MB / 0.7387 GB, free: 37.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01172/1.428, allocations: 6.966 MB / 0.7455 GB, free: 30.48 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/1.428, allocations: 2 kB / 0.7455 GB, free: 30.48 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005522/1.434, allocations: 3.457 MB / 0.7488 GB, free: 26.96 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007564/1.441, allocations: 1.129 MB / 0.7499 GB, free: 25.86 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3154/1.757, allocations: 55.89 MB / 0.8045 GB, free: 137.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01087/1.768, allocations: 6.553 MB / 0.8109 GB, free: 134.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006394/1.774, allocations: 1.835 MB / 0.8127 GB, free: 134.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005688/1.78, allocations: 4.024 MB / 0.8166 GB, free: 131.3 MB / 478.1 MB Notification: Performance of SimCode: time 6.72e-07/1.78, allocations: 0 / 0.8166 GB, free: 131.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3944/2.174, allocations: 136.4 MB / 0.9498 GB, free: 108.5 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/2.175, allocations: 272.7 kB / 0.9501 GB, free: 108.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.661/7.835, allocations: 0 / 0.9501 GB, free: 108.1 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat