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.001511/0.001511, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001776/0.001776, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.437/1.437, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001226/0.001226, allocations: 59.92 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1963, allocations: 46.62 MB / 324.9 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02625/0.2226, allocations: 28.69 MB / 353.6 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01558/0.2382, allocations: 8.432 MB / 362 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005179/0.2434, allocations: 171.4 kB / 362.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01807/0.2616, allocations: 7.741 MB / 369.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009077/0.2707, allocations: 2.757 MB / 372.7 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005051/0.2757, allocations: 1.762 MB / 374.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01164/0.2874, allocations: 10.45 MB / 384.9 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03051/0.3179, allocations: 24.78 MB / 409.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007326/0.3253, allocations: 5.653 MB / 415.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008912/0.3342, allocations: 6.447 MB / 421.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003352/0.3376, allocations: 1.582 MB / 423.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005033/0.3427, allocations: 1.941 MB / 425.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003704/0.3464, allocations: 3.191 MB / 428.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008937/0.3553, allocations: 6.128 MB / 434.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02097/0.3764, allocations: 21.07 MB / 455.7 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.3764, allocations: 0 / 455.7 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3764, allocations: 0 / 455.7 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005147/0.3769, allocations: 0 / 455.7 MB, free: 0.8164 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.1828/0.5598, allocations: 12.48 MB / 468.1 MB, free: 99.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.5599, allocations: 11.84 kB / 468.1 MB, free: 99.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.044/0.6039, allocations: 8.581 MB / 476.7 MB, free: 93.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01027/0.6142, allocations: 5.875 MB / 482.6 MB, free: 87.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004569/0.6147, allocations: 0.7533 MB / 483.4 MB, free: 86.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003349/0.618, allocations: 0.9761 MB / 484.3 MB, free: 85.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03203/0.6501, allocations: 16.57 MB / 0.4892 GB, free: 69.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003748/0.6505, allocations: 11.91 kB / 0.4892 GB, free: 69.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002489/0.653, allocations: 427 kB / 0.4896 GB, free: 68.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004685/0.6535, allocations: 0.6067 MB / 0.4902 GB, free: 68.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02513/0.6786, allocations: 15.96 MB / 0.5058 GB, free: 52.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0715/0.7501, allocations: 52.11 MB / 0.5566 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0352/0.7854, allocations: 52.27 MB / 0.6077 GB, free: 3.586 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005703/0.7911, allocations: 3.46 MB / 0.6111 GB, free: 116 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3161/1.107, allocations: 9.4 MB / 0.6202 GB, free: 148.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/1.107, allocations: 56.5 kB / 0.6203 GB, free: 148.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.228e-06/1.107, allocations: 3.25 kB / 0.6203 GB, free: 148.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02368/1.131, allocations: 12.88 MB / 0.6329 GB, free: 143.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/1.131, allocations: 80.88 kB / 0.633 GB, free: 143.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004773/1.136, allocations: 4.063 MB / 0.6369 GB, free: 141.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002745/1.136, allocations: 69.52 kB / 0.637 GB, free: 141.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001876/1.138, allocations: 4.635 MB / 0.6415 GB, free: 138.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006634/1.139, allocations: 0.9961 MB / 0.6425 GB, free: 137.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001519/1.14, allocations: 1.227 MB / 0.6437 GB, free: 136.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.872e-05/1.14, allocations: 301.1 kB / 0.644 GB, free: 136.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002952/1.143, allocations: 2.446 MB / 0.6464 GB, free: 135 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003694/1.147, allocations: 5.605 MB / 0.6518 GB, free: 128.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007305/1.154, allocations: 8.686 MB / 0.6603 GB, free: 118.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.86e-05/1.154, allocations: 32 kB / 0.6604 GB, free: 118.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01131/1.166, allocations: 8.738 MB / 0.6689 GB, free: 110.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.375e-05/1.166, allocations: 55.94 kB / 0.6689 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001027/1.166, allocations: 112 kB / 0.669 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001933/1.168, allocations: 0.857 MB / 0.6699 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003903/1.172, allocations: 1.404 MB / 0.6713 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008021/1.18, allocations: 7.509 MB / 0.6786 GB, free: 99.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004132/1.184, allocations: 355.2 kB / 0.6789 GB, free: 99.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000505/1.184, allocations: 351.9 kB / 0.6793 GB, free: 99.3 MB / 446.1 MB 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.004975/1.189, allocations: 3.68 MB / 0.6829 GB, free: 95.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008881/1.19, allocations: 411 kB / 0.6832 GB, free: 95.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007024/1.197, allocations: 5.056 MB / 0.6882 GB, free: 90.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/1.197, allocations: 35.92 kB / 0.6882 GB, free: 90.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/1.197, allocations: 12 kB / 0.6882 GB, free: 90.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/1.197, allocations: 11.95 kB / 0.6882 GB, free: 90.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01896/1.216, allocations: 12.2 MB / 0.7002 GB, free: 77.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/1.216, allocations: 4 kB / 0.7002 GB, free: 77.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001975/1.218, allocations: 0.5188 MB / 0.7007 GB, free: 77.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/1.22, allocations: 0.6916 MB / 0.7013 GB, free: 76.53 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002149/1.22, allocations: 63.98 kB / 0.7014 GB, free: 76.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006926/1.227, allocations: 6.642 MB / 0.7079 GB, free: 69.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.227, allocations: 4 kB / 0.7079 GB, free: 69.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008698/1.236, allocations: 7.323 MB / 0.715 GB, free: 62.22 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/1.238, allocations: 0.8043 MB / 0.7158 GB, free: 61.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009662/1.239, allocations: 55.94 kB / 0.7159 GB, free: 61.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002063/1.241, allocations: 163.8 kB / 0.716 GB, free: 61.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004022/1.241, allocations: 206 kB / 0.7162 GB, free: 60.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001773/1.241, allocations: 83.98 kB / 0.7163 GB, free: 60.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004022/1.245, allocations: 2.68 MB / 0.7189 GB, free: 58.21 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.245, allocations: 0 / 0.7189 GB, free: 58.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005989/1.251, allocations: 1.553 MB / 0.7204 GB, free: 56.66 MB / 446.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 (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.0005387/1.252, allocations: 220.3 kB / 0.7207 GB, free: 56.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01538/1.267, allocations: 9.109 MB / 0.7296 GB, free: 47.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/1.267, allocations: 0 / 0.7296 GB, free: 47.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003222/1.271, allocations: 2.471 MB / 0.732 GB, free: 44.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004727/1.275, allocations: 0.9445 MB / 0.7329 GB, free: 43.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02608/1.301, allocations: 20.39 MB / 0.7528 GB, free: 23.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00792/1.309, allocations: 6.199 MB / 0.7589 GB, free: 17.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005808/1.315, allocations: 1.951 MB / 0.7608 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/1.316, allocations: 331.4 kB / 0.7611 GB, free: 14.98 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/1.316, allocations: 0 / 0.7611 GB, free: 14.98 MB / 446.1 MB Notification: Performance of Templates: time 0.2835/1.6, allocations: 58.84 MB / 0.8185 GB, free: 108.9 MB / 446.1 MB 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)