Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 227.2 MB / 245 MB, free: 7.648 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008647/0.0008646, allocations: 103.6 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002009/0.0002009, allocations: 4 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.1949, allocations: 51.48 MB / 409.5 MB, free: 26.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3351/0.5301, allocations: 138.4 MB / 0.5351 GB, free: 45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.5304, allocations: 92.45 kB / 0.5352 GB, free: 44.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3097/0.8401, allocations: 135 MB / 0.667 GB, free: 10.18 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.8401, allocations: 0 / 0.667 GB, free: 10.18 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006089/0.8408, allocations: 139.8 kB / 0.6671 GB, free: 10.04 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01972/0.8605, allocations: 6.102 MB / 0.6731 GB, free: 3.855 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.8606, allocations: 8.031 kB / 0.6731 GB, free: 3.848 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002732/0.8633, allocations: 0.7817 MB / 0.6739 GB, free: 3.055 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006883/0.8702, allocations: 1.194 MB / 0.675 GB, free: 1.852 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2353/1.106, allocations: 4.96 MB / 0.6799 GB, free: 57.46 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003668/1.106, allocations: 437.4 kB / 0.6803 GB, free: 57.45 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001432/1.107, allocations: 0.5553 MB / 0.6808 GB, free: 57.45 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01249/1.12, allocations: 7.21 MB / 0.6879 GB, free: 56.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001269/1.12, allocations: 14.06 kB / 0.6879 GB, free: 56.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004868/1.121, allocations: 241.3 kB / 0.6881 GB, free: 56.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001664/1.121, allocations: 252.3 kB / 0.6884 GB, free: 56.78 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01004/1.131, allocations: 5.853 MB / 0.6941 GB, free: 56.73 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04109/1.172, allocations: 23.95 MB / 0.7175 GB, free: 51.72 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007187/1.179, allocations: 9.063 MB / 0.7263 GB, free: 45.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01216/1.191, allocations: 7.341 MB / 0.7335 GB, free: 43.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/1.191, allocations: 64.56 kB / 0.7336 GB, free: 43.69 MB / 458.7 MB Notification: Performance of pre-optimization done (n=251): time 4.559e-06/1.191, allocations: 0 / 0.7336 GB, free: 43.69 MB / 458.7 MB Notification: Performance of matching and sorting (n=303): time 0.03676/1.228, allocations: 16.42 MB / 0.7496 GB, free: 38.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/1.228, allocations: 90.89 kB / 0.7497 GB, free: 38.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004308/1.233, allocations: 2.97 MB / 0.7526 GB, free: 36.94 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004124/1.233, allocations: 78.55 kB / 0.7526 GB, free: 36.87 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/1.234, allocations: 2.655 MB / 0.7552 GB, free: 34.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000732/1.235, allocations: 1.029 MB / 0.7562 GB, free: 34.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/1.235, allocations: 78.88 kB / 0.7563 GB, free: 33.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/1.235, allocations: 464.9 kB / 0.7568 GB, free: 33.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002303/1.238, allocations: 1.637 MB / 0.7584 GB, free: 33.02 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002615/1.24, allocations: 2.804 MB / 0.7611 GB, free: 30.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002673/1.243, allocations: 2.112 MB / 0.7632 GB, free: 30.11 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-05/1.243, allocations: 9.812 kB / 0.7632 GB, free: 30.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008443/1.251, allocations: 5.747 MB / 0.7688 GB, free: 27.96 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/1.252, allocations: 22.09 kB / 0.7688 GB, free: 27.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.101e-05/1.252, allocations: 38.25 kB / 0.7688 GB, free: 27.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001874/1.253, allocations: 0.8675 MB / 0.7697 GB, free: 27.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003066/1.257, allocations: 0.8846 MB / 0.7706 GB, free: 27.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009116/1.266, allocations: 10.09 MB / 0.7804 GB, free: 20.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003563/1.269, allocations: 253.2 kB / 0.7806 GB, free: 20.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003967/1.27, allocations: 175.6 kB / 0.7808 GB, free: 20.77 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 167 * 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 (432): * Single equations (assignments): 423 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00282/1.273, allocations: 1.618 MB / 0.7824 GB, free: 19.94 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000848/1.273, allocations: 393.7 kB / 0.7828 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007208/1.281, allocations: 4.919 MB / 0.7876 GB, free: 17.63 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/1.281, allocations: 35.97 kB / 0.7876 GB, free: 17.62 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/1.281, allocations: 14.72 kB / 0.7876 GB, free: 17.62 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.181e-05/1.281, allocations: 14.34 kB / 0.7876 GB, free: 17.62 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0156/1.296, allocations: 10.53 MB / 0.7979 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006008/1.302, allocations: 4.165 MB / 0.802 GB, free: 11.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002051/1.304, allocations: 0.5156 MB / 0.8025 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002157/1.307, allocations: 0.9881 MB / 0.8035 GB, free: 10.11 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001876/1.307, allocations: 75.73 kB / 0.8035 GB, free: 10.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01292/1.32, allocations: 15.12 MB / 0.8183 GB, free: 11.33 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/1.32, allocations: 4 kB / 0.8183 GB, free: 11.33 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/1.332, allocations: 7.709 MB / 0.8258 GB, free: 4.113 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002419/1.334, allocations: 0.7957 MB / 0.8266 GB, free: 3.383 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007324/1.335, allocations: 71.28 kB / 0.8267 GB, free: 3.316 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/1.337, allocations: 194.9 kB / 0.8269 GB, free: 3.172 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004801/1.337, allocations: 225.5 kB / 0.8271 GB, free: 3.027 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000193/1.338, allocations: 86.66 kB / 0.8272 GB, free: 2.949 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003696/1.341, allocations: 2.253 MB / 0.8294 GB, free: 1.074 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.61e-07/1.341, allocations: 4 kB / 0.8294 GB, free: 1.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005152/1.347, allocations: 1.292 MB / 0.8306 GB, free: 0 / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (242): * Single equations (assignments): 233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.013/1.36, allocations: 9.795 MB / 0.8402 GB, free: 6.844 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007891/1.367, allocations: 5.024 MB / 0.8451 GB, free: 2.227 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/1.368, allocations: 0 / 0.8451 GB, free: 2.227 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2261/1.594, allocations: 3.197 MB / 0.8482 GB, free: 83.15 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005081/1.599, allocations: 0.8423 MB / 0.849 GB, free: 83.13 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06444/1.663, allocations: 60.07 MB / 0.9077 GB, free: 43.74 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003292/1.667, allocations: 3.644 MB / 0.9113 GB, free: 42.85 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003539/1.67, allocations: 0.8483 MB / 0.9121 GB, free: 42.75 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003091/1.673, allocations: 2.245 MB / 0.9143 GB, free: 42.75 MB / 490.7 MB Notification: Performance of SimCode: time 8.11e-07/1.673, allocations: 7.75 kB / 0.9143 GB, free: 42.74 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1297/1.803, allocations: 98.57 MB / 1.011 GB, free: 8.34 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/1.803, allocations: 252.1 kB / 1.011 GB, free: 8.004 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.982/6.785, allocations: 1.406 kB / 1.011 GB, free: 8.004 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat