Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.006926/0.006926, allocations: 98.91 kB / 15.73 MB, free: 5.988 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.001614/0.001614, allocations: 191.7 kB / 16.67 MB, free: 5.918 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.408/1.408, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001192/0.001192, allocations: 49.14 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08272/0.08392, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03009/0.1141, allocations: 29.21 MB / 402.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01699/0.1311, allocations: 8.529 MB / 410.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005549/0.1367, allocations: 183.4 kB / 411.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01914/0.1559, allocations: 8.273 MB / 419.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01098/0.1669, allocations: 3.078 MB / 422.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006166/0.173, allocations: 1.901 MB / 424.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01374/0.1868, allocations: 10.5 MB / 434.9 MB, free: 3.387 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2183/0.4051, allocations: 21.45 MB / 456.3 MB, free: 16.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009005/0.4142, allocations: 5.616 MB / 461.9 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01225/0.4265, allocations: 6.365 MB / 468.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0052/0.4317, allocations: 1.581 MB / 469.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006266/0.438, allocations: 1.935 MB / 471.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005423/0.4434, allocations: 3.185 MB / 475 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009719/0.4532, allocations: 6.126 MB / 481.1 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01785/0.4711, allocations: 21.24 MB / 0.4906 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.4711, allocations: 0 / 0.4906 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4711, allocations: 0 / 0.4906 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004872/0.4716, allocations: 0 / 0.4906 GB, free: 0.5391 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.03495/0.5066, allocations: 12.67 MB / 0.503 GB, free: 7.598 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.5066, allocations: 16.03 kB / 0.503 GB, free: 7.582 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04785/0.5545, allocations: 8.643 MB / 0.5114 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01523/0.5698, allocations: 5.927 MB / 0.5172 GB, free: 9.348 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008246/0.5706, allocations: 0.7393 MB / 0.518 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004334/0.575, allocations: 0.9739 MB / 0.5189 GB, free: 7.656 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04174/0.6167, allocations: 16.57 MB / 0.5351 GB, free: 7.043 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002958/0.6171, allocations: 15.91 kB / 0.5351 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002027/0.6191, allocations: 412.8 kB / 0.5355 GB, free: 6.637 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005869/0.6197, allocations: 0.6141 MB / 0.5361 GB, free: 6.023 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03382/0.6535, allocations: 15.96 MB / 0.5517 GB, free: 6.047 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09387/0.7474, allocations: 51.72 MB / 0.6022 GB, free: 1.777 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2307/0.9781, allocations: 52.26 MB / 0.6532 GB, free: 151.7 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00663/0.9848, allocations: 3.466 MB / 0.6566 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01612/1.001, allocations: 9.412 MB / 0.6658 GB, free: 148.3 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/1.001, allocations: 65.19 kB / 0.6659 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=270): time 4.258e-06/1.001, allocations: 0 / 0.6659 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=278): time 0.02338/1.024, allocations: 13.06 MB / 0.6786 GB, free: 142.7 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/1.025, allocations: 77.34 kB / 0.6787 GB, free: 142.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005187/1.03, allocations: 4.07 MB / 0.6827 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003019/1.03, allocations: 72.2 kB / 0.6827 GB, free: 141 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00199/1.032, allocations: 4.812 MB / 0.6874 GB, free: 137.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007467/1.033, allocations: 1.039 MB / 0.6885 GB, free: 136.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/1.034, allocations: 1.242 MB / 0.6897 GB, free: 136 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.429e-05/1.034, allocations: 305.1 kB / 0.69 GB, free: 135.7 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002978/1.037, allocations: 2.45 MB / 0.6923 GB, free: 134.8 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003978/1.041, allocations: 5.599 MB / 0.6978 GB, free: 129.6 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008056/1.049, allocations: 8.698 MB / 0.7063 GB, free: 122.7 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001003/1.049, allocations: 30.19 kB / 0.7063 GB, free: 122.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01444/1.064, allocations: 8.767 MB / 0.7149 GB, free: 119.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.613e-05/1.064, allocations: 51.31 kB / 0.7149 GB, free: 119.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001471/1.064, allocations: 108.8 kB / 0.7151 GB, free: 119.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002169/1.066, allocations: 0.872 MB / 0.7159 GB, free: 118.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004616/1.071, allocations: 1.4 MB / 0.7173 GB, free: 117.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008726/1.08, allocations: 7.576 MB / 0.7247 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004994/1.085, allocations: 357.7 kB / 0.725 GB, free: 110.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/1.086, allocations: 347.8 kB / 0.7253 GB, free: 109.9 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.005567/1.091, allocations: 3.675 MB / 0.7289 GB, free: 106.3 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/1.092, allocations: 425.3 kB / 0.7293 GB, free: 105.9 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007364/1.1, allocations: 5.081 MB / 0.7343 GB, free: 100.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.826e-05/1.1, allocations: 31 kB / 0.7343 GB, free: 100.7 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/1.1, allocations: 12.97 kB / 0.7343 GB, free: 100.7 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.276e-05/1.1, allocations: 11.95 kB / 0.7344 GB, free: 100.7 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01793/1.118, allocations: 12.22 MB / 0.7463 GB, free: 88.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/1.118, allocations: 7.938 kB / 0.7463 GB, free: 88.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002045/1.12, allocations: 0.5226 MB / 0.7468 GB, free: 87.89 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/1.122, allocations: 0.6956 MB / 0.7475 GB, free: 87.19 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001789/1.122, allocations: 71.97 kB / 0.7475 GB, free: 87.12 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007431/1.129, allocations: 6.709 MB / 0.7541 GB, free: 80.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.129, allocations: 4 kB / 0.7541 GB, free: 80.28 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009015/1.138, allocations: 7.364 MB / 0.7613 GB, free: 72.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001969/1.14, allocations: 0.8222 MB / 0.7621 GB, free: 71.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004742/1.141, allocations: 59.95 kB / 0.7622 GB, free: 71.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001807/1.143, allocations: 163.8 kB / 0.7623 GB, free: 71.71 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003688/1.143, allocations: 206 kB / 0.7625 GB, free: 71.51 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001729/1.143, allocations: 83.98 kB / 0.7626 GB, free: 71.43 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003293/1.147, allocations: 2.68 MB / 0.7652 GB, free: 68.74 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/1.147, allocations: 0 / 0.7652 GB, free: 68.74 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006151/1.153, allocations: 1.547 MB / 0.7667 GB, free: 67.19 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.0005987/1.153, allocations: 229.8 kB / 0.7669 GB, free: 66.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008375/1.162, allocations: 6.142 MB / 0.7729 GB, free: 60.81 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.162, allocations: 1.938 kB / 0.7729 GB, free: 60.81 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00336/1.165, allocations: 2.485 MB / 0.7754 GB, free: 58.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004444/1.17, allocations: 0.9578 MB / 0.7763 GB, free: 57.38 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02399/1.194, allocations: 16.34 MB / 0.7923 GB, free: 40.98 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005662/1.199, allocations: 6.203 MB / 0.7983 GB, free: 34.74 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004436/1.204, allocations: 1.951 MB / 0.8002 GB, free: 32.78 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008744/1.205, allocations: 327.3 kB / 0.8005 GB, free: 32.46 MB / 0.5137 GB Notification: Performance of SimCode: time 5.41e-07/1.205, allocations: 4 kB / 0.8005 GB, free: 32.46 MB / 0.5137 GB Notification: Performance of Templates: time 0.3043/1.509, allocations: 55.87 MB / 0.8551 GB, free: 160.5 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1)