Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009111/0.0009112, allocations: 100.9 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009054/0.0009055, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.257/1.257, allocations: 205.4 MB / 222.1 MB, free: 5.5 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004537/0.0004537, allocations: 8 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.204, allocations: 47.59 MB / 326.5 MB, free: 1.457 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02338/0.2275, allocations: 23.41 MB / 349.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01622/0.2437, allocations: 8.13 MB / 358 MB, free: 3.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004632/0.2484, allocations: 171.4 kB / 358.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005588/0.254, allocations: 1.706 MB / 359.9 MB, free: 2 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.264, allocations: 2.933 MB / 362.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004258/0.2683, allocations: 1.442 MB / 364.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0131/0.2814, allocations: 8.329 MB / 372.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02975/0.3112, allocations: 17.25 MB / 389.8 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006023/0.3173, allocations: 3.703 MB / 393.5 MB, free: 212 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006799/0.3241, allocations: 4.241 MB / 397.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001724/0.3259, allocations: 0.6055 MB / 398.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002947/0.3288, allocations: 0.9097 MB / 399.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001846/0.3307, allocations: 1.908 MB / 401.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002756/0.3335, allocations: 2.044 MB / 403.3 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01722/0.3507, allocations: 17.77 MB / 421 MB, free: 4.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3507, allocations: 0 / 421 MB, free: 4.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.3507, allocations: 4 kB / 421 MB, free: 4.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004779/0.3512, allocations: 0 / 421 MB, free: 4.641 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02712/0.3784, allocations: 10.3 MB / 431.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.3784, allocations: 8.031 kB / 431.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04546/0.4239, allocations: 8.512 MB / 439.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01436/0.4383, allocations: 5.847 MB / 445.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009905/0.4393, allocations: 0.7386 MB / 446.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003857/0.4432, allocations: 0.9762 MB / 447.4 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.349/0.7923, allocations: 16.39 MB / 463.8 MB, free: 89.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002315/0.7925, allocations: 19.98 kB / 463.8 MB, free: 89.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001305/0.7938, allocations: 411.8 kB / 464.2 MB, free: 88.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005175/0.7944, allocations: 0.6131 MB / 464.8 MB, free: 88.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02758/0.822, allocations: 15.88 MB / 480.7 MB, free: 81.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06608/0.8881, allocations: 52.21 MB / 0.5204 GB, free: 32.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0295/0.9176, allocations: 52.19 MB / 0.5714 GB, free: 5.023 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01678/0.9344, allocations: 9.619 MB / 0.5808 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.729e-05/0.9345, allocations: 60.78 kB / 0.5808 GB, free: 11.33 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 4.007e-06/0.9345, allocations: 0 / 0.5808 GB, free: 11.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=289): time 0.02428/0.9588, allocations: 12.85 MB / 0.5934 GB, free: 14.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/0.9589, allocations: 81.69 kB / 0.5935 GB, free: 14.24 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005639/0.9645, allocations: 3.994 MB / 0.5974 GB, free: 10.22 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003098/0.9649, allocations: 73.7 kB / 0.5974 GB, free: 10.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002895/0.9678, allocations: 4.619 MB / 0.602 GB, free: 5.504 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000918/0.9687, allocations: 1.031 MB / 0.603 GB, free: 4.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.969, allocations: 124 kB / 0.6031 GB, free: 4.359 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003299/0.9693, allocations: 0.5504 MB / 0.6036 GB, free: 3.801 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003538/0.9729, allocations: 2.464 MB / 0.606 GB, free: 1.332 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005487/0.9784, allocations: 5.588 MB / 0.6115 GB, free: 10.21 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00506/0.9834, allocations: 3.767 MB / 0.6152 GB, free: 6.426 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.772e-05/0.9835, allocations: 32 kB / 0.6152 GB, free: 6.395 MB / 462.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.2005/1.184, allocations: 8.776 MB / 0.6238 GB, free: 152.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/1.184, allocations: 51.34 kB / 0.6238 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001684/1.184, allocations: 109 kB / 0.6239 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002177/1.187, allocations: 0.8542 MB / 0.6247 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005092/1.192, allocations: 1.429 MB / 0.6261 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008548/1.2, allocations: 7.163 MB / 0.6331 GB, free: 149.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004615/1.205, allocations: 352.8 kB / 0.6335 GB, free: 149.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005928/1.205, allocations: 352.6 kB / 0.6338 GB, free: 149.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 496 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 741 * 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: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005324/1.211, allocations: 3.677 MB / 0.6374 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000776/1.212, allocations: 405 kB / 0.6378 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007568/1.219, allocations: 5.187 MB / 0.6429 GB, free: 146.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.646e-05/1.219, allocations: 27.53 kB / 0.6429 GB, free: 146.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/1.219, allocations: 7.094 kB / 0.6429 GB, free: 146.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-05/1.219, allocations: 15.81 kB / 0.6429 GB, free: 146.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01878/1.238, allocations: 12.41 MB / 0.655 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/1.238, allocations: 2.688 kB / 0.655 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002155/1.24, allocations: 0.5422 MB / 0.6556 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001712/1.242, allocations: 0.6823 MB / 0.6562 GB, free: 141 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002115/1.242, allocations: 66.48 kB / 0.6563 GB, free: 140.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007262/1.249, allocations: 6.314 MB / 0.6624 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/1.25, allocations: 10.73 kB / 0.6625 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/1.26, allocations: 7.835 MB / 0.6701 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001989/1.262, allocations: 0.8411 MB / 0.6709 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008297/1.263, allocations: 55.98 kB / 0.671 GB, free: 129.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002158/1.265, allocations: 174.3 kB / 0.6711 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003993/1.265, allocations: 209.6 kB / 0.6713 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/1.266, allocations: 87.97 kB / 0.6714 GB, free: 129.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00464/1.27, allocations: 2.618 MB / 0.674 GB, free: 126.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.27, allocations: 0 / 0.674 GB, free: 126.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006997/1.277, allocations: 1.558 MB / 0.6755 GB, free: 125.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (274): * Single equations (assignments): 273 * 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: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006506/1.278, allocations: 226.7 kB / 0.6757 GB, free: 125 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009391/1.287, allocations: 6.182 MB / 0.6818 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/1.287, allocations: 0 / 0.6818 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003666/1.291, allocations: 2.523 MB / 0.6842 GB, free: 116.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004562/1.296, allocations: 0.8541 MB / 0.6851 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02709/1.323, allocations: 19.27 MB / 0.7039 GB, free: 96.08 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004743/1.328, allocations: 6.36 MB / 0.7101 GB, free: 89.69 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005013/1.333, allocations: 1.979 MB / 0.712 GB, free: 87.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000768/1.333, allocations: 339.4 kB / 0.7123 GB, free: 87.37 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/1.333, allocations: 0 / 0.7123 GB, free: 87.37 MB / 462.1 MB Notification: Performance of Templates: time 0.08133/1.415, allocations: 54.85 MB / 0.7659 GB, free: 32.5 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) Environment - environmentSimulation: