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.0009673/0.0009673, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.339/1.339, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007718/0.0007716, allocations: 89.94 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.529e-05/2.531e-05, allocations: 4 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08609/0.08613, allocations: 47.56 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.365/0.4511, allocations: 135.8 MB / 0.4941 GB, free: 6.164 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.4515, allocations: 105.8 kB / 0.4942 GB, free: 6.105 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.012/1.464, allocations: 331.3 MB / 0.8177 GB, free: 7.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.464, allocations: 0 / 0.8177 GB, free: 7.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000427/1.464, allocations: 219.8 kB / 0.8179 GB, free: 7.605 MB / 410.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.02418/1.489, allocations: 8.753 MB / 0.8265 GB, free: 14.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/1.489, allocations: 12.03 kB / 0.8265 GB, free: 14.76 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006928/1.496, allocations: 1.626 MB / 0.8281 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03176/1.527, allocations: 5.852 MB / 0.8338 GB, free: 7.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01944/1.547, allocations: 7.436 MB / 0.841 GB, free: 15.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009537/1.548, allocations: 0.7222 MB / 0.8418 GB, free: 15.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003714/1.552, allocations: 0.9489 MB / 0.8427 GB, free: 14.08 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3003/1.852, allocations: 16.83 MB / 0.8591 GB, free: 43.13 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000671/1.853, allocations: 17.2 kB / 0.8591 GB, free: 43.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004492/1.857, allocations: 414.1 kB / 0.8595 GB, free: 43.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001235/1.858, allocations: 0.7124 MB / 0.8602 GB, free: 43.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02984/1.888, allocations: 15.67 MB / 0.8755 GB, free: 43.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08283/1.971, allocations: 52.81 MB / 0.9271 GB, free: 31.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02937/2.001, allocations: 41.39 MB / 0.9675 GB, free: 10.78 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01167/2.012, allocations: 7.011 MB / 0.9744 GB, free: 7.766 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04029/2.053, allocations: 22.12 MB / 0.996 GB, free: 14.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.871e-05/2.053, allocations: 95.38 kB / 0.996 GB, free: 14.89 MB / 474.7 MB Notification: Performance of pre-optimization done (n=688): time 9.197e-06/2.053, allocations: 0 / 0.996 GB, free: 14.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=696): time 0.03667/2.089, allocations: 22.75 MB / 1.018 GB, free: 3.035 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/2.09, allocations: 107.9 kB / 1.018 GB, free: 2.914 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004926/2.094, allocations: 2.441 MB / 1.021 GB, free: 0.7227 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00109/2.096, allocations: 117.7 kB / 1.021 GB, free: 0.6016 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002804/2.098, allocations: 3.648 MB / 1.024 GB, free: 13.41 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002698/2.101, allocations: 2.293 MB / 1.027 GB, free: 11.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009369/2.102, allocations: 135.3 kB / 1.027 GB, free: 11.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006332/2.103, allocations: 0.6024 MB / 1.027 GB, free: 10.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007043/2.11, allocations: 4.459 MB / 1.032 GB, free: 6.723 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008254/2.118, allocations: 6.264 MB / 1.038 GB, free: 348 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2676/2.386, allocations: 5.587 MB / 1.043 GB, free: 93.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.266e-05/2.386, allocations: 14.16 kB / 1.043 GB, free: 93.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.02471/2.41, allocations: 13.53 MB / 1.057 GB, free: 92.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.41e-05/2.411, allocations: 32.22 kB / 1.057 GB, free: 92.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001561/2.411, allocations: 58.69 kB / 1.057 GB, free: 92.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007897/2.419, allocations: 3.979 MB / 1.061 GB, free: 92.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005086/2.424, allocations: 1.218 MB / 1.062 GB, free: 92.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/2.435, allocations: 9.634 MB / 1.071 GB, free: 90.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005094/2.44, allocations: 354.8 kB / 1.071 GB, free: 90.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001511/2.441, allocations: 318.5 kB / 1.072 GB, free: 90.77 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * 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.002488/2.444, allocations: 481.4 kB / 1.072 GB, free: 90.66 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001636/2.446, allocations: 448.1 kB / 1.073 GB, free: 90.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02144/2.467, allocations: 12.84 MB / 1.085 GB, free: 90.34 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001643/2.467, allocations: 185 kB / 1.085 GB, free: 90.34 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.629e-05/2.467, allocations: 4.875 kB / 1.085 GB, free: 90.34 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.856e-05/2.467, allocations: 28.83 kB / 1.085 GB, free: 90.34 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04016/2.507, allocations: 24.69 MB / 1.109 GB, free: 84.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.156e-05/2.508, allocations: 3.156 kB / 1.109 GB, free: 84.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00376/2.511, allocations: 0.806 MB / 1.11 GB, free: 84.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006646/2.518, allocations: 3.891 MB / 1.114 GB, free: 83.68 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001089/2.519, allocations: 157.3 kB / 1.114 GB, free: 83.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009389/2.528, allocations: 9.503 MB / 1.124 GB, free: 78.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/2.529, allocations: 9.859 kB / 1.124 GB, free: 78.36 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0287/2.557, allocations: 19.4 MB / 1.142 GB, free: 69.47 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003758/2.561, allocations: 1.468 MB / 1.144 GB, free: 68.65 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001615/2.563, allocations: 106.8 kB / 1.144 GB, free: 68.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003565/2.566, allocations: 264.7 kB / 1.144 GB, free: 68.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001356/2.568, allocations: 0.5094 MB / 1.145 GB, free: 68.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007628/2.568, allocations: 194.2 kB / 1.145 GB, free: 68.33 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003167/2.572, allocations: 1.827 MB / 1.147 GB, free: 66.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.1e-07/2.572, allocations: 0 / 1.147 GB, free: 66.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007197/2.579, allocations: 1.726 MB / 1.148 GB, free: 64.99 MB / 490.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * 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.02626/2.605, allocations: 21.33 MB / 1.169 GB, free: 45.78 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0183/2.623, allocations: 11.03 MB / 1.18 GB, free: 35.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/2.623, allocations: 0 / 1.18 GB, free: 35.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009989/2.633, allocations: 5.654 MB / 1.186 GB, free: 30.98 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00601/2.64, allocations: 0.8456 MB / 1.186 GB, free: 30.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04283/2.682, allocations: 20.95 MB / 1.207 GB, free: 12.14 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2657/2.948, allocations: 6.645 MB / 1.213 GB, free: 95.25 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005329/2.953, allocations: 1.56 MB / 1.215 GB, free: 95.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005344/2.959, allocations: 3.38 MB / 1.218 GB, free: 95.2 MB / 490.7 MB Notification: Performance of SimCode: time 7.72e-07/2.959, allocations: 0 / 1.218 GB, free: 95.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4799/3.439, allocations: 171.4 MB / 1.385 GB, free: 58.45 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/3.439, allocations: 246.4 kB / 1.386 GB, free: 58.13 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.211/8.65, allocations: 0 / 1.386 GB, free: 58.13 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