Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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/Complex 3.2.3+maint.om/package.mo): time 0.001508/0.001508, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008507/0.0008506, allocations: 84.22 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002443/0.0002443, allocations: 8 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2151, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3716/0.5868, allocations: 167.1 MB / 0.5303 GB, free: 64.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.5872, allocations: 106.3 kB / 0.5304 GB, free: 64.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.076/1.663, allocations: 394.2 MB / 0.9154 GB, free: 40.16 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.935e-06/1.663, allocations: 0 / 0.9154 GB, free: 40.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008922/1.664, allocations: 268.2 kB / 0.9156 GB, free: 40.11 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: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.0354/1.699, allocations: 11.02 MB / 0.9264 GB, free: 36.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.699, allocations: 7.344 kB / 0.9264 GB, free: 36.38 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006981/1.706, allocations: 1.797 MB / 0.9282 GB, free: 36.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02455/1.731, allocations: 4.415 MB / 0.9325 GB, free: 35.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02593/1.757, allocations: 8.9 MB / 0.9412 GB, free: 31.13 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001199/1.758, allocations: 0.8341 MB / 0.942 GB, free: 30.76 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00526/1.764, allocations: 1.073 MB / 0.943 GB, free: 29.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05905/1.823, allocations: 17.52 MB / 0.9601 GB, free: 14.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000759/1.823, allocations: 15.56 kB / 0.9601 GB, free: 14.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005854/1.829, allocations: 474.2 kB / 0.9606 GB, free: 14.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001092/1.83, allocations: 0.6978 MB / 0.9613 GB, free: 13.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04147/1.872, allocations: 15.34 MB / 0.9763 GB, free: 14.32 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3235/2.195, allocations: 58.07 MB / 1.033 GB, free: 38.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01588/2.211, allocations: 17.25 MB / 1.05 GB, free: 30.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0316/2.243, allocations: 19.05 MB / 1.068 GB, free: 28.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.343e-05/2.243, allocations: 91.92 kB / 1.068 GB, free: 28.03 MB / 458.7 MB Notification: Performance of pre-optimization done (n=643): time 8.395e-06/2.243, allocations: 3.969 kB / 1.069 GB, free: 28.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=670): time 0.0577/2.301, allocations: 35.81 MB / 1.103 GB, free: 23.81 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/2.301, allocations: 135 kB / 1.104 GB, free: 23.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00633/2.307, allocations: 3.926 MB / 1.107 GB, free: 22.28 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001286/2.309, allocations: 118.2 kB / 1.108 GB, free: 22.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002488/2.311, allocations: 4.577 MB / 1.112 GB, free: 18.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002777/2.314, allocations: 2.24 MB / 1.114 GB, free: 17.07 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007331/2.315, allocations: 139.2 kB / 1.114 GB, free: 16.96 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005647/2.315, allocations: 0.6189 MB / 1.115 GB, free: 16.52 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007183/2.322, allocations: 4.437 MB / 1.119 GB, free: 14.73 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009164/2.332, allocations: 6.448 MB / 1.126 GB, free: 10.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/2.342, allocations: 5.542 MB / 1.131 GB, free: 8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.639e-05/2.342, allocations: 15.12 kB / 1.131 GB, free: 8 MB / 474.7 MB Notification: Performance of matching and sorting (n=1001) (initialization): time 0.02268/2.365, allocations: 13.26 MB / 1.144 GB, free: 0.8398 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.351e-05/2.365, allocations: 32 kB / 1.144 GB, free: 0.8086 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/2.365, allocations: 60 kB / 1.144 GB, free: 0.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005605/2.371, allocations: 2.491 MB / 1.146 GB, free: 14.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006824/2.377, allocations: 1.537 MB / 1.148 GB, free: 13.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/2.388, allocations: 10.46 MB / 1.158 GB, free: 3.762 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006445/2.394, allocations: 499.5 kB / 1.159 GB, free: 3.387 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001355/2.396, allocations: 337.9 kB / 1.159 GB, free: 3.082 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * 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 (800): * Single equations (assignments): 733 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.2571/2.653, allocations: 3.775 MB / 1.163 GB, free: 85.75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002074/2.655, allocations: 0.5502 MB / 1.163 GB, free: 85.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01792/2.673, allocations: 11.82 MB / 1.175 GB, free: 85.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01113/2.684, allocations: 8.465 MB / 1.183 GB, free: 84.99 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-05/2.684, allocations: 6 kB / 1.183 GB, free: 84.99 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.149e-05/2.684, allocations: 28.03 kB / 1.183 GB, free: 84.99 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04062/2.725, allocations: 24.48 MB / 1.207 GB, free: 83.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.689e-05/2.725, allocations: 3.281 kB / 1.207 GB, free: 83.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004049/2.729, allocations: 0.9203 MB / 1.208 GB, free: 83.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004375/2.733, allocations: 2.442 MB / 1.21 GB, free: 83.73 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009931/2.734, allocations: 142.6 kB / 1.21 GB, free: 83.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/2.747, allocations: 14.19 MB / 1.224 GB, free: 75.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/2.747, allocations: 9 kB / 1.224 GB, free: 75.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02635/2.773, allocations: 18.41 MB / 1.242 GB, free: 66.45 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004462/2.778, allocations: 1.554 MB / 1.244 GB, free: 65.78 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00116/2.779, allocations: 110.5 kB / 1.244 GB, free: 65.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003083/2.782, allocations: 321.8 kB / 1.244 GB, free: 65.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008595/2.783, allocations: 0.4946 MB / 1.245 GB, free: 65.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000401/2.783, allocations: 186.4 kB / 1.245 GB, free: 65.48 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004218/2.787, allocations: 2.924 MB / 1.248 GB, free: 64.39 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/2.787, allocations: 3.562 kB / 1.248 GB, free: 64.39 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00745/2.795, allocations: 2.003 MB / 1.25 GB, free: 64.18 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.excitation.electroMagneticConverter.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 (482): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.02431/2.819, allocations: 20.48 MB / 1.27 GB, free: 53.53 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01779/2.837, allocations: 11.03 MB / 1.28 GB, free: 46.61 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/2.837, allocations: 0 / 1.28 GB, free: 46.61 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01012/2.847, allocations: 5.841 MB / 1.286 GB, free: 41.52 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006231/2.853, allocations: 1.075 MB / 1.287 GB, free: 40.69 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3675/3.221, allocations: 107.8 MB / 1.392 GB, free: 65.75 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01489/3.236, allocations: 6.986 MB / 1.399 GB, free: 64.82 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00764/3.244, allocations: 1.702 MB / 1.401 GB, free: 64.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008641/3.252, allocations: 4.094 MB / 1.405 GB, free: 64.77 MB / 0.4948 GB Notification: Performance of SimCode: time 1.553e-06/3.252, allocations: 0 / 1.405 GB, free: 64.77 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.472/3.724, allocations: 182 MB / 1.583 GB, free: 75.11 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/3.725, allocations: 275.6 kB / 1.583 GB, free: 74.75 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.199/9.923, allocations: 0 / 1.583 GB, free: 74.75 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat