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.001259/0.001259, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001493/0.001493, allocations: 216.5 kB / 18.58 MB, free: 4.406 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.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 66.42 kB / 307 MB, free: 0.5859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1097, allocations: 50.53 MB / 357.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2373/0.347, allocations: 24.68 MB / 382.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01572/0.3629, allocations: 7.87 MB / 390 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00554/0.3684, allocations: 168 kB / 390.2 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01384/0.3823, allocations: 5.682 MB / 395.9 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009674/0.392, allocations: 2.56 MB / 398.5 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006042/0.3981, allocations: 1.832 MB / 400.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01157/0.4096, allocations: 7.809 MB / 408.1 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0227/0.4324, allocations: 14.6 MB / 422.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00679/0.4392, allocations: 3.939 MB / 426.6 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008819/0.4481, allocations: 4.567 MB / 431.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003168/0.4513, allocations: 1.105 MB / 432.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004958/0.4563, allocations: 1.476 MB / 433.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003204/0.4595, allocations: 2.248 MB / 436 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007222/0.4667, allocations: 4.33 MB / 440.4 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01653/0.4833, allocations: 14.96 MB / 455.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.4833, allocations: 0 / 455.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4833, allocations: 0 / 455.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003892/0.4837, allocations: 0 / 455.3 MB, free: 10.36 MB / 366.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.02934/0.5131, allocations: 9.233 MB / 464.6 MB, free: 1.039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.5131, allocations: 15.97 kB / 464.6 MB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03035/0.5435, allocations: 5.302 MB / 469.9 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/0.5539, allocations: 4.613 MB / 474.5 MB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005411/0.5545, allocations: 0.5098 MB / 475 MB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002757/0.5572, allocations: 0.6834 MB / 475.7 MB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0246/0.5819, allocations: 11.15 MB / 486.8 MB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002553/0.5821, allocations: 11.89 kB / 486.8 MB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001711/0.5839, allocations: 291.9 kB / 487.1 MB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004356/0.5843, allocations: 422.5 kB / 487.5 MB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02167/0.606, allocations: 10.71 MB / 498.3 MB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05925/0.6653, allocations: 36.28 MB / 0.522 GB, free: 9.898 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1844/0.8497, allocations: 11.89 MB / 0.5336 GB, free: 130.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005503/0.8552, allocations: 2.846 MB / 0.5364 GB, free: 130.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003734/0.8556, allocations: 248.1 kB / 0.5366 GB, free: 130.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.36e-05/0.8557, allocations: 74.86 kB / 0.5367 GB, free: 130.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 5.861e-06/0.8557, allocations: 0 / 0.5367 GB, free: 130.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.03603/0.8917, allocations: 15.83 MB / 0.5522 GB, free: 125.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.8919, allocations: 145.7 kB / 0.5523 GB, free: 125 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003923/0.8958, allocations: 2.792 MB / 0.555 GB, free: 123.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005523/0.8963, allocations: 85.58 kB / 0.5551 GB, free: 123.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001298/0.8977, allocations: 2.879 MB / 0.5579 GB, free: 121.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009287/0.8986, allocations: 1.269 MB / 0.5592 GB, free: 120.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00143/0.9, allocations: 0.895 MB / 0.56 GB, free: 120.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.813e-05/0.9001, allocations: 301.1 kB / 0.5603 GB, free: 120 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003272/0.9034, allocations: 2.315 MB / 0.5626 GB, free: 119.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003676/0.907, allocations: 3.913 MB / 0.5664 GB, free: 116.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006651/0.9137, allocations: 6.709 MB / 0.573 GB, free: 111.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.397e-05/0.9138, allocations: 19.22 kB / 0.573 GB, free: 111.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.009967/0.9237, allocations: 7.087 MB / 0.5799 GB, free: 108.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.102e-05/0.9238, allocations: 24 kB / 0.5799 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.917e-05/0.9239, allocations: 52 kB / 0.58 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003502/0.9274, allocations: 1.236 MB / 0.5812 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00377/0.9312, allocations: 1.069 MB / 0.5822 GB, free: 106.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002971/0.9342, allocations: 2.355 MB / 0.5845 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003533/0.9378, allocations: 295.5 kB / 0.5848 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000658/0.9384, allocations: 224 kB / 0.585 GB, free: 103.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006566/0.945, allocations: 4.518 MB / 0.5894 GB, free: 98.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003775/0.9488, allocations: 3.905 MB / 0.5932 GB, free: 94.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007215/0.956, allocations: 6.683 MB / 0.5998 GB, free: 86.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.276e-05/0.9561, allocations: 20 kB / 0.5998 GB, free: 86.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01044/0.9665, allocations: 7.037 MB / 0.6067 GB, free: 79.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.843e-05/0.9666, allocations: 31.98 kB / 0.6067 GB, free: 79.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.504e-05/0.9667, allocations: 48.72 kB / 0.6067 GB, free: 79.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003272/0.97, allocations: 1.197 MB / 0.6079 GB, free: 78.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003478/0.9735, allocations: 1.065 MB / 0.6089 GB, free: 77.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002423/0.9759, allocations: 2.292 MB / 0.6112 GB, free: 74.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003222/0.9791, allocations: 271.7 kB / 0.6114 GB, free: 74.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004756/0.9796, allocations: 232 kB / 0.6117 GB, free: 74.38 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,55)} Notification: Performance of prepare postOptimizeDAE: time 0.001063/0.9807, allocations: 495.6 kB / 0.6121 GB, free: 73.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/0.9817, allocations: 359.7 kB / 0.6125 GB, free: 73.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009149/0.9909, allocations: 5.853 MB / 0.6182 GB, free: 67.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/0.9909, allocations: 47.92 kB / 0.6182 GB, free: 67.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/0.991, allocations: 0 / 0.6182 GB, free: 67.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-05/0.991, allocations: 19.92 kB / 0.6183 GB, free: 67.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02318/1.014, allocations: 12.9 MB / 0.6309 GB, free: 54.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/1.014, allocations: 4.125 kB / 0.6309 GB, free: 54.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002537/1.017, allocations: 0.6784 MB / 0.6315 GB, free: 53.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002895/1.02, allocations: 0.9844 MB / 0.6325 GB, free: 52.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000373/1.02, allocations: 79.98 kB / 0.6326 GB, free: 52.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0023/1.022, allocations: 2.054 MB / 0.6346 GB, free: 50.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.022, allocations: 0 / 0.6346 GB, free: 50.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/1.034, allocations: 8.5 MB / 0.6429 GB, free: 42.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002039/1.036, allocations: 0.8324 MB / 0.6437 GB, free: 41.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008676/1.037, allocations: 71.98 kB / 0.6437 GB, free: 41.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002134/1.039, allocations: 211.8 kB / 0.644 GB, free: 41.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000452/1.039, allocations: 226.8 kB / 0.6442 GB, free: 40.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002184/1.04, allocations: 108 kB / 0.6443 GB, free: 40.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00294/1.043, allocations: 1.867 MB / 0.6461 GB, free: 38.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/1.043, allocations: 0 / 0.6461 GB, free: 38.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006667/1.049, allocations: 2.094 MB / 0.6481 GB, free: 36.79 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,50)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004906/1.05, allocations: 253 kB / 0.6484 GB, free: 36.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02856/1.078, allocations: 14.76 MB / 0.6628 GB, free: 21.83 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.078, allocations: 0 / 0.6628 GB, free: 21.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004069/1.082, allocations: 2.632 MB / 0.6654 GB, free: 19.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004167/1.087, allocations: 0.8049 MB / 0.6661 GB, free: 18.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01889/1.106, allocations: 12.55 MB / 0.6784 GB, free: 5.871 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004493/1.11, allocations: 4.451 MB / 0.6827 GB, free: 1.391 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00669/1.117, allocations: 2.283 MB / 0.685 GB, free: 15.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/1.118, allocations: 287.3 kB / 0.6852 GB, free: 14.81 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/1.118, allocations: 0 / 0.6852 GB, free: 14.81 MB / 462.1 MB Notification: Performance of Templates: time 0.3443/1.462, allocations: 62.21 MB / 0.746 GB, free: 115.2 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)