Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.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_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.001631, allocations: 196.8 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.473/1.473, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001061/0.001061, allocations: 87.77 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.155e-05/4.166e-05, allocations: 8 kB / 350.7 MB, free: 2.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1295, allocations: 51.49 MB / 402.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.463/0.5925, allocations: 135.8 MB / 0.5253 GB, free: 2.371 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003538/0.5929, allocations: 104.5 kB / 0.5254 GB, free: 2.316 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.291/1.884, allocations: 318.2 MB / 0.8361 GB, free: 53.88 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.494e-06/1.884, allocations: 0 / 0.8361 GB, free: 53.88 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007781/1.885, allocations: 156.8 kB / 0.8363 GB, free: 53.87 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: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.02445/1.91, allocations: 6.48 MB / 0.8426 GB, free: 51.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/1.91, allocations: 11.19 kB / 0.8426 GB, free: 51.6 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004369/1.914, allocations: 0.9705 MB / 0.8436 GB, free: 51.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02096/1.935, allocations: 3.604 MB / 0.8471 GB, free: 50.39 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01338/1.949, allocations: 4.891 MB / 0.8519 GB, free: 47.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006025/1.949, allocations: 498.3 kB / 0.8523 GB, free: 47.53 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003447/1.953, allocations: 0.6427 MB / 0.853 GB, free: 47.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03052/1.983, allocations: 10.86 MB / 0.8636 GB, free: 42.31 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003873/1.984, allocations: 19.77 kB / 0.8636 GB, free: 42.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002853/1.987, allocations: 288.2 kB / 0.8639 GB, free: 42.09 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007581/1.987, allocations: 0.5181 MB / 0.8644 GB, free: 41.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02259/2.01, allocations: 9.861 MB / 0.874 GB, free: 34.05 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3818/2.392, allocations: 36.05 MB / 0.9092 GB, free: 59.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0106/2.402, allocations: 11.79 MB / 0.9207 GB, free: 51.73 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004044/2.407, allocations: 2.757 MB / 0.9234 GB, free: 51.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003996/2.407, allocations: 246.1 kB / 0.9236 GB, free: 51.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.387e-05/2.407, allocations: 73.84 kB / 0.9237 GB, free: 51.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=367): time 1.194e-05/2.407, allocations: 2.406 kB / 0.9237 GB, free: 51.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=377): time 0.01702/2.424, allocations: 10.67 MB / 0.9341 GB, free: 50.37 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.801e-05/2.424, allocations: 114.1 kB / 0.9342 GB, free: 50.27 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/2.428, allocations: 2.402 MB / 0.9366 GB, free: 50.02 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002768/2.428, allocations: 91.89 kB / 0.9367 GB, free: 49.98 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00152/2.43, allocations: 2.876 MB / 0.9395 GB, free: 48.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009597/2.431, allocations: 1.269 MB / 0.9407 GB, free: 47.91 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002207/2.431, allocations: 95.72 kB / 0.9408 GB, free: 47.91 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002231/2.431, allocations: 0.497 MB / 0.9413 GB, free: 47.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002816/2.434, allocations: 2.181 MB / 0.9434 GB, free: 47.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004062/2.438, allocations: 3.785 MB / 0.9471 GB, free: 45.67 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004729/2.443, allocations: 3.028 MB / 0.9501 GB, free: 45.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.716e-05/2.443, allocations: 15.25 kB / 0.9501 GB, free: 45.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.01086/2.454, allocations: 6.846 MB / 0.9568 GB, free: 45.31 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.005432/2.459, allocations: 21.21 MB / 0.9775 GB, free: 39.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001523/2.459, allocations: 51.31 kB / 0.9775 GB, free: 39.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003943/2.463, allocations: 1.214 MB / 0.9787 GB, free: 39.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004515/2.468, allocations: 1.067 MB / 0.9798 GB, free: 39.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003366/2.471, allocations: 2.303 MB / 0.982 GB, free: 38.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003977/2.475, allocations: 295.3 kB / 0.9823 GB, free: 38.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006512/2.476, allocations: 225 kB / 0.9825 GB, free: 38.69 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/2.476, allocations: 2.938 kB / 0.9825 GB, free: 38.69 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009737/2.486, allocations: 6.527 MB / 0.9889 GB, free: 38.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00014/2.486, allocations: 55.42 kB / 0.9889 GB, free: 38.56 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002986/2.489, allocations: 1.141 MB / 0.9901 GB, free: 38.53 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003889/2.493, allocations: 1.067 MB / 0.9911 GB, free: 38.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002669/2.495, allocations: 2.264 MB / 0.9933 GB, free: 37.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003574/2.499, allocations: 288.5 kB / 0.9936 GB, free: 37.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004939/2.5, allocations: 225.4 kB / 0.9938 GB, free: 37.95 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 545 * 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: 0 * Non-linear torn systems: 1 {11 55} Notification: Performance of prepare postOptimizeDAE: time 0.001176/2.501, allocations: 404.1 kB / 0.9942 GB, free: 37.81 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007281/2.501, allocations: 350.4 kB / 0.9945 GB, free: 37.63 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008535/2.51, allocations: 5.599 MB / 1 GB, free: 37.39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.379e-05/2.51, allocations: 42.61 kB / 1 GB, free: 37.38 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/2.51, allocations: 7.969 kB / 1 GB, free: 37.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.351e-05/2.51, allocations: 19.64 kB / 1 GB, free: 37.38 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02197/2.532, allocations: 13.13 MB / 1.013 GB, free: 32.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/2.532, allocations: 5.312 kB / 1.013 GB, free: 32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00266/2.535, allocations: 0.6603 MB / 1.014 GB, free: 31.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003074/2.538, allocations: 0.9401 MB / 1.014 GB, free: 31.79 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004027/2.538, allocations: 76.91 kB / 1.015 GB, free: 31.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002704/2.541, allocations: 1.974 MB / 1.016 GB, free: 30.65 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/2.541, allocations: 1.312 kB / 1.016 GB, free: 30.65 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01135/2.552, allocations: 8.147 MB / 1.024 GB, free: 27.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002364/2.555, allocations: 0.8288 MB / 1.025 GB, free: 26.61 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006667/2.556, allocations: 70.55 kB / 1.025 GB, free: 26.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002061/2.558, allocations: 225.2 kB / 1.025 GB, free: 26.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004015/2.558, allocations: 222.3 kB / 1.026 GB, free: 26.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002206/2.558, allocations: 105.1 kB / 1.026 GB, free: 26.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002874/2.561, allocations: 1.799 MB / 1.028 GB, free: 25.73 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.01e-07/2.561, allocations: 2.719 kB / 1.028 GB, free: 25.73 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007672/2.569, allocations: 2.161 MB / 1.03 GB, free: 25.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (347): * Single equations (assignments): 345 * 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: 0 * Non-linear torn systems: 1 {9 50} Notification: Performance of Backend phase and start with SimCode phase: time 0.01112/2.58, allocations: 9.492 MB / 1.039 GB, free: 20.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01386/2.594, allocations: 8.9 MB / 1.048 GB, free: 12.22 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/2.594, allocations: 4.875 kB / 1.048 GB, free: 12.22 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004189/2.598, allocations: 2.52 MB / 1.05 GB, free: 9.93 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003942/2.602, allocations: 0.6956 MB / 1.051 GB, free: 9.391 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03211/2.634, allocations: 13.09 MB / 1.064 GB, free: 14.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005189/2.639, allocations: 4.576 MB / 1.068 GB, free: 11.19 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008678/2.648, allocations: 2.581 MB / 1.071 GB, free: 9.574 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004629/2.653, allocations: 2.369 MB / 1.073 GB, free: 7.383 MB / 490.7 MB Notification: Performance of SimCode: time 1.933e-06/2.653, allocations: 0 / 1.073 GB, free: 7.383 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4627/3.116, allocations: 110.7 MB / 1.181 GB, free: 69.34 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/3.116, allocations: 242.8 kB / 1.181 GB, free: 69.01 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.764/8.88, allocations: 0 / 1.181 GB, free: 69.01 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_FieldWeakening.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)