Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001568/0.001568, allocations: 197.1 kB / 17.05 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.6 MB / 244.3 MB, free: 8.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008154/0.0008155, allocations: 105.4 kB / 296.4 MB, free: 7.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002131/0.0002133, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2634, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.02092/0.2844, allocations: 21.5 MB / 429 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01545/0.2999, allocations: 7.25 MB / 436.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00628/0.3063, allocations: 151.6 kB / 436.4 MB, free: 14.87 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005306/0.3116, allocations: 1.15 MB / 437.6 MB, free: 13.71 MB / 314.7 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.008696/0.3204, allocations: 2.104 MB / 439.7 MB, free: 11.6 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004431/0.3248, allocations: 1.186 MB / 440.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01447/0.3393, allocations: 8.979 MB / 449.8 MB, free: 1.414 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02831/0.3677, allocations: 12.04 MB / 461.9 MB, free: 5.273 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004861/0.3726, allocations: 2.912 MB / 464.8 MB, free: 2.352 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005569/0.3782, allocations: 3.393 MB / 468.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001763/0.38, allocations: 440 kB / 468.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003221/0.3832, allocations: 0.773 MB / 469.4 MB, free: 13.74 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002007/0.3852, allocations: 1.394 MB / 470.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002565/0.3878, allocations: 1.447 MB / 472.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01286/0.4007, allocations: 12.61 MB / 484.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.4007, allocations: 0 / 484.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4008, allocations: 0 / 484.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004191/0.4012, allocations: 0 / 484.8 MB, free: 14.25 MB / 362.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.02093/0.4221, allocations: 7.784 MB / 492.6 MB, free: 6.379 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4222, allocations: 12.03 kB / 492.6 MB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02677/0.449, allocations: 5.328 MB / 498 MB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009481/0.4585, allocations: 4.548 MB / 0.4907 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005008/0.459, allocations: 0.5135 MB / 0.4912 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002045/0.4611, allocations: 0.6756 MB / 0.4919 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02443/0.4855, allocations: 11.12 MB / 0.5028 GB, free: 32 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001993/0.4858, allocations: 11.91 kB / 0.5028 GB, free: 20 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.1762/0.662, allocations: 284.5 kB / 0.503 GB, free: 81.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000655/0.6627, allocations: 423.7 kB / 0.5034 GB, free: 81.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01949/0.6822, allocations: 10.68 MB / 0.5139 GB, free: 77.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04012/0.7223, allocations: 36.36 MB / 0.5494 GB, free: 45.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008086/0.7305, allocations: 11.88 MB / 0.561 GB, free: 32.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003444/0.7339, allocations: 2.852 MB / 0.5638 GB, free: 29.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002954/0.7343, allocations: 245.6 kB / 0.564 GB, free: 29.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.7343, allocations: 69.44 kB / 0.5641 GB, free: 29.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=365): time 5.54e-06/0.7343, allocations: 4 kB / 0.5641 GB, free: 29.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=375): time 0.03829/0.7726, allocations: 17.5 MB / 0.5812 GB, free: 11.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/0.7727, allocations: 116.1 kB / 0.5813 GB, free: 11.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004161/0.7769, allocations: 2.762 MB / 0.584 GB, free: 9.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002448/0.7772, allocations: 85.7 kB / 0.584 GB, free: 8.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.7784, allocations: 2.886 MB / 0.5869 GB, free: 6.023 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000884/0.7793, allocations: 1.264 MB / 0.5881 GB, free: 4.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/0.7796, allocations: 92 kB / 0.5882 GB, free: 4.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002532/0.7799, allocations: 0.4926 MB / 0.5887 GB, free: 4.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003213/0.7831, allocations: 2.293 MB / 0.5909 GB, free: 1.879 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004537/0.7876, allocations: 3.906 MB / 0.5947 GB, free: 13.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005009/0.7927, allocations: 3.104 MB / 0.5978 GB, free: 10.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.886e-05/0.7927, allocations: 16 kB / 0.5978 GB, free: 10.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01133/0.8041, allocations: 7.081 MB / 0.6047 GB, free: 2.988 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009931/0.8051, allocations: 1.604 MB / 0.6063 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.808e-05/0.8051, allocations: 48 kB / 0.6063 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003583/0.8087, allocations: 1.266 MB / 0.6075 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003574/0.8123, allocations: 1.076 MB / 0.6086 GB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00333/0.8157, allocations: 2.394 MB / 0.6109 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00312/0.8188, allocations: 303.4 kB / 0.6112 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004172/0.8192, allocations: 224 kB / 0.6114 GB, free: 11.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.8193, allocations: 8 kB / 0.6114 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01016/0.8294, allocations: 6.723 MB / 0.618 GB, free: 4.578 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001488/0.8296, allocations: 51.94 kB / 0.618 GB, free: 4.527 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003232/0.8328, allocations: 1.155 MB / 0.6192 GB, free: 3.375 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003503/0.8363, allocations: 1.069 MB / 0.6202 GB, free: 2.305 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002738/0.8391, allocations: 2.309 MB / 0.6225 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002803/0.8419, allocations: 283.6 kB / 0.6227 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004436/0.8424, allocations: 220 kB / 0.623 GB, free: 15.48 MB / 426.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 () * 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.004449/0.8468, allocations: 2.549 MB / 0.6254 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007345/0.8476, allocations: 351.8 kB / 0.6258 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/0.8578, allocations: 5.885 MB / 0.6315 GB, free: 6.645 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.622e-05/0.8578, allocations: 40 kB / 0.6316 GB, free: 6.605 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.8578, allocations: 0 / 0.6316 GB, free: 6.605 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.394e-05/0.8579, allocations: 19.92 kB / 0.6316 GB, free: 6.586 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02198/0.8798, allocations: 12.9 MB / 0.6442 GB, free: 9.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/0.8799, allocations: 4 kB / 0.6442 GB, free: 9.566 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002635/0.8825, allocations: 0.6788 MB / 0.6448 GB, free: 8.887 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003076/0.8856, allocations: 0.9753 MB / 0.6458 GB, free: 7.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002769/0.8859, allocations: 87.92 kB / 0.6459 GB, free: 7.824 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002754/0.8887, allocations: 2.049 MB / 0.6479 GB, free: 5.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.233e-06/0.8887, allocations: 8.016 kB / 0.6479 GB, free: 5.742 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01222/0.9009, allocations: 8.495 MB / 0.6562 GB, free: 13.18 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/0.9027, allocations: 0.8325 MB / 0.657 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006994/0.9035, allocations: 67.95 kB / 0.6571 GB, free: 12.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002189/0.9057, allocations: 223.8 kB / 0.6573 GB, free: 12.04 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003935/0.9061, allocations: 230.8 kB / 0.6575 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002487/0.9063, allocations: 108 kB / 0.6576 GB, free: 11.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003324/0.9097, allocations: 1.844 MB / 0.6594 GB, free: 9.855 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.9097, allocations: 4 kB / 0.6594 GB, free: 9.852 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008149/0.9178, allocations: 2.088 MB / 0.6614 GB, free: 7.766 MB / 458.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 () * 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.0005173/0.9183, allocations: 247 kB / 0.6617 GB, free: 7.523 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.1986/1.117, allocations: 9.142 MB / 0.6706 GB, free: 148.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.689e-06/1.117, allocations: 0 / 0.6706 GB, free: 148.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004536/1.122, allocations: 2.625 MB / 0.6732 GB, free: 148.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00347/1.125, allocations: 0.7772 MB / 0.6739 GB, free: 148 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01883/1.144, allocations: 14.74 MB / 0.6883 GB, free: 140.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003134/1.147, allocations: 4.332 MB / 0.6926 GB, free: 138.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/1.148, allocations: 319 kB / 0.6929 GB, free: 138.6 MB / 458.7 MB Notification: Performance of SimCode: time 9.52e-07/1.148, allocations: 0 / 0.6929 GB, free: 138.6 MB / 458.7 MB Notification: Performance of Templates: time 0.1062/1.255, allocations: 113.7 MB / 0.8039 GB, free: 29.78 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening --alarm=480 > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)