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.007175/0.00718, allocations: 101.3 kB / 15.73 MB, free: 6.039 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.001567/0.001567, allocations: 193.8 kB / 16.68 MB, free: 5.953 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.406/1.406, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001111/0.001111, allocations: 42.28 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07585/0.07697, allocations: 46.62 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02934/0.1064, allocations: 29.21 MB / 402.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01725/0.1236, allocations: 8.533 MB / 410.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005089/0.1288, allocations: 183.4 kB / 411.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01956/0.1484, allocations: 8.191 MB / 419.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01063/0.159, allocations: 3.042 MB / 422.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006015/0.1651, allocations: 1.894 MB / 424.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01451/0.1796, allocations: 10.5 MB / 434.8 MB, free: 3.488 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2285/0.4081, allocations: 21.47 MB / 456.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009167/0.4173, allocations: 5.594 MB / 461.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01143/0.4288, allocations: 6.365 MB / 468.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004962/0.4338, allocations: 1.584 MB / 469.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006654/0.4405, allocations: 1.933 MB / 471.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00498/0.4455, allocations: 3.185 MB / 474.9 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009622/0.4551, allocations: 6.132 MB / 481 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02025/0.4754, allocations: 21.18 MB / 0.4904 GB, free: 188 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.4754, allocations: 0 / 0.4904 GB, free: 188 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4754, allocations: 0 / 0.4904 GB, free: 188 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005821/0.476, allocations: 4 kB / 0.4904 GB, free: 184 kB / 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.03509/0.5111, allocations: 12.44 MB / 0.5026 GB, free: 8.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.5112, allocations: 12.03 kB / 0.5026 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04831/0.5595, allocations: 8.593 MB / 0.511 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01294/0.5725, allocations: 5.905 MB / 0.5168 GB, free: 9.836 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006263/0.5731, allocations: 0.7428 MB / 0.5175 GB, free: 9.105 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003439/0.5766, allocations: 0.9742 MB / 0.5184 GB, free: 8.145 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03822/0.6148, allocations: 16.57 MB / 0.5346 GB, free: 7.527 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003311/0.6152, allocations: 11.89 kB / 0.5346 GB, free: 7.516 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002442/0.6177, allocations: 413.9 kB / 0.535 GB, free: 7.125 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006335/0.6183, allocations: 0.6106 MB / 0.5356 GB, free: 6.512 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03176/0.6501, allocations: 15.97 MB / 0.5512 GB, free: 6.535 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09384/0.7439, allocations: 51.59 MB / 0.6016 GB, free: 2.379 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.232/0.976, allocations: 52.26 MB / 0.6526 GB, free: 152.5 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006285/0.9823, allocations: 3.467 MB / 0.656 GB, free: 152.4 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01626/0.9986, allocations: 9.385 MB / 0.6652 GB, free: 149.1 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/0.9987, allocations: 61.66 kB / 0.6652 GB, free: 149 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=270): time 4.468e-06/0.9987, allocations: 0 / 0.6652 GB, free: 149 MB / 0.5137 GB Notification: Performance of matching and sorting (n=278): time 0.02421/1.023, allocations: 12.94 MB / 0.6779 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/1.023, allocations: 77.34 kB / 0.6779 GB, free: 143.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005337/1.028, allocations: 4.062 MB / 0.6819 GB, free: 142 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003143/1.029, allocations: 75.7 kB / 0.682 GB, free: 141.9 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002041/1.031, allocations: 4.629 MB / 0.6865 GB, free: 138.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007633/1.031, allocations: 0.993 MB / 0.6875 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/1.033, allocations: 1.229 MB / 0.6887 GB, free: 137.1 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 3.816e-05/1.033, allocations: 316.3 kB / 0.689 GB, free: 136.7 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002845/1.036, allocations: 2.439 MB / 0.6914 GB, free: 135.9 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00375/1.04, allocations: 5.609 MB / 0.6968 GB, free: 130.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007488/1.047, allocations: 8.687 MB / 0.7053 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.858e-05/1.047, allocations: 31.66 kB / 0.7053 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01253/1.06, allocations: 8.752 MB / 0.7139 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.595e-05/1.06, allocations: 51.81 kB / 0.7139 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/1.06, allocations: 113 kB / 0.7141 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/1.062, allocations: 0.8672 MB / 0.7149 GB, free: 119.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003931/1.066, allocations: 1.405 MB / 0.7163 GB, free: 118.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008465/1.074, allocations: 7.575 MB / 0.7237 GB, free: 111.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004685/1.079, allocations: 348.5 kB / 0.724 GB, free: 111.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008511/1.08, allocations: 351.7 kB / 0.7243 GB, free: 111 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.005523/1.085, allocations: 3.678 MB / 0.7279 GB, free: 107.4 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/1.086, allocations: 406.9 kB / 0.7283 GB, free: 107 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00736/1.094, allocations: 5.079 MB / 0.7333 GB, free: 101.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.742e-05/1.094, allocations: 35.94 kB / 0.7333 GB, free: 101.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/1.094, allocations: 8 kB / 0.7333 GB, free: 101.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.209e-05/1.094, allocations: 11.95 kB / 0.7333 GB, free: 101.8 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01669/1.111, allocations: 12.21 MB / 0.7453 GB, free: 89.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/1.111, allocations: 4 kB / 0.7453 GB, free: 89.49 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/1.113, allocations: 0.5231 MB / 0.7458 GB, free: 88.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/1.115, allocations: 0.7031 MB / 0.7465 GB, free: 88.26 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001733/1.115, allocations: 67.98 kB / 0.7465 GB, free: 88.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007317/1.122, allocations: 6.696 MB / 0.7531 GB, free: 81.37 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.122, allocations: 4 kB / 0.7531 GB, free: 81.36 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009044/1.131, allocations: 7.349 MB / 0.7602 GB, free: 73.87 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001839/1.133, allocations: 0.8045 MB / 0.761 GB, free: 73.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004892/1.133, allocations: 55.94 kB / 0.7611 GB, free: 72.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/1.135, allocations: 159.8 kB / 0.7612 GB, free: 72.83 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003842/1.136, allocations: 210.8 kB / 0.7614 GB, free: 72.62 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001694/1.136, allocations: 91.97 kB / 0.7615 GB, free: 72.54 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00345/1.139, allocations: 2.669 MB / 0.7641 GB, free: 69.86 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/1.139, allocations: 0 / 0.7641 GB, free: 69.86 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005375/1.145, allocations: 1.547 MB / 0.7656 GB, free: 68.31 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.0005175/1.145, allocations: 221.4 kB / 0.7658 GB, free: 68.09 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008498/1.154, allocations: 6.14 MB / 0.7718 GB, free: 61.95 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.154, allocations: 4 kB / 0.7718 GB, free: 61.94 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003341/1.157, allocations: 2.478 MB / 0.7743 GB, free: 59.45 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004373/1.161, allocations: 0.9539 MB / 0.7752 GB, free: 58.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02325/1.185, allocations: 16.09 MB / 0.7909 GB, free: 42.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005014/1.19, allocations: 6.211 MB / 0.797 GB, free: 36.16 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004599/1.194, allocations: 1.947 MB / 0.7989 GB, free: 34.21 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008432/1.195, allocations: 319.4 kB / 0.7992 GB, free: 33.89 MB / 0.5137 GB Notification: Performance of SimCode: time 1.312e-06/1.195, allocations: 4 kB / 0.7992 GB, free: 33.89 MB / 0.5137 GB Notification: Performance of Templates: time 0.2967/1.492, allocations: 55.87 MB / 0.8537 GB, free: 160.6 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)