Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 177.1 kB / 13.64 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 221.3 MB / 235.5 MB, free: 2.98 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009922/0.000992, allocations: 91.78 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.736e-05/3.759e-05, allocations: 4 kB / 344 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1321, allocations: 50.41 MB / 394.4 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4737/0.6059, allocations: 136.9 MB / 0.5188 GB, free: 14.49 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004036/0.6064, allocations: 103.9 kB / 0.5189 GB, free: 14.39 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.279/1.886, allocations: 321.5 MB / 0.8329 GB, free: 33.09 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.853e-06/1.886, allocations: 0 / 0.8329 GB, free: 33.09 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001012/1.887, allocations: 207.8 kB / 0.8331 GB, free: 32.88 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.03404/1.921, allocations: 8.426 MB / 0.8413 GB, free: 24.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/1.921, allocations: 8.031 kB / 0.8413 GB, free: 24.36 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00804/1.929, allocations: 1.527 MB / 0.8428 GB, free: 22.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02326/1.952, allocations: 3.91 MB / 0.8466 GB, free: 18.9 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02103/1.973, allocations: 7.342 MB / 0.8538 GB, free: 11.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009171/1.974, allocations: 0.6782 MB / 0.8545 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004968/1.979, allocations: 0.8788 MB / 0.8553 GB, free: 9.938 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05239/2.032, allocations: 14.73 MB / 0.8697 GB, free: 10.87 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005778/2.032, allocations: 19.81 kB / 0.8697 GB, free: 10.85 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003978/2.036, allocations: 388 kB / 0.8701 GB, free: 10.47 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009426/2.037, allocations: 0.6873 MB / 0.8708 GB, free: 9.777 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4132/2.45, allocations: 12.52 MB / 0.883 GB, free: 53.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1064/2.557, allocations: 47.97 MB / 0.9298 GB, free: 45.53 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01937/2.576, allocations: 28.43 MB / 0.9576 GB, free: 20.32 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005079/2.581, allocations: 2.998 MB / 0.9605 GB, free: 20.09 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000425/2.582, allocations: 235.1 kB / 0.9608 GB, free: 19.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.393e-05/2.582, allocations: 80.38 kB / 0.9608 GB, free: 19.83 MB / 458.7 MB Notification: Performance of pre-optimization done (n=386): time 6.662e-06/2.582, allocations: 0 / 0.9608 GB, free: 19.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=394): time 0.0225/2.604, allocations: 11.3 MB / 0.9719 GB, free: 14.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.167e-05/2.605, allocations: 92.28 kB / 0.972 GB, free: 14.78 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008603/2.613, allocations: 3.12 MB / 0.975 GB, free: 13.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001021/2.614, allocations: 93.92 kB / 0.9751 GB, free: 13.49 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003473/2.618, allocations: 4.029 MB / 0.979 GB, free: 10.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0025/2.62, allocations: 1.347 MB / 0.9803 GB, free: 9.434 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001205/2.621, allocations: 120.6 kB / 0.9805 GB, free: 9.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00082/2.622, allocations: 0.5494 MB / 0.981 GB, free: 8.926 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005405/2.628, allocations: 2.499 MB / 0.9834 GB, free: 7.973 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007106/2.635, allocations: 4.966 MB / 0.9883 GB, free: 3.832 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006443/2.641, allocations: 3.725 MB / 0.9919 GB, free: 2.398 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001207/2.642, allocations: 30.25 kB / 0.992 GB, free: 2.395 MB / 458.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01821/2.66, allocations: 8.501 MB / 1 GB, free: 15.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/2.66, allocations: 38.28 kB / 1 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001653/2.66, allocations: 85.06 kB / 1 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002473/2.663, allocations: 0.8933 MB / 1.001 GB, free: 15.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00517/2.668, allocations: 1.35 MB / 1.003 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/2.679, allocations: 7.537 MB / 1.01 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005866/2.685, allocations: 334.3 kB / 1.01 GB, free: 11.35 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00168/2.687, allocations: 307 kB / 1.011 GB, free: 11.3 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.002683/2.689, allocations: 0.4901 MB / 1.011 GB, free: 10.96 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002012/2.692, allocations: 411.2 kB / 1.011 GB, free: 10.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/2.705, allocations: 5.847 MB / 1.017 GB, free: 8.473 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.588e-05/2.705, allocations: 42.62 kB / 1.017 GB, free: 8.473 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/2.705, allocations: 7.469 kB / 1.017 GB, free: 8.473 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.971e-05/2.705, allocations: 25.89 kB / 1.017 GB, free: 8.469 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03387/2.739, allocations: 15.33 MB / 1.032 GB, free: 1.266 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.781e-05/2.739, allocations: 4 kB / 1.032 GB, free: 1.262 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002962/2.742, allocations: 0.6861 MB / 1.033 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/2.744, allocations: 0.6851 MB / 1.033 GB, free: 164 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004258/2.744, allocations: 85.77 kB / 1.034 GB, free: 84 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009201/2.754, allocations: 6.142 MB / 1.04 GB, free: 10.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/2.754, allocations: 11.94 kB / 1.04 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01484/2.769, allocations: 8.923 MB / 1.048 GB, free: 2.414 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00263/2.771, allocations: 0.8756 MB / 1.049 GB, free: 1.609 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007455/2.772, allocations: 72 kB / 1.049 GB, free: 1.539 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002115/2.774, allocations: 196.2 kB / 1.049 GB, free: 1.398 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005154/2.775, allocations: 269.2 kB / 1.05 GB, free: 1.227 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002349/2.775, allocations: 114.3 kB / 1.05 GB, free: 1.121 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006204/2.781, allocations: 2.506 MB / 1.052 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.62e-07/2.781, allocations: 0 / 1.052 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008161/2.789, allocations: 1.601 MB / 1.054 GB, free: 13.93 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.01554/2.805, allocations: 11.21 MB / 1.065 GB, free: 3.633 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3436/3.149, allocations: 6.424 MB / 1.071 GB, free: 106 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.461e-05/3.149, allocations: 1.125 kB / 1.071 GB, free: 106 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006578/3.155, allocations: 2.843 MB / 1.074 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005571/3.161, allocations: 0.8549 MB / 1.075 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04869/3.21, allocations: 16.19 MB / 1.09 GB, free: 103 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009389/3.219, allocations: 6.125 MB / 1.096 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006451/3.226, allocations: 1.869 MB / 1.098 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00654/3.232, allocations: 3.162 MB / 1.101 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.402e-06/3.232, allocations: 0 / 1.101 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1902/3.422, allocations: 123.1 MB / 1.222 GB, free: 37.74 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/3.423, allocations: 240 kB / 1.222 GB, free: 37.46 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.894/9.317, allocations: 0 / 1.222 GB, free: 37.46 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat