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.008758/0.008758, allocations: 100.7 kB / 15.73 MB, free: 6.008 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.001825/0.001825, allocations: 193.5 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.00128/0.00128, allocations: 54.67 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08808, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03136/0.1195, allocations: 29.21 MB / 402.4 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01755/0.1371, allocations: 8.533 MB / 410.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005635/0.1428, allocations: 183.4 kB / 411.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01938/0.1622, allocations: 8.265 MB / 419.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01035/0.1726, allocations: 3.082 MB / 422.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005809/0.1784, allocations: 1.905 MB / 424.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0146/0.193, allocations: 10.5 MB / 434.9 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2371/0.4302, allocations: 21.46 MB / 456.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01092/0.4412, allocations: 5.623 MB / 462 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01182/0.453, allocations: 6.364 MB / 468.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005019/0.4581, allocations: 1.581 MB / 469.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007504/0.4656, allocations: 1.928 MB / 471.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005634/0.4713, allocations: 3.189 MB / 475 MB, free: 11.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0101/0.4814, allocations: 6.124 MB / 481.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01983/0.5012, allocations: 21.19 MB / 0.4906 GB, free: 15.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.5013, allocations: 6.844 kB / 0.4906 GB, free: 15.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.5013, allocations: 0 / 0.4906 GB, free: 15.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006994/0.502, allocations: 0 / 0.4906 GB, free: 15.49 MB / 398.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.04042/0.5424, allocations: 12.44 MB / 0.5027 GB, free: 7.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.5425, allocations: 11.81 kB / 0.5027 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04711/0.5896, allocations: 8.6 MB / 0.5111 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01219/0.6019, allocations: 5.899 MB / 0.5169 GB, free: 9.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006881/0.6026, allocations: 0.7391 MB / 0.5176 GB, free: 8.949 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004284/0.6069, allocations: 0.9813 MB / 0.5186 GB, free: 7.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03951/0.6464, allocations: 16.56 MB / 0.5347 GB, free: 7.371 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004389/0.6469, allocations: 15.91 kB / 0.5348 GB, free: 7.355 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002906/0.6498, allocations: 413.8 kB / 0.5352 GB, free: 6.965 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006544/0.6505, allocations: 0.6067 MB / 0.5357 GB, free: 6.355 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0345/0.685, allocations: 15.97 MB / 0.5513 GB, free: 6.371 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08926/0.7743, allocations: 51.58 MB / 0.6017 GB, free: 2.215 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2128/0.9871, allocations: 52.27 MB / 0.6528 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007029/0.9942, allocations: 3.464 MB / 0.6561 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01774/1.012, allocations: 9.384 MB / 0.6653 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/1.012, allocations: 65.34 kB / 0.6654 GB, free: 148.8 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=270): time 6.513e-06/1.012, allocations: 3.812 kB / 0.6654 GB, free: 148.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=278): time 0.02506/1.037, allocations: 12.94 MB / 0.678 GB, free: 143.3 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/1.037, allocations: 77.28 kB / 0.6781 GB, free: 143.3 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006952/1.044, allocations: 4.063 MB / 0.682 GB, free: 141.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004414/1.045, allocations: 71.05 kB / 0.6821 GB, free: 141.7 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002107/1.047, allocations: 4.635 MB / 0.6866 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008871/1.048, allocations: 0.9879 MB / 0.6876 GB, free: 137.4 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002091/1.05, allocations: 1.243 MB / 0.6888 GB, free: 136.8 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.073e-05/1.05, allocations: 305.1 kB / 0.6891 GB, free: 136.5 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003252/1.053, allocations: 2.448 MB / 0.6915 GB, free: 135.6 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004408/1.057, allocations: 5.603 MB / 0.697 GB, free: 130.4 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008525/1.066, allocations: 8.692 MB / 0.7055 GB, free: 123.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.151e-05/1.066, allocations: 31.31 kB / 0.7055 GB, free: 123.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01451/1.081, allocations: 8.751 MB / 0.714 GB, free: 120 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.729e-05/1.081, allocations: 51.53 kB / 0.7141 GB, free: 120 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001678/1.081, allocations: 109 kB / 0.7142 GB, free: 120 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002256/1.083, allocations: 0.8678 MB / 0.715 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004543/1.088, allocations: 1.399 MB / 0.7164 GB, free: 118.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009591/1.097, allocations: 7.575 MB / 0.7238 GB, free: 111.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00541/1.103, allocations: 347.7 kB / 0.7241 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/1.104, allocations: 351.7 kB / 0.7245 GB, free: 110.7 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006255/1.11, allocations: 3.674 MB / 0.7281 GB, free: 107.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.111, allocations: 413.7 kB / 0.7285 GB, free: 106.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008046/1.12, allocations: 5.077 MB / 0.7334 GB, free: 101.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/1.12, allocations: 35.98 kB / 0.7334 GB, free: 101.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/1.12, allocations: 8 kB / 0.7335 GB, free: 101.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.391e-05/1.12, allocations: 13.03 kB / 0.7335 GB, free: 101.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02289/1.143, allocations: 12.21 MB / 0.7454 GB, free: 89.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/1.143, allocations: 4 kB / 0.7454 GB, free: 89.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00209/1.145, allocations: 0.5149 MB / 0.7459 GB, free: 88.75 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001874/1.147, allocations: 0.7111 MB / 0.7466 GB, free: 88.03 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002527/1.147, allocations: 67.92 kB / 0.7467 GB, free: 87.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007286/1.154, allocations: 6.694 MB / 0.7532 GB, free: 81.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.154, allocations: 7.938 kB / 0.7532 GB, free: 81.13 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009465/1.164, allocations: 7.35 MB / 0.7604 GB, free: 73.64 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00181/1.165, allocations: 0.7966 MB / 0.7612 GB, free: 72.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009168/1.166, allocations: 62.56 kB / 0.7612 GB, free: 72.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00209/1.169, allocations: 163.8 kB / 0.7614 GB, free: 72.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004097/1.169, allocations: 206 kB / 0.7616 GB, free: 72.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001931/1.169, allocations: 83.98 kB / 0.7616 GB, free: 72.32 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004023/1.173, allocations: 2.68 MB / 0.7643 GB, free: 69.62 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/1.173, allocations: 0 / 0.7643 GB, free: 69.62 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00562/1.179, allocations: 1.544 MB / 0.7658 GB, free: 68.08 MB / 0.5137 GB 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 (263): * Single equations (assignments): 262 * 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): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005089/1.179, allocations: 232.1 kB / 0.766 GB, free: 67.86 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008801/1.188, allocations: 6.131 MB / 0.772 GB, free: 61.71 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.188, allocations: 1.875 kB / 0.772 GB, free: 61.71 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003585/1.192, allocations: 2.481 MB / 0.7744 GB, free: 59.21 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005942/1.198, allocations: 0.9427 MB / 0.7753 GB, free: 58.29 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0264/1.224, allocations: 16.09 MB / 0.791 GB, free: 42.18 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008368/1.233, allocations: 6.199 MB / 0.7971 GB, free: 35.94 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005019/1.238, allocations: 1.947 MB / 0.799 GB, free: 33.99 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/1.239, allocations: 327.4 kB / 0.7993 GB, free: 33.67 MB / 0.5137 GB Notification: Performance of SimCode: time 7.01e-07/1.239, allocations: 3.938 kB / 0.7993 GB, free: 33.66 MB / 0.5137 GB Notification: Performance of Templates: time 0.2872/1.526, allocations: 55.87 MB / 0.8539 GB, free: 160.8 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (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)