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.001184/0.001184, allocations: 198.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001053/0.001053, allocations: 100 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.815e-05/2.831e-05, allocations: 4 kB / 343.8 MB, free: 8.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.1608, allocations: 51.48 MB / 395.3 MB, free: 4.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6518/0.8127, allocations: 137.1 MB / 0.5199 GB, free: 4.516 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003917/0.8131, allocations: 104 kB / 0.52 GB, free: 4.461 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.349/2.162, allocations: 334.9 MB / 0.847 GB, free: 49.09 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.065e-06/2.162, allocations: 0 / 0.847 GB, free: 49.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001003/2.163, allocations: 205.7 kB / 0.8472 GB, free: 49.06 MB / 458.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.03642/2.2, allocations: 8.458 MB / 0.8555 GB, free: 45.35 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/2.2, allocations: 10.89 kB / 0.8555 GB, free: 45.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02289/2.223, allocations: 3.902 MB / 0.8593 GB, free: 44.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02029/2.243, allocations: 7.344 MB / 0.8664 GB, free: 40.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006309/2.244, allocations: 294.9 kB / 0.8667 GB, free: 40.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004757/2.248, allocations: 0.5264 MB / 0.8672 GB, free: 40.79 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02821/2.277, allocations: 11.37 MB / 0.8783 GB, free: 34.75 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03938/2.316, allocations: 13.29 MB / 0.8913 GB, free: 22.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005781/2.317, allocations: 23.38 kB / 0.8913 GB, free: 22.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003692/2.32, allocations: 8 kB / 0.8914 GB, free: 22.96 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009008/2.321, allocations: 0.685 MB / 0.892 GB, free: 22.36 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.467/2.788, allocations: 47.65 MB / 0.9386 GB, free: 37.78 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02146/2.81, allocations: 28.2 MB / 0.9661 GB, free: 28.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005283/2.815, allocations: 3.033 MB / 0.9691 GB, free: 28.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007051/2.816, allocations: 325.8 kB / 0.9694 GB, free: 28.29 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.984e-05/2.816, allocations: 75.91 kB / 0.9694 GB, free: 28.25 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 6.773e-06/2.816, allocations: 0 / 0.9694 GB, free: 28.25 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.03946/2.855, allocations: 14.1 MB / 0.9832 GB, free: 26.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.65e-05/2.856, allocations: 96.7 kB / 0.9833 GB, free: 26.53 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006398/2.862, allocations: 2.817 MB / 0.9861 GB, free: 26.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008864/2.863, allocations: 29.97 kB / 0.9861 GB, free: 26.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003031/2.866, allocations: 4.034 MB / 0.99 GB, free: 24.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001947/2.868, allocations: 1.294 MB / 0.9913 GB, free: 23.28 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003926/2.868, allocations: 0 / 0.9913 GB, free: 23.28 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004506/2.869, allocations: 0.5504 MB / 0.9918 GB, free: 22.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004195/2.873, allocations: 2.534 MB / 0.9943 GB, free: 22.94 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005735/2.879, allocations: 4.968 MB / 0.9992 GB, free: 19.92 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/2.89, allocations: 4.702 MB / 1.004 GB, free: 19.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000136/2.89, allocations: 24.97 kB / 1.004 GB, free: 19.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02264/2.912, allocations: 9.07 MB / 1.013 GB, free: 19.38 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000106/2.913, allocations: 40.16 kB / 1.013 GB, free: 19.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001641/2.913, allocations: 83.39 kB / 1.013 GB, free: 19.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002378/2.915, allocations: 0.9313 MB / 1.014 GB, free: 19.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005756/2.921, allocations: 1.376 MB / 1.015 GB, free: 19.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/2.931, allocations: 7.684 MB / 1.022 GB, free: 16.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005707/2.937, allocations: 253.6 kB / 1.023 GB, free: 16.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00158/2.939, allocations: 308.6 kB / 1.023 GB, free: 16.44 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 (710): * Single equations (assignments): 708 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001318/2.94, allocations: 322.2 kB / 1.023 GB, free: 16.25 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0129/2.953, allocations: 6.108 MB / 1.029 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001297/2.954, allocations: 391.3 kB / 1.03 GB, free: 13.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0144/2.969, allocations: 6.799 MB / 1.036 GB, free: 11.63 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.244e-05/2.969, allocations: 39.81 kB / 1.036 GB, free: 11.63 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/2.969, allocations: 13.12 kB / 1.036 GB, free: 11.63 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.119e-05/2.969, allocations: 20.53 kB / 1.036 GB, free: 11.63 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0311/3, allocations: 15.14 MB / 1.051 GB, free: 5.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/3, allocations: 10.5 kB / 1.051 GB, free: 5.516 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002924/3.003, allocations: 0.7307 MB / 1.052 GB, free: 5.492 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/3.005, allocations: 0.6666 MB / 1.053 GB, free: 5.348 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003405/3.005, allocations: 32.11 kB / 1.053 GB, free: 5.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007316/3.013, allocations: 5.966 MB / 1.058 GB, free: 1.969 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/3.013, allocations: 5.812 kB / 1.058 GB, free: 1.969 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01817/3.031, allocations: 10.07 MB / 1.068 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002764/3.034, allocations: 0.8988 MB / 1.069 GB, free: 9.691 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008691/3.035, allocations: 8 kB / 1.069 GB, free: 9.684 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002324/3.037, allocations: 164.6 kB / 1.069 GB, free: 9.594 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005432/3.037, allocations: 260.7 kB / 1.07 GB, free: 9.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002509/3.038, allocations: 115.8 kB / 1.07 GB, free: 9.324 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004014/3.042, allocations: 2.048 MB / 1.072 GB, free: 7.543 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.51e-07/3.042, allocations: 0 / 1.072 GB, free: 7.543 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008289/3.05, allocations: 1.415 MB / 1.073 GB, free: 6.141 MB / 490.7 MB 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,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02311/3.073, allocations: 12.43 MB / 1.085 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0119/3.085, allocations: 6.385 MB / 1.091 GB, free: 6.238 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/3.085, allocations: 0 / 1.091 GB, free: 6.238 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005252/3.09, allocations: 2.879 MB / 1.094 GB, free: 3.625 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005138/3.096, allocations: 0.7194 MB / 1.095 GB, free: 3.082 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3643/3.46, allocations: 16.16 MB / 1.111 GB, free: 91.97 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006825/3.467, allocations: 6.115 MB / 1.117 GB, free: 91.06 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005565/3.472, allocations: 1.872 MB / 1.119 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005406/3.478, allocations: 3.158 MB / 1.122 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of SimCode: time 1.012e-06/3.478, allocations: 3.094 kB / 1.122 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1923/3.67, allocations: 114.4 MB / 1.233 GB, free: 49.73 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002344/3.67, allocations: 207.1 kB / 1.233 GB, free: 49.47 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.517/9.187, allocations: 0 / 1.233 GB, free: 49.47 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