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.001693/0.001693, allocations: 115.5 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00196/0.00196, allocations: 204.6 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 60.03 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2429, allocations: 50.54 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.02433/0.2673, allocations: 24.68 MB / 434 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0145/0.2818, allocations: 7.871 MB / 441.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004871/0.2868, allocations: 167.5 kB / 442 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01426/0.3011, allocations: 5.754 MB / 447.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008069/0.3092, allocations: 2.6 MB / 450.3 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005013/0.3142, allocations: 1.836 MB / 452.2 MB, free: 6.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.3249, allocations: 7.862 MB / 460 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02167/0.3466, allocations: 14.5 MB / 474.5 MB, free: 15.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006317/0.3529, allocations: 3.97 MB / 478.5 MB, free: 12.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006788/0.3597, allocations: 4.547 MB / 483.1 MB, free: 7.449 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002677/0.3624, allocations: 1.105 MB / 484.2 MB, free: 6.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004077/0.3665, allocations: 1.472 MB / 485.6 MB, free: 4.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003169/0.3697, allocations: 2.225 MB / 487.9 MB, free: 2.641 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006923/0.3767, allocations: 4.338 MB / 492.2 MB, free: 14.29 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01861/0.3953, allocations: 15.05 MB / 0.4954 GB, free: 15.19 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3954, allocations: 0 / 0.4954 GB, free: 15.19 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3954, allocations: 0 / 0.4954 GB, free: 15.19 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004677/0.3958, allocations: 0 / 0.4954 GB, free: 15.19 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.03067/0.4265, allocations: 9.198 MB / 0.5043 GB, free: 5.906 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.4266, allocations: 8.031 kB / 0.5043 GB, free: 5.898 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03021/0.4568, allocations: 5.337 MB / 0.5096 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01153/0.4684, allocations: 4.73 MB / 0.5142 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006599/0.4691, allocations: 0.5058 MB / 0.5147 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003658/0.4728, allocations: 0.6678 MB / 0.5153 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03134/0.5042, allocations: 11.16 MB / 0.5262 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002841/0.5045, allocations: 11.91 kB / 0.5262 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002568/0.5071, allocations: 284 kB / 0.5265 GB, free: 15.04 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004709/0.5075, allocations: 434.4 kB / 0.5269 GB, free: 14.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02402/0.5316, allocations: 10.72 MB / 0.5374 GB, free: 3.879 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2868/0.8184, allocations: 35.86 MB / 0.5724 GB, free: 93.99 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008714/0.8272, allocations: 11.89 MB / 0.584 GB, free: 83.65 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003544/0.8307, allocations: 2.858 MB / 0.5868 GB, free: 81.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000371/0.8311, allocations: 244.8 kB / 0.587 GB, free: 80.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.8312, allocations: 69.44 kB / 0.5871 GB, free: 80.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 5.21e-06/0.8312, allocations: 3.875 kB / 0.5871 GB, free: 80.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.03188/0.8631, allocations: 15.82 MB / 0.6026 GB, free: 65.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.8632, allocations: 149.6 kB / 0.6027 GB, free: 64.92 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002973/0.8661, allocations: 2.801 MB / 0.6054 GB, free: 62.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002656/0.8664, allocations: 85.7 kB / 0.6055 GB, free: 62.01 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009838/0.8674, allocations: 2.876 MB / 0.6083 GB, free: 59.11 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000633/0.8681, allocations: 1.265 MB / 0.6096 GB, free: 57.86 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001033/0.8691, allocations: 0.8906 MB / 0.6104 GB, free: 56.95 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.789e-05/0.8691, allocations: 301.1 kB / 0.6107 GB, free: 56.66 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002679/0.8718, allocations: 2.322 MB / 0.613 GB, free: 54.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003263/0.8751, allocations: 3.916 MB / 0.6168 GB, free: 49.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007116/0.8822, allocations: 6.703 MB / 0.6234 GB, free: 42.21 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-05/0.8823, allocations: 16 kB / 0.6234 GB, free: 42.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01203/0.8943, allocations: 7.096 MB / 0.6303 GB, free: 35.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.911e-05/0.8944, allocations: 26.81 kB / 0.6303 GB, free: 35.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.512e-05/0.8945, allocations: 52.05 kB / 0.6304 GB, free: 35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003227/0.8978, allocations: 1.229 MB / 0.6316 GB, free: 33.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003848/0.9016, allocations: 1.076 MB / 0.6326 GB, free: 32.69 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002843/0.9045, allocations: 2.355 MB / 0.6349 GB, free: 30.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003276/0.9078, allocations: 299.5 kB / 0.6352 GB, free: 30.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006087/0.9084, allocations: 220 kB / 0.6354 GB, free: 29.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007615/0.916, allocations: 4.519 MB / 0.6398 GB, free: 25.27 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004013/0.9201, allocations: 3.9 MB / 0.6437 GB, free: 20.63 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00785/0.928, allocations: 6.683 MB / 0.6502 GB, free: 13.21 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.034e-05/0.9281, allocations: 16 kB / 0.6502 GB, free: 13.19 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01148/0.9396, allocations: 7.049 MB / 0.6571 GB, free: 6.105 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.801e-05/0.9396, allocations: 28 kB / 0.6571 GB, free: 6.078 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.108e-05/0.9397, allocations: 51.94 kB / 0.6572 GB, free: 6.027 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003201/0.9429, allocations: 1.182 MB / 0.6583 GB, free: 4.844 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003762/0.9467, allocations: 1.065 MB / 0.6594 GB, free: 3.777 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002652/0.9494, allocations: 2.288 MB / 0.6616 GB, free: 1.461 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003351/0.9527, allocations: 279.7 kB / 0.6619 GB, free: 1.188 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007781/0.9535, allocations: 224 kB / 0.6621 GB, free: 0.9688 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.001331/0.9549, allocations: 494.6 kB / 0.6625 GB, free: 488 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/0.956, allocations: 351.7 kB / 0.6629 GB, free: 132 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01147/0.9675, allocations: 5.859 MB / 0.6686 GB, free: 10.23 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-05/0.9675, allocations: 43.94 kB / 0.6686 GB, free: 10.19 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.9675, allocations: 0 / 0.6686 GB, free: 10.19 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.291e-05/0.9676, allocations: 19.92 kB / 0.6687 GB, free: 10.17 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02302/0.9906, allocations: 12.65 MB / 0.681 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.9907, allocations: 4.031 kB / 0.681 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002587/0.9933, allocations: 0.6709 MB / 0.6817 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003059/0.9963, allocations: 0.9818 MB / 0.6826 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002669/0.9966, allocations: 79.97 kB / 0.6827 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002662/0.9993, allocations: 2.052 MB / 0.6847 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.9993, allocations: 4.031 kB / 0.6847 GB, free: 9.676 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/1.011, allocations: 8.501 MB / 0.693 GB, free: 1.105 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001799/1.013, allocations: 0.8363 MB / 0.6938 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004144/1.014, allocations: 68 kB / 0.6939 GB, free: 184 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00174/1.015, allocations: 215.9 kB / 0.6941 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004117/1.016, allocations: 226.6 kB / 0.6943 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002225/1.016, allocations: 112 kB / 0.6944 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002594/1.019, allocations: 1.867 MB / 0.6962 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/1.019, allocations: 0 / 0.6962 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005533/1.024, allocations: 2.088 MB / 0.6983 GB, free: 11.68 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.000475/1.025, allocations: 249.2 kB / 0.6985 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01508/1.04, allocations: 9.199 MB / 0.7075 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.04, allocations: 1.812 kB / 0.7075 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004482/1.044, allocations: 2.631 MB / 0.7101 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003386/1.048, allocations: 0.7965 MB / 0.7109 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02006/1.068, allocations: 12.39 MB / 0.723 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004265/1.072, allocations: 4.443 MB / 0.7273 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006245/1.078, allocations: 2.287 MB / 0.7295 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009222/1.079, allocations: 287.4 kB / 0.7298 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/1.079, allocations: 4 kB / 0.7298 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of Templates: time 0.3356/1.415, allocations: 59.61 MB / 0.788 GB, free: 149.7 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)