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.001253/0.001253, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001419, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 55.91 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2503, allocations: 50.55 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.02339/0.2738, allocations: 24.68 MB / 434 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01376/0.2876, allocations: 7.871 MB / 441.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004246/0.2918, allocations: 167.5 kB / 442 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0128/0.3047, allocations: 5.692 MB / 447.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007345/0.312, allocations: 2.552 MB / 450.2 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004309/0.3164, allocations: 1.835 MB / 452.1 MB, free: 6.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009371/0.3257, allocations: 7.862 MB / 459.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01654/0.3423, allocations: 14.49 MB / 474.4 MB, free: 124 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004749/0.3471, allocations: 3.958 MB / 478.4 MB, free: 12.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005574/0.3527, allocations: 4.539 MB / 482.9 MB, free: 7.598 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001914/0.3546, allocations: 1.113 MB / 484 MB, free: 6.484 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002811/0.3574, allocations: 1.461 MB / 485.5 MB, free: 5.023 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001838/0.3593, allocations: 2.24 MB / 487.7 MB, free: 2.777 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005136/0.3644, allocations: 4.338 MB / 492.1 MB, free: 14.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01595/0.3804, allocations: 15.09 MB / 0.4953 GB, free: 15.29 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3804, allocations: 0 / 0.4953 GB, free: 15.29 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3805, allocations: 0 / 0.4953 GB, free: 15.29 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000379/0.3808, allocations: 0 / 0.4953 GB, free: 15.29 MB / 430.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.02573/0.4066, allocations: 9.374 MB / 0.5044 GB, free: 5.816 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.4066, allocations: 8.031 kB / 0.5044 GB, free: 5.809 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02899/0.4356, allocations: 5.357 MB / 0.5097 GB, free: 452 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009723/0.4454, allocations: 4.759 MB / 0.5143 GB, free: 11.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003972/0.4458, allocations: 0.5058 MB / 0.5148 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001971/0.4478, allocations: 0.6757 MB / 0.5155 GB, free: 10.44 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02182/0.4696, allocations: 11.16 MB / 0.5264 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001499/0.4698, allocations: 19.88 kB / 0.5264 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000744/0.4706, allocations: 280 kB / 0.5266 GB, free: 14.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003978/0.471, allocations: 430.4 kB / 0.5271 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01915/0.4901, allocations: 10.72 MB / 0.5375 GB, free: 3.754 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.285/0.7752, allocations: 35.95 MB / 0.5726 GB, free: 93.62 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008263/0.7835, allocations: 11.9 MB / 0.5842 GB, free: 83.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003379/0.7869, allocations: 2.848 MB / 0.587 GB, free: 80.89 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003042/0.7873, allocations: 248.6 kB / 0.5873 GB, free: 80.62 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/0.7873, allocations: 76.81 kB / 0.5873 GB, free: 80.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 5.28e-06/0.7873, allocations: 0 / 0.5873 GB, free: 80.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.03172/0.819, allocations: 15.92 MB / 0.6029 GB, free: 64.89 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.8191, allocations: 145.7 kB / 0.603 GB, free: 64.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003378/0.8225, allocations: 2.794 MB / 0.6057 GB, free: 61.95 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003168/0.8229, allocations: 85.7 kB / 0.6058 GB, free: 61.86 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.8242, allocations: 2.98 MB / 0.6087 GB, free: 59.29 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008384/0.8251, allocations: 1.33 MB / 0.61 GB, free: 57.97 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/0.8261, allocations: 0.8988 MB / 0.6109 GB, free: 57.06 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.688e-05/0.8262, allocations: 301.1 kB / 0.6112 GB, free: 56.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/0.8289, allocations: 2.314 MB / 0.6135 GB, free: 54.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0034/0.8323, allocations: 3.924 MB / 0.6173 GB, free: 49.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006628/0.8389, allocations: 6.703 MB / 0.6238 GB, free: 42.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.54e-05/0.839, allocations: 12 kB / 0.6239 GB, free: 42.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.009716/0.8487, allocations: 7.105 MB / 0.6308 GB, free: 35.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.857e-05/0.8488, allocations: 31.94 kB / 0.6308 GB, free: 35.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.222e-05/0.8488, allocations: 52.72 kB / 0.6309 GB, free: 35.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00319/0.852, allocations: 1.229 MB / 0.6321 GB, free: 33.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003398/0.8554, allocations: 1.061 MB / 0.6331 GB, free: 32.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002807/0.8583, allocations: 2.363 MB / 0.6354 GB, free: 30.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003127/0.8614, allocations: 291.6 kB / 0.6357 GB, free: 30.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003422/0.8617, allocations: 228 kB / 0.6359 GB, free: 29.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00579/0.8675, allocations: 4.522 MB / 0.6403 GB, free: 25.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003345/0.8709, allocations: 3.896 MB / 0.6441 GB, free: 20.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006402/0.8773, allocations: 6.683 MB / 0.6507 GB, free: 13.31 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.003e-05/0.8774, allocations: 20 kB / 0.6507 GB, free: 13.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.008835/0.8862, allocations: 7.055 MB / 0.6576 GB, free: 6.199 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.8863, allocations: 28 kB / 0.6576 GB, free: 6.172 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-05/0.8863, allocations: 52.72 kB / 0.6576 GB, free: 6.121 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003035/0.8893, allocations: 1.193 MB / 0.6588 GB, free: 4.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003212/0.8926, allocations: 1.065 MB / 0.6598 GB, free: 3.863 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.8949, allocations: 2.293 MB / 0.6621 GB, free: 1.543 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002921/0.8978, allocations: 275.7 kB / 0.6624 GB, free: 1.273 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003076/0.8981, allocations: 228 kB / 0.6626 GB, free: 1.051 MB / 462.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.0007808/0.8989, allocations: 0.4975 MB / 0.6631 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005361/0.8995, allocations: 365.7 kB / 0.6634 GB, free: 192 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009525/0.909, allocations: 5.847 MB / 0.6691 GB, free: 10.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.827e-05/0.9091, allocations: 39.94 kB / 0.6692 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.9091, allocations: 0 / 0.6692 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.579e-05/0.9091, allocations: 23.92 kB / 0.6692 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01901/0.9281, allocations: 12.67 MB / 0.6815 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.9282, allocations: 4 kB / 0.6816 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002638/0.9308, allocations: 0.667 MB / 0.6822 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003065/0.9339, allocations: 0.978 MB / 0.6832 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002909/0.9342, allocations: 83.97 kB / 0.6832 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002688/0.9369, allocations: 2.05 MB / 0.6852 GB, free: 9.738 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.9369, allocations: 4 kB / 0.6852 GB, free: 9.734 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01247/0.9494, allocations: 8.508 MB / 0.6936 GB, free: 1.152 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00181/0.9512, allocations: 0.8539 MB / 0.6944 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007309/0.952, allocations: 68.06 kB / 0.6945 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002147/0.9542, allocations: 215.8 kB / 0.6947 GB, free: 0 / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004406/0.9546, allocations: 222.8 kB / 0.6949 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002407/0.9549, allocations: 115.9 kB / 0.695 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003265/0.9581, allocations: 1.875 MB / 0.6968 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9581, allocations: 0 / 0.6968 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006692/0.9648, allocations: 2.09 MB / 0.6989 GB, free: 11.7 MB / 0.4981 GB 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.0005475/0.9654, allocations: 246.5 kB / 0.6991 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01754/0.983, allocations: 9.196 MB / 0.7081 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.983, allocations: 8.25 kB / 0.7081 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004934/0.988, allocations: 2.628 MB / 0.7106 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004325/0.9923, allocations: 0.8015 MB / 0.7114 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02426/1.017, allocations: 12.58 MB / 0.7237 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005244/1.022, allocations: 4.451 MB / 0.7281 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006161/1.028, allocations: 2.283 MB / 0.7303 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009075/1.029, allocations: 291.4 kB / 0.7306 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/1.029, allocations: 0 / 0.7306 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of Templates: time 0.3069/1.336, allocations: 59.61 MB / 0.7888 GB, free: 149.6 MB / 0.5294 GB 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)