Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2.2_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.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001022/0.001022, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.13/1.13, allocations: 194.5 MB / 211.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00151/0.00151, allocations: 112.1 kB / 256.9 MB, free: 4.371 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002646/0.0002646, allocations: 8 kB / 310.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07307/0.07334, allocations: 44.5 MB / 355.1 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2663/0.3397, allocations: 130.1 MB / 485.2 MB, free: 8.219 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.3399, allocations: 109.6 kB / 485.3 MB, free: 8.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8603/1.2, allocations: 332.9 MB / 0.799 GB, free: 3.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.914e-06/1.2, allocations: 0 / 0.799 GB, free: 3.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000429/1.201, allocations: 219.8 kB / 0.7992 GB, free: 3.605 MB / 394.7 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.02717/1.228, allocations: 9.17 MB / 0.8082 GB, free: 10.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/1.228, allocations: 12.03 kB / 0.8082 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03112/1.259, allocations: 5.887 MB / 0.8139 GB, free: 4.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3546/1.614, allocations: 7.465 MB / 0.8212 GB, free: 29.55 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006329/1.614, allocations: 0.7217 MB / 0.8219 GB, free: 29.53 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002752/1.617, allocations: 0.9382 MB / 0.8228 GB, free: 29.53 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03002/1.647, allocations: 17 MB / 0.8394 GB, free: 28.42 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003222/1.648, allocations: 15.09 kB / 0.8394 GB, free: 28.42 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002122/1.65, allocations: 411.1 kB / 0.8398 GB, free: 28.42 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005607/1.65, allocations: 0.7164 MB / 0.8405 GB, free: 28.39 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02948/1.68, allocations: 15.89 MB / 0.8561 GB, free: 28.3 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09612/1.776, allocations: 52.79 MB / 0.9076 GB, free: 8.879 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.032/1.808, allocations: 41.48 MB / 0.9481 GB, free: 4.059 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04665/1.855, allocations: 21.8 MB / 0.9694 GB, free: 9.676 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.164e-05/1.855, allocations: 91.06 kB / 0.9695 GB, free: 9.574 MB / 458.8 MB Notification: Performance of pre-optimization done (n=693): time 9.518e-06/1.855, allocations: 0 / 0.9695 GB, free: 9.574 MB / 458.8 MB Notification: Performance of matching and sorting (n=701): time 0.303/2.158, allocations: 42.25 MB / 1.011 GB, free: 88.4 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/2.158, allocations: 111.7 kB / 1.011 GB, free: 88.33 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003355/2.161, allocations: 2.458 MB / 1.013 GB, free: 88.08 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001029/2.162, allocations: 120.5 kB / 1.013 GB, free: 88.05 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002065/2.164, allocations: 3.624 MB / 1.017 GB, free: 86.28 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002617/2.167, allocations: 2.307 MB / 1.019 GB, free: 84.78 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006835/2.168, allocations: 131.3 kB / 1.019 GB, free: 84.78 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0005257/2.168, allocations: 0.6062 MB / 1.02 GB, free: 84.46 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007157/2.176, allocations: 4.527 MB / 1.024 GB, free: 84.45 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008315/2.184, allocations: 6.32 MB / 1.03 GB, free: 82.47 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009973/2.194, allocations: 5.611 MB / 1.036 GB, free: 82.39 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.216e-05/2.194, allocations: 17.22 kB / 1.036 GB, free: 82.39 MB / 474.8 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.0251/2.219, allocations: 13.71 MB / 1.049 GB, free: 81.91 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.323e-05/2.219, allocations: 28.5 kB / 1.049 GB, free: 81.91 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/2.219, allocations: 52.62 kB / 1.049 GB, free: 81.91 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007384/2.227, allocations: 4.017 MB / 1.053 GB, free: 81.82 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004863/2.232, allocations: 1.223 MB / 1.055 GB, free: 81.82 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00979/2.241, allocations: 9.681 MB / 1.064 GB, free: 79.64 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004979/2.246, allocations: 351.6 kB / 1.064 GB, free: 79.63 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001688/2.248, allocations: 313.9 kB / 1.065 GB, free: 79.63 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (650): * Single equations (assignments): 598 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.008208/2.256, allocations: 3.61 MB / 1.068 GB, free: 79.48 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001342/2.258, allocations: 456.3 kB / 1.069 GB, free: 79.25 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02226/2.28, allocations: 13 MB / 1.081 GB, free: 73.91 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001988/2.28, allocations: 187 kB / 1.081 GB, free: 73.82 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/2.28, allocations: 2.844 kB / 1.081 GB, free: 73.82 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001216/2.28, allocations: 29.11 kB / 1.082 GB, free: 73.82 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03762/2.318, allocations: 24.86 MB / 1.106 GB, free: 62.95 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.052e-05/2.318, allocations: 11.22 kB / 1.106 GB, free: 62.95 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003465/2.322, allocations: 0.82 MB / 1.107 GB, free: 62.92 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005862/2.327, allocations: 3.921 MB / 1.11 GB, free: 61.72 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00105/2.329, allocations: 149.7 kB / 1.111 GB, free: 61.64 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008544/2.337, allocations: 9.549 MB / 1.12 GB, free: 56.29 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/2.337, allocations: 6.219 kB / 1.12 GB, free: 56.29 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02491/2.362, allocations: 19.71 MB / 1.139 GB, free: 40.7 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004105/2.366, allocations: 1.479 MB / 1.141 GB, free: 39.36 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001204/2.367, allocations: 103.8 kB / 1.141 GB, free: 39.26 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002957/2.37, allocations: 274.6 kB / 1.141 GB, free: 39.07 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009619/2.371, allocations: 0.5098 MB / 1.141 GB, free: 38.74 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004673/2.372, allocations: 189.2 kB / 1.142 GB, free: 38.57 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.002609/2.374, allocations: 1.854 MB / 1.143 GB, free: 37.03 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.12e-07/2.374, allocations: 0 / 1.143 GB, free: 37.03 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.005763/2.38, allocations: 1.728 MB / 1.145 GB, free: 35.32 MB / 474.8 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 (443): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001104/2.381, allocations: 0.5911 MB / 1.146 GB, free: 34.88 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01712/2.398, allocations: 11.17 MB / 1.157 GB, free: 25.25 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/2.399, allocations: 4 kB / 1.157 GB, free: 25.25 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009666/2.408, allocations: 5.724 MB / 1.162 GB, free: 20.33 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005565/2.414, allocations: 0.8486 MB / 1.163 GB, free: 19.67 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2308/2.645, allocations: 25.06 MB / 1.188 GB, free: 79.7 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008154/2.653, allocations: 6.533 MB / 1.194 GB, free: 78.73 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.005425/2.658, allocations: 1.562 MB / 1.195 GB, free: 78.57 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/2.66, allocations: 335.9 kB / 1.196 GB, free: 78.57 MB / 474.8 MB Notification: Performance of SimCode: time 2.094e-06/2.66, allocations: 0 / 1.196 GB, free: 78.57 MB / 474.8 MB Notification: Performance of Templates: time 0.1426/2.802, allocations: 111.4 MB / 1.304 GB, free: 35.68 MB / 474.8 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1)