Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001683/0.001683, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 94.28 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.658e-05/3.66e-05, allocations: 0 / 350.7 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1283, allocations: 51.49 MB / 402.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4736/0.6019, allocations: 137.7 MB / 0.5272 GB, free: 428 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.6023, allocations: 104.2 kB / 0.5273 GB, free: 372 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.345/1.948, allocations: 338.3 MB / 0.8577 GB, free: 29.53 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.208e-06/1.948, allocations: 3.875 kB / 0.8577 GB, free: 29.53 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006277/1.948, allocations: 205.9 kB / 0.8579 GB, free: 29.5 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03367/1.982, allocations: 8.461 MB / 0.8662 GB, free: 25.15 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/1.982, allocations: 10.5 kB / 0.8662 GB, free: 25.15 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007835/1.99, allocations: 1.532 MB / 0.8677 GB, free: 24.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02398/2.014, allocations: 3.908 MB / 0.8715 GB, free: 22.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0208/2.035, allocations: 7.34 MB / 0.8787 GB, free: 16.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007183/2.036, allocations: 0.6719 MB / 0.8793 GB, free: 15.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004283/2.04, allocations: 0.8888 MB / 0.8802 GB, free: 14.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0411/2.081, allocations: 14.74 MB / 0.8946 GB, free: 15.65 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005004/2.082, allocations: 15.81 kB / 0.8946 GB, free: 15.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00339/2.085, allocations: 395.5 kB / 0.895 GB, free: 15.26 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001083/2.086, allocations: 0.6833 MB / 0.8957 GB, free: 14.57 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03887/2.125, allocations: 12.52 MB / 0.9079 GB, free: 2.031 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4602/2.585, allocations: 48.38 MB / 0.9551 GB, free: 35.28 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02382/2.609, allocations: 28.45 MB / 0.9829 GB, free: 26.07 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006082/2.615, allocations: 2.998 MB / 0.9858 GB, free: 26.04 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006777/2.616, allocations: 322.2 kB / 0.9861 GB, free: 25.75 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.142e-05/2.616, allocations: 76.75 kB / 0.9862 GB, free: 25.71 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 6.893e-06/2.616, allocations: 0 / 0.9862 GB, free: 25.71 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.02567/2.642, allocations: 11.31 MB / 0.9973 GB, free: 23.63 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.842e-05/2.642, allocations: 92.06 kB / 0.9974 GB, free: 23.57 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00614/2.648, allocations: 3.122 MB / 1 GB, free: 22.41 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008058/2.649, allocations: 90.64 kB / 1 GB, free: 22.33 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002698/2.652, allocations: 4.036 MB / 1.004 GB, free: 19.43 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001678/2.653, allocations: 1.349 MB / 1.006 GB, free: 18.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004044/2.654, allocations: 121.2 kB / 1.006 GB, free: 18.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003869/2.654, allocations: 0.5476 MB / 1.006 GB, free: 17.89 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003618/2.658, allocations: 2.499 MB / 1.009 GB, free: 16.94 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004951/2.663, allocations: 4.97 MB / 1.014 GB, free: 12.76 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005438/2.668, allocations: 3.723 MB / 1.017 GB, free: 11.32 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.595e-05/2.668, allocations: 25.88 kB / 1.017 GB, free: 11.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01676/2.685, allocations: 8.475 MB / 1.026 GB, free: 8.578 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.959e-05/2.685, allocations: 37.69 kB / 1.026 GB, free: 8.578 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001667/2.685, allocations: 85.5 kB / 1.026 GB, free: 8.578 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/2.688, allocations: 0.8953 MB / 1.027 GB, free: 8.398 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005435/2.693, allocations: 1.358 MB / 1.028 GB, free: 8.355 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/2.704, allocations: 7.518 MB / 1.035 GB, free: 4.289 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005828/2.71, allocations: 338.5 kB / 1.036 GB, free: 4.164 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001479/2.712, allocations: 305.8 kB / 1.036 GB, free: 4.117 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (716): * Single equations (assignments): 714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002485/2.714, allocations: 0.489 MB / 1.036 GB, free: 3.789 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001785/2.716, allocations: 407.6 kB / 1.037 GB, free: 3.582 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/2.727, allocations: 5.861 MB / 1.042 GB, free: 1.312 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.294e-05/2.728, allocations: 39.19 kB / 1.043 GB, free: 1.312 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/2.728, allocations: 14.41 kB / 1.043 GB, free: 1.309 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.064e-05/2.728, allocations: 23.02 kB / 1.043 GB, free: 1.309 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03499/2.763, allocations: 15.34 MB / 1.058 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/2.763, allocations: 11.12 kB / 1.058 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002816/2.766, allocations: 0.6821 MB / 1.058 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002007/2.768, allocations: 0.6904 MB / 1.059 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005706/2.768, allocations: 82.42 kB / 1.059 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008389/2.777, allocations: 6.142 MB / 1.065 GB, free: 7.172 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/2.777, allocations: 3.812 kB / 1.065 GB, free: 7.172 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01806/2.795, allocations: 9.207 MB / 1.074 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003344/2.798, allocations: 0.8715 MB / 1.075 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001141/2.799, allocations: 75.81 kB / 1.075 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002498/2.802, allocations: 200.8 kB / 1.075 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005013/2.802, allocations: 267.6 kB / 1.075 GB, free: 14.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/2.802, allocations: 110.8 kB / 1.075 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004292/2.807, allocations: 2.329 MB / 1.078 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.8e-07/2.807, allocations: 0 / 1.078 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008632/2.815, allocations: 1.61 MB / 1.079 GB, free: 10.98 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01669/2.832, allocations: 11.22 MB / 1.09 GB, free: 0.6836 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3197/3.152, allocations: 6.7 MB / 1.097 GB, free: 94.33 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/3.152, allocations: 0 / 1.097 GB, free: 94.33 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005699/3.158, allocations: 2.848 MB / 1.1 GB, free: 94.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005487/3.163, allocations: 0.8504 MB / 1.1 GB, free: 94.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04475/3.208, allocations: 16.35 MB / 1.116 GB, free: 91.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01222/3.22, allocations: 6.121 MB / 1.122 GB, free: 90.48 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008277/3.229, allocations: 1.865 MB / 1.124 GB, free: 90.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007644/3.236, allocations: 3.166 MB / 1.127 GB, free: 90.43 MB / 0.4948 GB Notification: Performance of SimCode: time 1.663e-06/3.236, allocations: 6.688 kB / 1.127 GB, free: 90.43 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1967/3.433, allocations: 123.4 MB / 1.248 GB, free: 29.03 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001729/3.433, allocations: 224.2 kB / 1.248 GB, free: 28.78 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.603/9.037, allocations: 0 / 1.248 GB, free: 28.78 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat