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.001587/0.001587, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002014/0.002014, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.369/1.369, allocations: 205.1 MB / 222 MB, free: 4.762 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.001257/0.001258, allocations: 52.36 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2021, allocations: 46.63 MB / 324.7 MB, free: 1.953 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02748/0.2296, allocations: 28.68 MB / 353.4 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01755/0.2472, allocations: 8.464 MB / 361.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005909/0.2532, allocations: 171.4 kB / 362 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01762/0.2709, allocations: 7.753 MB / 369.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008955/0.2798, allocations: 2.773 MB / 372.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005147/0.285, allocations: 1.781 MB / 374.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01208/0.2971, allocations: 10.58 MB / 384.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02603/0.3232, allocations: 17.92 MB / 402.8 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006541/0.3297, allocations: 4.868 MB / 407.7 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008231/0.338, allocations: 6.104 MB / 413.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003044/0.3411, allocations: 1.062 MB / 414.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004679/0.3458, allocations: 1.414 MB / 416.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003933/0.3497, allocations: 2.652 MB / 418.9 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009661/0.3594, allocations: 5.574 MB / 424.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01888/0.3783, allocations: 20.72 MB / 445.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3783, allocations: 0 / 445.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3784, allocations: 0 / 445.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004225/0.3788, allocations: 0 / 445.2 MB, free: 11.16 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.3059/0.6847, allocations: 12.47 MB / 457.7 MB, free: 98.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.6848, allocations: 13.09 kB / 457.7 MB, free: 98.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04625/0.7311, allocations: 8.581 MB / 466.3 MB, free: 95.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01099/0.7421, allocations: 5.882 MB / 472.2 MB, free: 91.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00046/0.7426, allocations: 0.7406 MB / 472.9 MB, free: 91.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003161/0.7458, allocations: 0.9759 MB / 473.9 MB, free: 90.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03106/0.7768, allocations: 16.57 MB / 490.4 MB, free: 74.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004204/0.7773, allocations: 15.8 kB / 490.5 MB, free: 74.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002584/0.7799, allocations: 419.3 kB / 490.9 MB, free: 73.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005023/0.7804, allocations: 0.6067 MB / 491.5 MB, free: 73.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02758/0.808, allocations: 15.95 MB / 0.4955 GB, free: 57.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07385/0.8819, allocations: 52.12 MB / 0.5464 GB, free: 3.945 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03231/0.9142, allocations: 52.27 MB / 0.5975 GB, free: 8.727 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006194/0.9205, allocations: 3.452 MB / 0.6008 GB, free: 5.262 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01703/0.9375, allocations: 9.411 MB / 0.61 GB, free: 11.73 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.559e-05/0.9376, allocations: 60.69 kB / 0.6101 GB, free: 11.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=270): time 4.698e-06/0.9376, allocations: 0 / 0.6101 GB, free: 11.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=278): time 0.1853/1.123, allocations: 12.88 MB / 0.6227 GB, free: 164.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/1.123, allocations: 80.09 kB / 0.6227 GB, free: 164.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00519/1.128, allocations: 4.062 MB / 0.6267 GB, free: 163.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003906/1.129, allocations: 71.89 kB / 0.6268 GB, free: 163.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001826/1.13, allocations: 4.636 MB / 0.6313 GB, free: 161 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007749/1.131, allocations: 0.9903 MB / 0.6323 GB, free: 160.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001325/1.133, allocations: 1.234 MB / 0.6335 GB, free: 159.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.523e-05/1.133, allocations: 305.5 kB / 0.6338 GB, free: 159.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002785/1.135, allocations: 2.443 MB / 0.6362 GB, free: 158.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003746/1.139, allocations: 5.601 MB / 0.6416 GB, free: 153.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007421/1.147, allocations: 8.688 MB / 0.6501 GB, free: 146.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-05/1.147, allocations: 35.31 kB / 0.6501 GB, free: 146.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01263/1.159, allocations: 8.731 MB / 0.6587 GB, free: 142.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.163e-05/1.159, allocations: 57.86 kB / 0.6587 GB, free: 142.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001586/1.16, allocations: 106.6 kB / 0.6588 GB, free: 142.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002152/1.162, allocations: 0.8559 MB / 0.6597 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004142/1.166, allocations: 1.411 MB / 0.661 GB, free: 142.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007849/1.174, allocations: 6.986 MB / 0.6679 GB, free: 136.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004307/1.178, allocations: 351.3 kB / 0.6682 GB, free: 135.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005924/1.179, allocations: 352 kB / 0.6685 GB, free: 135.5 MB / 462.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.004708/1.183, allocations: 3.68 MB / 0.6721 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007484/1.184, allocations: 411 kB / 0.6725 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00691/1.191, allocations: 5.059 MB / 0.6775 GB, free: 126.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/1.191, allocations: 32 kB / 0.6775 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/1.191, allocations: 11.06 kB / 0.6775 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.096e-05/1.191, allocations: 15.89 kB / 0.6775 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/1.206, allocations: 12.19 MB / 0.6894 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/1.206, allocations: 4 kB / 0.6894 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001985/1.208, allocations: 0.5187 MB / 0.6899 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001738/1.21, allocations: 0.6918 MB / 0.6906 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001771/1.21, allocations: 67.98 kB / 0.6907 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006528/1.217, allocations: 6.147 MB / 0.6967 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.217, allocations: 8 kB / 0.6967 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008774/1.226, allocations: 7.318 MB / 0.7038 GB, free: 98.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001548/1.227, allocations: 0.812 MB / 0.7046 GB, free: 98.06 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005054/1.228, allocations: 52 kB / 0.7047 GB, free: 98.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/1.229, allocations: 164.9 kB / 0.7048 GB, free: 97.85 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004056/1.23, allocations: 202 kB / 0.705 GB, free: 97.65 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001727/1.23, allocations: 87.97 kB / 0.7051 GB, free: 97.57 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003219/1.233, allocations: 2.676 MB / 0.7077 GB, free: 94.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.233, allocations: 0 / 0.7077 GB, free: 94.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005042/1.238, allocations: 1.547 MB / 0.7092 GB, free: 93.34 MB / 462.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.0004539/1.239, allocations: 226.6 kB / 0.7095 GB, free: 93.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007732/1.247, allocations: 6.112 MB / 0.7154 GB, free: 86.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/1.247, allocations: 1.875 kB / 0.7154 GB, free: 86.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003055/1.25, allocations: 2.468 MB / 0.7178 GB, free: 84.49 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004184/1.254, allocations: 0.894 MB / 0.7187 GB, free: 83.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0252/1.279, allocations: 20.39 MB / 0.7386 GB, free: 63.19 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006612/1.286, allocations: 6.207 MB / 0.7447 GB, free: 56.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004973/1.291, allocations: 1.951 MB / 0.7466 GB, free: 54.99 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009384/1.292, allocations: 327.4 kB / 0.7469 GB, free: 54.67 MB / 462.1 MB Notification: Performance of SimCode: time 8.21e-07/1.292, allocations: 0 / 0.7469 GB, free: 54.67 MB / 462.1 MB Notification: Performance of Templates: time 0.2435/1.535, allocations: 56.83 MB / 0.8024 GB, free: 137.2 MB / 462.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)