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.00109/0.00109, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.5 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007889/0.0007891, allocations: 103.5 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002312/0.0002314, allocations: 8 kB / 356.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2226, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.01554/0.2382, allocations: 21.61 MB / 429.7 MB, free: 6.016 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01407/0.2523, allocations: 7.244 MB / 436.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005613/0.258, allocations: 151.6 kB / 437.1 MB, free: 14.62 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005126/0.2631, allocations: 1.157 MB / 438.2 MB, free: 13.46 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.008889/0.272, allocations: 2.117 MB / 440.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004831/0.2769, allocations: 1.195 MB / 441.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01389/0.2908, allocations: 9.058 MB / 450.6 MB, free: 1.066 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0275/0.3183, allocations: 14.05 MB / 464.6 MB, free: 2.887 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005355/0.3238, allocations: 2.9 MB / 467.5 MB, free: 15.97 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006653/0.3304, allocations: 3.389 MB / 470.9 MB, free: 12.57 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002318/0.3328, allocations: 436 kB / 471.4 MB, free: 12.15 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004805/0.3376, allocations: 0.7808 MB / 472.1 MB, free: 11.37 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003044/0.3407, allocations: 1.397 MB / 473.5 MB, free: 9.965 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008516/0.3492, allocations: 3.311 MB / 476.9 MB, free: 6.633 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01831/0.3676, allocations: 12.6 MB / 489.4 MB, free: 10 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.3676, allocations: 0 / 489.4 MB, free: 10 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3677, allocations: 0 / 489.4 MB, free: 10 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005886/0.3683, allocations: 0 / 489.4 MB, free: 10 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.02696/0.3952, allocations: 7.723 MB / 497.2 MB, free: 2.191 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.3953, allocations: 8.031 kB / 497.2 MB, free: 2.184 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02784/0.4232, allocations: 5.314 MB / 0.4907 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01165/0.4349, allocations: 4.628 MB / 0.4952 GB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006722/0.4356, allocations: 0.5097 MB / 0.4957 GB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00325/0.4389, allocations: 0.6678 MB / 0.4964 GB, free: 6.988 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2321/0.671, allocations: 11.11 MB / 0.5072 GB, free: 77.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000202/0.6712, allocations: 10.12 kB / 0.5073 GB, free: 77.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001008/0.6722, allocations: 285.7 kB / 0.5075 GB, free: 77.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004109/0.6727, allocations: 426.5 kB / 0.5079 GB, free: 77.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01943/0.6921, allocations: 10.69 MB / 0.5184 GB, free: 73.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0486/0.7407, allocations: 36.39 MB / 0.5539 GB, free: 41.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008484/0.7493, allocations: 11.86 MB / 0.5655 GB, free: 28.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003695/0.753, allocations: 2.849 MB / 0.5683 GB, free: 25.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003428/0.7534, allocations: 248.3 kB / 0.5685 GB, free: 25.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.7534, allocations: 73.42 kB / 0.5686 GB, free: 25.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=365): time 6.082e-06/0.7535, allocations: 3.938 kB / 0.5686 GB, free: 25.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=375): time 0.03062/0.7841, allocations: 15.93 MB / 0.5841 GB, free: 9.133 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.7842, allocations: 116.1 kB / 0.5843 GB, free: 9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00347/0.7877, allocations: 2.766 MB / 0.587 GB, free: 6.215 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004357/0.7881, allocations: 85.7 kB / 0.587 GB, free: 6.125 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001137/0.7893, allocations: 2.879 MB / 0.5898 GB, free: 3.227 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008515/0.7901, allocations: 1.272 MB / 0.5911 GB, free: 1.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00024/0.7904, allocations: 92 kB / 0.5912 GB, free: 1.875 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.7906, allocations: 0.4926 MB / 0.5917 GB, free: 1.375 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003362/0.7939, allocations: 2.293 MB / 0.5939 GB, free: 15.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004742/0.7987, allocations: 3.906 MB / 0.5977 GB, free: 10.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009267/0.808, allocations: 6.718 MB / 0.6043 GB, free: 2.973 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.006e-05/0.808, allocations: 12 kB / 0.6043 GB, free: 2.961 MB / 394.7 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.0121/0.8202, allocations: 7.068 MB / 0.6112 GB, free: 11.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001252/0.8214, allocations: 1.605 MB / 0.6128 GB, free: 9.535 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-05/0.8215, allocations: 52 kB / 0.6128 GB, free: 9.484 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003539/0.8251, allocations: 1.262 MB / 0.614 GB, free: 8.219 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004048/0.8291, allocations: 1.076 MB / 0.6151 GB, free: 7.141 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/0.8328, allocations: 2.394 MB / 0.6174 GB, free: 4.723 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003604/0.8364, allocations: 303.4 kB / 0.6177 GB, free: 4.426 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000814/0.8372, allocations: 227.9 kB / 0.6179 GB, free: 4.203 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.8373, allocations: 4 kB / 0.6179 GB, free: 4.199 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01201/0.8493, allocations: 6.725 MB / 0.6245 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/0.8494, allocations: 55.94 kB / 0.6246 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00306/0.8525, allocations: 1.139 MB / 0.6257 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003838/0.8564, allocations: 1.072 MB / 0.6267 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002915/0.8593, allocations: 2.309 MB / 0.629 GB, free: 8.852 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00287/0.8622, allocations: 275.7 kB / 0.6292 GB, free: 8.582 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000474/0.8627, allocations: 228 kB / 0.6294 GB, free: 8.359 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.004564/0.8672, allocations: 2.557 MB / 0.6319 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008338/0.8681, allocations: 347.8 kB / 0.6323 GB, free: 5.449 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/0.8783, allocations: 5.866 MB / 0.638 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.205e-05/0.8783, allocations: 40 kB / 0.638 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.8783, allocations: 0 / 0.638 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.594e-05/0.8784, allocations: 19.92 kB / 0.6381 GB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02106/0.8995, allocations: 12.92 MB / 0.6507 GB, free: 2.457 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.8995, allocations: 4 kB / 0.6507 GB, free: 2.453 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0028/0.9023, allocations: 0.6711 MB / 0.6513 GB, free: 1.781 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003084/0.9054, allocations: 0.9819 MB / 0.6523 GB, free: 0.7969 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003349/0.9058, allocations: 79.97 kB / 0.6524 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002819/0.9086, allocations: 2.06 MB / 0.6544 GB, free: 14.63 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.9086, allocations: 3.938 kB / 0.6544 GB, free: 14.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01286/0.9215, allocations: 8.502 MB / 0.6627 GB, free: 6.055 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001771/0.9233, allocations: 0.8324 MB / 0.6635 GB, free: 5.199 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004815/0.9238, allocations: 68 kB / 0.6636 GB, free: 5.133 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/0.9255, allocations: 227.8 kB / 0.6638 GB, free: 4.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004054/0.926, allocations: 222.8 kB / 0.664 GB, free: 4.691 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002177/0.9262, allocations: 104 kB / 0.6641 GB, free: 4.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002821/0.929, allocations: 1.847 MB / 0.6659 GB, free: 2.738 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.863e-06/0.929, allocations: 0 / 0.6659 GB, free: 2.738 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005673/0.9347, allocations: 2.092 MB / 0.6679 GB, free: 0.6484 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.0005137/0.9352, allocations: 254.8 kB / 0.6682 GB, free: 408 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01503/0.9503, allocations: 9.141 MB / 0.6771 GB, free: 7.273 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.9503, allocations: 0 / 0.6771 GB, free: 7.273 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004522/0.9548, allocations: 2.636 MB / 0.6797 GB, free: 4.648 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003785/0.9586, allocations: 0.7546 MB / 0.6804 GB, free: 3.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1762/1.135, allocations: 14.73 MB / 0.6948 GB, free: 158.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004351/1.139, allocations: 4.333 MB / 0.699 GB, free: 157.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001372/1.141, allocations: 316.8 kB / 0.6993 GB, free: 157.2 MB / 474.7 MB Notification: Performance of SimCode: time 8.02e-07/1.141, allocations: 0 / 0.6993 GB, free: 157.2 MB / 474.7 MB Notification: Performance of Templates: time 0.1081/1.249, allocations: 113.5 MB / 0.8102 GB, free: 54.36 MB / 474.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)