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.00542/0.00542, allocations: 102 kB / 15.73 MB, free: 6.488 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.001223/0.001223, allocations: 194.6 kB / 16.68 MB, free: 6.375 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.373/1.373, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001151/0.001151, allocations: 50.28 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0815/0.08266, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0294/0.1121, allocations: 29.21 MB / 402.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01691/0.1291, allocations: 8.529 MB / 410.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00528/0.1344, allocations: 179.4 kB / 411.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01939/0.1538, allocations: 8.269 MB / 419.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0114/0.1652, allocations: 3.089 MB / 422.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006867/0.1721, allocations: 1.898 MB / 424.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01481/0.187, allocations: 10.5 MB / 434.9 MB, free: 3.359 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2558/0.4428, allocations: 21.45 MB / 456.3 MB, free: 16.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008412/0.4513, allocations: 5.62 MB / 462 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01137/0.4627, allocations: 6.37 MB / 468.3 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004521/0.4672, allocations: 1.581 MB / 469.9 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006993/0.4742, allocations: 1.932 MB / 471.8 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005015/0.4793, allocations: 3.186 MB / 475 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01021/0.4895, allocations: 6.12 MB / 481.1 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0198/0.5093, allocations: 21.19 MB / 0.4906 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.123e-05/0.5094, allocations: 3.188 kB / 0.4906 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5094, allocations: 0 / 0.4906 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007276/0.5101, allocations: 0 / 0.4906 GB, free: 0.7305 MB / 382.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.03944/0.5496, allocations: 12.44 MB / 0.5027 GB, free: 8.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.5497, allocations: 8.031 kB / 0.5027 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04996/0.5996, allocations: 8.597 MB / 0.5111 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01324/0.6129, allocations: 5.906 MB / 0.5169 GB, free: 9.836 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000756/0.6137, allocations: 0.7395 MB / 0.5176 GB, free: 9.105 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005153/0.6189, allocations: 0.9833 MB / 0.5186 GB, free: 8.141 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03988/0.6587, allocations: 16.56 MB / 0.5347 GB, free: 7.531 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000394/0.6592, allocations: 15.89 kB / 0.5348 GB, free: 7.516 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002908/0.6621, allocations: 418.1 kB / 0.5352 GB, free: 7.121 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006442/0.6628, allocations: 0.6067 MB / 0.5357 GB, free: 6.512 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03528/0.6981, allocations: 15.97 MB / 0.5513 GB, free: 6.531 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08506/0.7831, allocations: 51.58 MB / 0.6017 GB, free: 2.367 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2196/1.003, allocations: 52.27 MB / 0.6528 GB, free: 152.3 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006763/1.01, allocations: 3.461 MB / 0.6561 GB, free: 152.3 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01636/1.026, allocations: 9.383 MB / 0.6653 GB, free: 149 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/1.026, allocations: 65.42 kB / 0.6654 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=270): time 5.4e-06/1.026, allocations: 0 / 0.6654 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=278): time 0.02515/1.051, allocations: 12.94 MB / 0.678 GB, free: 143.5 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/1.051, allocations: 81.19 kB / 0.6781 GB, free: 143.4 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0058/1.057, allocations: 4.061 MB / 0.682 GB, free: 141.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003492/1.057, allocations: 71.27 kB / 0.6821 GB, free: 141.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002256/1.06, allocations: 4.63 MB / 0.6866 GB, free: 138.3 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008477/1.061, allocations: 0.9908 MB / 0.6876 GB, free: 137.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001458/1.062, allocations: 1.23 MB / 0.6888 GB, free: 136.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.617e-05/1.062, allocations: 316.9 kB / 0.6891 GB, free: 136.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002935/1.065, allocations: 2.449 MB / 0.6915 GB, free: 135.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004082/1.069, allocations: 5.604 MB / 0.697 GB, free: 130.5 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00826/1.077, allocations: 8.685 MB / 0.7055 GB, free: 123.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.423e-05/1.078, allocations: 35.16 kB / 0.7055 GB, free: 123.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01385/1.091, allocations: 8.755 MB / 0.714 GB, free: 120.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.764e-05/1.092, allocations: 51.72 kB / 0.7141 GB, free: 120.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001531/1.092, allocations: 108.7 kB / 0.7142 GB, free: 120.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002109/1.094, allocations: 0.8688 MB / 0.715 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004323/1.098, allocations: 1.404 MB / 0.7164 GB, free: 118.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008745/1.107, allocations: 7.566 MB / 0.7238 GB, free: 111.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00489/1.112, allocations: 357.9 kB / 0.7241 GB, free: 111.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007011/1.113, allocations: 347.6 kB / 0.7245 GB, free: 110.8 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.005156/1.118, allocations: 3.674 MB / 0.7281 GB, free: 107.3 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008836/1.119, allocations: 407 kB / 0.7284 GB, free: 106.9 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007368/1.126, allocations: 5.085 MB / 0.7334 GB, free: 101.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-05/1.126, allocations: 32 kB / 0.7334 GB, free: 101.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/1.126, allocations: 4 kB / 0.7334 GB, free: 101.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.442e-05/1.126, allocations: 23.94 kB / 0.7335 GB, free: 101.7 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01795/1.144, allocations: 12.2 MB / 0.7454 GB, free: 89.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/1.144, allocations: 8.094 kB / 0.7454 GB, free: 89.44 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002065/1.146, allocations: 0.5187 MB / 0.7459 GB, free: 88.92 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001822/1.148, allocations: 0.7031 MB / 0.7466 GB, free: 88.21 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001799/1.148, allocations: 67.92 kB / 0.7467 GB, free: 88.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007351/1.156, allocations: 6.694 MB / 0.7532 GB, free: 81.32 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/1.156, allocations: 7.938 kB / 0.7532 GB, free: 81.31 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009174/1.165, allocations: 7.346 MB / 0.7604 GB, free: 73.82 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001982/1.167, allocations: 0.7966 MB / 0.7612 GB, free: 73 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006099/1.167, allocations: 66.48 kB / 0.7612 GB, free: 72.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/1.169, allocations: 159.8 kB / 0.7614 GB, free: 72.78 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003939/1.17, allocations: 210 kB / 0.7616 GB, free: 72.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001663/1.17, allocations: 87.98 kB / 0.7617 GB, free: 72.49 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003525/1.173, allocations: 2.672 MB / 0.7643 GB, free: 69.81 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.01e-07/1.173, allocations: 0 / 0.7643 GB, free: 69.81 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005701/1.179, allocations: 1.551 MB / 0.7658 GB, free: 68.26 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.0005109/1.179, allocations: 222.9 kB / 0.766 GB, free: 68.04 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008148/1.188, allocations: 6.135 MB / 0.772 GB, free: 61.89 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/1.188, allocations: 0 / 0.772 GB, free: 61.89 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003251/1.191, allocations: 2.479 MB / 0.7744 GB, free: 59.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004268/1.195, allocations: 0.953 MB / 0.7753 GB, free: 58.47 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02519/1.22, allocations: 16.09 MB / 0.791 GB, free: 42.35 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005116/1.226, allocations: 6.211 MB / 0.7971 GB, free: 36.11 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00467/1.23, allocations: 1.939 MB / 0.799 GB, free: 34.16 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008538/1.231, allocations: 327.4 kB / 0.7993 GB, free: 33.84 MB / 0.5137 GB Notification: Performance of SimCode: time 1.383e-06/1.231, allocations: 0 / 0.7993 GB, free: 33.84 MB / 0.5137 GB Notification: Performance of Templates: time 0.2917/1.523, 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)