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.SMPM_MTPA.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.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.001022/0.001022, 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.34/1.34, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0007889/0.0007889, allocations: 84.11 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002395/0.0002395, allocations: 15.98 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2001, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3398/0.5399, allocations: 135.9 MB / 0.4999 GB, free: 110.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/0.5404, allocations: 110.5 kB / 0.5 GB, free: 110.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.046/1.586, allocations: 331.6 MB / 0.8238 GB, free: 33.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.576e-06/1.586, allocations: 0 / 0.8238 GB, free: 33.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008735/1.587, allocations: 220.6 kB / 0.824 GB, free: 33.94 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.0313/1.619, allocations: 9.178 MB / 0.833 GB, free: 30.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/1.619, allocations: 9.5 kB / 0.833 GB, free: 30.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006559/1.625, allocations: 1.643 MB / 0.8346 GB, free: 30.85 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03363/1.659, allocations: 5.894 MB / 0.8403 GB, free: 30.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01989/1.679, allocations: 7.459 MB / 0.8476 GB, free: 29.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001013/1.68, allocations: 0.7274 MB / 0.8483 GB, free: 29.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003988/1.684, allocations: 0.9429 MB / 0.8493 GB, free: 29.35 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03763/1.722, allocations: 17.02 MB / 0.8659 GB, free: 28.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005311/1.722, allocations: 13.66 kB / 0.8659 GB, free: 28.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003788/1.726, allocations: 417.4 kB / 0.8663 GB, free: 28.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008692/1.727, allocations: 0.7236 MB / 0.867 GB, free: 28.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0317/1.759, allocations: 15.9 MB / 0.8825 GB, free: 28.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09545/1.854, allocations: 52.8 MB / 0.9341 GB, free: 1.441 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04955/1.904, allocations: 42.64 MB / 0.9757 GB, free: 9.207 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3014/2.205, allocations: 22.08 MB / 0.9973 GB, free: 76.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.755e-05/2.205, allocations: 91.06 kB / 0.9974 GB, free: 76.47 MB / 474.7 MB Notification: Performance of pre-optimization done (n=693): time 8.706e-06/2.205, allocations: 3.062 kB / 0.9974 GB, free: 76.47 MB / 474.7 MB Notification: Performance of matching and sorting (n=701): time 0.08043/2.286, allocations: 41.28 MB / 1.038 GB, free: 69.58 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/2.286, allocations: 110.2 kB / 1.038 GB, free: 69.51 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003496/2.289, allocations: 2.455 MB / 1.04 GB, free: 69.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00111/2.29, allocations: 119.4 kB / 1.04 GB, free: 69.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001844/2.292, allocations: 3.631 MB / 1.044 GB, free: 67.53 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002577/2.295, allocations: 2.312 MB / 1.046 GB, free: 66.03 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004507/2.295, allocations: 130.7 kB / 1.046 GB, free: 66.03 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004401/2.296, allocations: 0.5988 MB / 1.047 GB, free: 65.71 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005928/2.302, allocations: 4.529 MB / 1.051 GB, free: 65.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007363/2.309, allocations: 6.325 MB / 1.057 GB, free: 63.68 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007799/2.317, allocations: 5.61 MB / 1.063 GB, free: 62.35 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-05/2.317, allocations: 16.78 kB / 1.063 GB, free: 62.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.0203/2.337, allocations: 13.72 MB / 1.076 GB, free: 56.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.709e-05/2.337, allocations: 30.06 kB / 1.076 GB, free: 56.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-05/2.337, allocations: 54.88 kB / 1.076 GB, free: 56.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00645/2.344, allocations: 4.013 MB / 1.08 GB, free: 55.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005137/2.349, allocations: 1.236 MB / 1.082 GB, free: 55.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009564/2.359, allocations: 9.662 MB / 1.091 GB, free: 50.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004803/2.364, allocations: 351.3 kB / 1.091 GB, free: 50.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/2.365, allocations: 321.2 kB / 1.092 GB, free: 49.97 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (650): * Single equations (assignments): 598 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * 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,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.007252/2.372, allocations: 3.602 MB / 1.095 GB, free: 48.28 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001674/2.374, allocations: 455.8 kB / 1.096 GB, free: 48.05 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02041/2.394, allocations: 13.01 MB / 1.108 GB, free: 41.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001579/2.394, allocations: 183.4 kB / 1.108 GB, free: 41.38 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/2.394, allocations: 4 kB / 1.108 GB, free: 41.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.089e-05/2.394, allocations: 29.77 kB / 1.108 GB, free: 41.38 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03712/2.432, allocations: 24.86 MB / 1.133 GB, free: 20.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.297e-05/2.432, allocations: 4.438 kB / 1.133 GB, free: 20.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003364/2.435, allocations: 0.8268 MB / 1.134 GB, free: 19.87 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00592/2.441, allocations: 3.92 MB / 1.137 GB, free: 16.63 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008007/2.442, allocations: 150 kB / 1.138 GB, free: 16.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008395/2.45, allocations: 9.562 MB / 1.147 GB, free: 7.848 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/2.45, allocations: 8 kB / 1.147 GB, free: 7.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2372/2.687, allocations: 20.29 MB / 1.167 GB, free: 73.58 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004388/2.692, allocations: 1.483 MB / 1.168 GB, free: 73.49 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001448/2.693, allocations: 103.5 kB / 1.168 GB, free: 73.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003365/2.697, allocations: 269.3 kB / 1.168 GB, free: 73.49 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001039/2.698, allocations: 0.511 MB / 1.169 GB, free: 73.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004311/2.698, allocations: 196.2 kB / 1.169 GB, free: 73.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002794/2.701, allocations: 1.849 MB / 1.171 GB, free: 73.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.701, allocations: 0 / 1.171 GB, free: 73.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006055/2.707, allocations: 1.73 MB / 1.173 GB, free: 73.34 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (443): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * 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,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.02888/2.736, allocations: 21.59 MB / 1.194 GB, free: 70.97 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01769/2.754, allocations: 11.18 MB / 1.205 GB, free: 70.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/2.754, allocations: 6.891 kB / 1.205 GB, free: 70.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009815/2.764, allocations: 5.715 MB / 1.21 GB, free: 70.54 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005088/2.769, allocations: 0.8513 MB / 1.211 GB, free: 70.53 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1157/2.884, allocations: 94.79 MB / 1.304 GB, free: 4.078 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01198/2.896, allocations: 6.54 MB / 1.31 GB, free: 244 kB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01216/2.909, allocations: 1.973 MB / 1.312 GB, free: 0 / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01708/2.926, allocations: 4.12 MB / 1.316 GB, free: 15.76 MB / 490.7 MB Notification: Performance of SimCode: time 1.112e-06/2.926, allocations: 4 kB / 1.316 GB, free: 15.75 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4945/3.42, allocations: 175.8 MB / 1.488 GB, free: 23.41 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/3.42, allocations: 264.2 kB / 1.488 GB, free: 23.05 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.436/8.857, allocations: 3.906 kB / 1.488 GB, free: 23.05 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat