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.0089/0.008899, allocations: 103.6 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.002033/0.002033, allocations: 190.7 kB / 16.67 MB, free: 5.973 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.445/1.445, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001221/0.001221, allocations: 50.3 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08864, allocations: 46.62 MB / 373.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02913/0.1178, allocations: 29.21 MB / 402.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01749/0.1353, allocations: 8.533 MB / 410.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006241/0.1416, allocations: 179.4 kB / 411.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01874/0.1604, allocations: 8.265 MB / 419.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01033/0.1708, allocations: 3.089 MB / 422.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00611/0.1769, allocations: 1.905 MB / 424.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01407/0.191, allocations: 10.5 MB / 434.9 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.232/0.423, allocations: 21.45 MB / 456.3 MB, free: 16.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007814/0.4308, allocations: 5.619 MB / 462 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01117/0.442, allocations: 6.365 MB / 468.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005581/0.4476, allocations: 1.579 MB / 469.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007077/0.4547, allocations: 1.933 MB / 471.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004641/0.4594, allocations: 3.19 MB / 475 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008184/0.4676, allocations: 6.117 MB / 481.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01523/0.4829, allocations: 21.2 MB / 0.4906 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4829, allocations: 3.5 kB / 0.4906 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.4829, allocations: 0 / 0.4906 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004896/0.4834, allocations: 0 / 0.4906 GB, free: 0.7383 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.03754/0.5209, allocations: 12.45 MB / 0.5027 GB, free: 8.219 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.521, allocations: 15.97 kB / 0.5027 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04706/0.5681, allocations: 8.591 MB / 0.5111 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01501/0.5831, allocations: 5.905 MB / 0.5169 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001108/0.5843, allocations: 0.7427 MB / 0.5176 GB, free: 9.301 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005619/0.5899, allocations: 0.975 MB / 0.5186 GB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04939/0.6393, allocations: 16.57 MB / 0.5347 GB, free: 7.727 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004011/0.6398, allocations: 15.89 kB / 0.5348 GB, free: 7.711 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004078/0.6439, allocations: 408 kB / 0.5351 GB, free: 7.324 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007144/0.6446, allocations: 0.6067 MB / 0.5357 GB, free: 6.715 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03793/0.6826, allocations: 15.97 MB / 0.5513 GB, free: 6.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09119/0.7738, allocations: 51.58 MB / 0.6017 GB, free: 2.578 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.233/1.007, allocations: 52.27 MB / 0.6528 GB, free: 152.5 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006007/1.013, allocations: 3.47 MB / 0.6561 GB, free: 152.5 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0153/1.028, allocations: 9.376 MB / 0.6653 GB, free: 149.1 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/1.028, allocations: 61.84 kB / 0.6654 GB, free: 149 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=270): time 5.751e-06/1.028, allocations: 0.9375 kB / 0.6654 GB, free: 149 MB / 0.5137 GB Notification: Performance of matching and sorting (n=278): time 0.02321/1.052, allocations: 12.94 MB / 0.678 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/1.052, allocations: 81.88 kB / 0.6781 GB, free: 143.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005628/1.057, allocations: 4.064 MB / 0.682 GB, free: 142 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004394/1.058, allocations: 70.42 kB / 0.6821 GB, free: 141.9 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002117/1.06, allocations: 4.626 MB / 0.6866 GB, free: 138.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008299/1.061, allocations: 0.9918 MB / 0.6876 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001465/1.062, allocations: 1.231 MB / 0.6888 GB, free: 137.1 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.914e-05/1.062, allocations: 315.9 kB / 0.6891 GB, free: 136.8 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002911/1.065, allocations: 2.446 MB / 0.6915 GB, free: 135.9 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00407/1.069, allocations: 5.604 MB / 0.697 GB, free: 130.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007442/1.077, allocations: 8.696 MB / 0.7055 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.359e-05/1.077, allocations: 31.06 kB / 0.7055 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01223/1.089, allocations: 8.75 MB / 0.714 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.539e-05/1.089, allocations: 51.25 kB / 0.7141 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/1.089, allocations: 111.7 kB / 0.7142 GB, free: 120.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002042/1.091, allocations: 0.8665 MB / 0.715 GB, free: 119.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004125/1.095, allocations: 1.406 MB / 0.7164 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008307/1.104, allocations: 7.578 MB / 0.7238 GB, free: 111.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004476/1.108, allocations: 346 kB / 0.7241 GB, free: 111.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007862/1.109, allocations: 347.6 kB / 0.7245 GB, free: 111.1 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.005126/1.114, allocations: 3.676 MB / 0.7281 GB, free: 107.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000891/1.115, allocations: 410.9 kB / 0.7284 GB, free: 107.1 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007227/1.122, allocations: 5.083 MB / 0.7334 GB, free: 102 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/1.122, allocations: 28 kB / 0.7334 GB, free: 102 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/1.122, allocations: 8 kB / 0.7334 GB, free: 102 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.658e-05/1.122, allocations: 11.95 kB / 0.7335 GB, free: 101.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01886/1.141, allocations: 12.22 MB / 0.7454 GB, free: 89.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/1.141, allocations: 6.5 kB / 0.7454 GB, free: 89.64 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001946/1.143, allocations: 0.5149 MB / 0.7459 GB, free: 89.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001747/1.145, allocations: 0.7074 MB / 0.7466 GB, free: 88.41 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001704/1.145, allocations: 67.92 kB / 0.7467 GB, free: 88.35 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006887/1.152, allocations: 6.697 MB / 0.7532 GB, free: 81.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.152, allocations: 7.938 kB / 0.7532 GB, free: 81.51 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009076/1.161, allocations: 7.341 MB / 0.7604 GB, free: 74.03 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/1.163, allocations: 0.8045 MB / 0.7612 GB, free: 73.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000497/1.164, allocations: 55.94 kB / 0.7612 GB, free: 73.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/1.165, allocations: 164.8 kB / 0.7614 GB, free: 72.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003755/1.166, allocations: 201.9 kB / 0.7616 GB, free: 72.79 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001712/1.166, allocations: 95.97 kB / 0.7616 GB, free: 72.69 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003371/1.169, allocations: 2.669 MB / 0.7643 GB, free: 70.01 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.41e-07/1.169, allocations: 4 kB / 0.7643 GB, free: 70.01 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005278/1.174, allocations: 1.544 MB / 0.7658 GB, free: 68.46 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.0004625/1.175, allocations: 228.6 kB / 0.766 GB, free: 68.24 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008097/1.183, allocations: 6.133 MB / 0.772 GB, free: 62.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/1.183, allocations: 0 / 0.772 GB, free: 62.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003066/1.186, allocations: 2.486 MB / 0.7744 GB, free: 59.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00379/1.19, allocations: 0.9585 MB / 0.7753 GB, free: 58.67 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02196/1.212, allocations: 16.08 MB / 0.791 GB, free: 42.56 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0051/1.217, allocations: 6.207 MB / 0.7971 GB, free: 36.32 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004586/1.222, allocations: 1.947 MB / 0.799 GB, free: 34.37 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007992/1.223, allocations: 327.4 kB / 0.7993 GB, free: 34.05 MB / 0.5137 GB Notification: Performance of SimCode: time 8.31e-07/1.223, allocations: 0 / 0.7993 GB, free: 34.05 MB / 0.5137 GB Notification: Performance of Templates: time 0.2919/1.514, allocations: 55.88 MB / 0.8539 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)