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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009501/0.0009501, allocations: 98.42 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.7 MB / 246.4 MB, free: 9.797 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002052/0.0002052, allocations: 8 kB / 307.1 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.09362, allocations: 51.52 MB / 358.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.1864/0.2801, allocations: 21.53 MB / 380.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01425/0.2944, allocations: 7.248 MB / 387.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003507/0.2979, allocations: 152 kB / 387.6 MB, free: 5.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003503/0.3014, allocations: 1.146 MB / 388.7 MB, free: 5.184 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_FieldWeakening.mo:75:15-75:22:writable] Warning: 'each' used when modifying non-array element re. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_FieldWeakening.mo:75:33-75:40:writable] Warning: 'each' used when modifying non-array element im. Notification: Performance of NFTyping.typeBindings: time 0.005918/0.3074, allocations: 2.103 MB / 390.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002863/0.3102, allocations: 1.2 MB / 392 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01139/0.3217, allocations: 8.985 MB / 401 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02075/0.3424, allocations: 12.05 MB / 413.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005476/0.3479, allocations: 2.904 MB / 416 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006053/0.354, allocations: 3.393 MB / 419.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001472/0.3555, allocations: 440 kB / 419.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003599/0.3591, allocations: 0.773 MB / 420.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00194/0.3611, allocations: 1.397 MB / 422 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002511/0.3636, allocations: 1.459 MB / 423.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.3751, allocations: 12.61 MB / 436 MB, free: 14.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3751, allocations: 0 / 436 MB, free: 14.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3751, allocations: 4 kB / 436 MB, free: 14.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002423/0.3754, allocations: 0 / 436 MB, free: 14.5 MB / 350.1 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.01814/0.3935, allocations: 7.786 MB / 443.8 MB, free: 6.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3936, allocations: 8.031 kB / 443.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02753/0.4211, allocations: 5.324 MB / 449.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008768/0.4299, allocations: 4.552 MB / 453.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004134/0.4304, allocations: 0.5058 MB / 454.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001979/0.4324, allocations: 0.6756 MB / 454.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02198/0.4543, allocations: 11.12 MB / 466 MB, free: 300 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000145/0.4545, allocations: 15.84 kB / 466 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007085/0.4553, allocations: 284.3 kB / 466.3 MB, free: 0 / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004087/0.4557, allocations: 430.4 kB / 466.7 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01981/0.4755, allocations: 10.68 MB / 477.4 MB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05842/0.534, allocations: 36.37 MB / 0.5017 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/0.5454, allocations: 11.88 MB / 0.5133 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004025/0.5494, allocations: 2.849 MB / 0.5161 GB, free: 15.69 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003712/0.5498, allocations: 245 kB / 0.5163 GB, free: 15.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.284e-05/0.5499, allocations: 77.66 kB / 0.5164 GB, free: 15.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 6.613e-06/0.5499, allocations: 0 / 0.5164 GB, free: 15.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.237/0.7869, allocations: 17.5 MB / 0.5335 GB, free: 131.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.787, allocations: 141.2 kB / 0.5336 GB, free: 131.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004144/0.7911, allocations: 2.764 MB / 0.5363 GB, free: 131.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004155/0.7916, allocations: 94.2 kB / 0.5364 GB, free: 131 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/0.7931, allocations: 2.885 MB / 0.5392 GB, free: 129.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009738/0.7941, allocations: 1.259 MB / 0.5405 GB, free: 128.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.7944, allocations: 98.97 kB / 0.5406 GB, free: 128.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002342/0.7946, allocations: 0.4954 MB / 0.5411 GB, free: 127.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003578/0.7982, allocations: 2.292 MB / 0.5433 GB, free: 127.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004631/0.8028, allocations: 3.912 MB / 0.5471 GB, free: 124.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004298/0.8071, allocations: 3.106 MB / 0.5501 GB, free: 122.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.288e-05/0.8072, allocations: 18.28 kB / 0.5502 GB, free: 122.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01039/0.8176, allocations: 7.073 MB / 0.5571 GB, free: 120 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001091/0.8187, allocations: 1.603 MB / 0.5586 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.602e-05/0.8188, allocations: 49.88 kB / 0.5587 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003335/0.8221, allocations: 1.27 MB / 0.5599 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003822/0.826, allocations: 1.07 MB / 0.561 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002859/0.8289, allocations: 2.398 MB / 0.5633 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003116/0.832, allocations: 298.3 kB / 0.5636 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003676/0.8324, allocations: 227.9 kB / 0.5638 GB, free: 116.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.748e-06/0.8324, allocations: 3.812 kB / 0.5638 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008519/0.8409, allocations: 6.727 MB / 0.5704 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-05/0.841, allocations: 51 kB / 0.5704 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002774/0.8438, allocations: 1.156 MB / 0.5716 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003189/0.847, allocations: 1.065 MB / 0.5726 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.8496, allocations: 2.308 MB / 0.5749 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/0.8523, allocations: 288.2 kB / 0.5751 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003145/0.8526, allocations: 221.8 kB / 0.5753 GB, free: 111.6 MB / 446.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 545 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.004123/0.8568, allocations: 2.558 MB / 0.5778 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006793/0.8574, allocations: 351.7 kB / 0.5782 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008487/0.8659, allocations: 5.877 MB / 0.5839 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.32e-05/0.866, allocations: 40 kB / 0.584 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.866, allocations: 0 / 0.584 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-05/0.866, allocations: 19.92 kB / 0.584 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01828/0.8843, allocations: 12.9 MB / 0.5966 GB, free: 91.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.8844, allocations: 4 kB / 0.5966 GB, free: 91.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002399/0.8868, allocations: 0.6772 MB / 0.5972 GB, free: 90.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002559/0.8893, allocations: 0.9741 MB / 0.5982 GB, free: 89.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/0.8896, allocations: 79.97 kB / 0.5983 GB, free: 89.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002182/0.8917, allocations: 2.065 MB / 0.6003 GB, free: 87.22 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.8918, allocations: 0 / 0.6003 GB, free: 87.22 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009988/0.9018, allocations: 8.505 MB / 0.6086 GB, free: 78.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001839/0.9036, allocations: 0.8363 MB / 0.6094 GB, free: 77.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004629/0.9041, allocations: 64 kB / 0.6095 GB, free: 77.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.9057, allocations: 227.8 kB / 0.6097 GB, free: 77.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003036/0.906, allocations: 230.8 kB / 0.6099 GB, free: 77.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001833/0.9062, allocations: 104 kB / 0.61 GB, free: 77.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002294/0.9085, allocations: 1.851 MB / 0.6118 GB, free: 75.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9085, allocations: 0 / 0.6118 GB, free: 75.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005598/0.9141, allocations: 2.083 MB / 0.6138 GB, free: 73.24 MB / 446.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.000494/0.9146, allocations: 252.7 kB / 0.6141 GB, free: 72.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01264/0.9272, allocations: 9.13 MB / 0.623 GB, free: 63.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.9273, allocations: 0 / 0.623 GB, free: 63.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003734/0.931, allocations: 2.629 MB / 0.6256 GB, free: 61.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003558/0.9346, allocations: 0.7684 MB / 0.6263 GB, free: 60.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01998/0.9546, allocations: 14.87 MB / 0.6408 GB, free: 45.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003385/0.958, allocations: 4.457 MB / 0.6452 GB, free: 41.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006069/0.9641, allocations: 2.283 MB / 0.6474 GB, free: 38.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008723/0.965, allocations: 287.4 kB / 0.6477 GB, free: 38.54 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.965, allocations: 0 / 0.6477 GB, free: 38.54 MB / 446.1 MB Notification: Performance of Templates: time 0.2791/1.244, allocations: 57.15 MB / 0.7035 GB, free: 135.1 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)