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.001474/0.001474, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.374/1.374, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001222/0.001222, allocations: 55.92 kB / 278.7 MB, free: 12.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2135, allocations: 46.63 MB / 325.3 MB, free: 1.875 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03061/0.2442, allocations: 29.2 MB / 354.5 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01787/0.2621, allocations: 8.537 MB / 363.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005266/0.2674, allocations: 183.4 kB / 363.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01745/0.2849, allocations: 8.192 MB / 371.4 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01167/0.2966, allocations: 3.035 MB / 374.5 MB, free: 2.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006436/0.3031, allocations: 1.901 MB / 376.4 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01467/0.3177, allocations: 10.42 MB / 386.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03106/0.3489, allocations: 21.54 MB / 408.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008882/0.3578, allocations: 5.591 MB / 413.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01146/0.3693, allocations: 6.393 MB / 420.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006096/0.3754, allocations: 1.578 MB / 421.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007115/0.3826, allocations: 1.949 MB / 423.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005428/0.388, allocations: 3.191 MB / 427 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00994/0.398, allocations: 6.124 MB / 433.2 MB, free: 7.637 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02341/0.4215, allocations: 21.07 MB / 454.2 MB, free: 2.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.4215, allocations: 0 / 454.2 MB, free: 2.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.4215, allocations: 0 / 454.2 MB, free: 2.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005156/0.4221, allocations: 4 kB / 454.2 MB, free: 2.504 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.3074/0.7295, allocations: 12.47 MB / 466.7 MB, free: 98.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.7295, allocations: 7.875 kB / 466.7 MB, free: 98.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04415/0.7737, allocations: 8.578 MB / 475.3 MB, free: 93.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/0.7852, allocations: 5.889 MB / 481.2 MB, free: 87.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005056/0.7857, allocations: 0.742 MB / 481.9 MB, free: 86.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003437/0.7892, allocations: 0.983 MB / 482.9 MB, free: 85.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03483/0.824, allocations: 16.57 MB / 499.5 MB, free: 69.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003037/0.8244, allocations: 11.84 kB / 499.5 MB, free: 69.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002391/0.8268, allocations: 422.5 kB / 499.9 MB, free: 68.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004199/0.8272, allocations: 0.6106 MB / 0.4888 GB, free: 68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02474/0.8519, allocations: 15.96 MB / 0.5044 GB, free: 52.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06211/0.9141, allocations: 52.13 MB / 0.5553 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03512/0.9492, allocations: 52.28 MB / 0.6063 GB, free: 3.406 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1613/1.111, allocations: 3.452 MB / 0.6097 GB, free: 150.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01452/1.125, allocations: 9.424 MB / 0.6189 GB, free: 147.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/1.125, allocations: 64.53 kB / 0.619 GB, free: 147.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 5.06e-06/1.125, allocations: 3.219 kB / 0.619 GB, free: 147.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02137/1.147, allocations: 12.93 MB / 0.6316 GB, free: 142.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/1.147, allocations: 80.16 kB / 0.6317 GB, free: 142.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005112/1.152, allocations: 4.07 MB / 0.6356 GB, free: 140.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002325/1.152, allocations: 69.48 kB / 0.6357 GB, free: 140.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002408/1.154, allocations: 4.639 MB / 0.6402 GB, free: 137 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007542/1.155, allocations: 0.9867 MB / 0.6412 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001355/1.157, allocations: 1.234 MB / 0.6424 GB, free: 135.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.898e-05/1.157, allocations: 301.8 kB / 0.6427 GB, free: 135.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002845/1.159, allocations: 2.449 MB / 0.6451 GB, free: 134.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003519/1.163, allocations: 5.603 MB / 0.6506 GB, free: 127.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006813/1.17, allocations: 8.69 MB / 0.6591 GB, free: 118.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.884e-05/1.17, allocations: 35.94 kB / 0.6591 GB, free: 118 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01096/1.181, allocations: 8.758 MB / 0.6676 GB, free: 109.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.619e-05/1.181, allocations: 55.94 kB / 0.6677 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001073/1.181, allocations: 108 kB / 0.6678 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002034/1.183, allocations: 0.8803 MB / 0.6687 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004023/1.187, allocations: 1.4 MB / 0.67 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008205/1.195, allocations: 7.575 MB / 0.6774 GB, free: 99.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004199/1.2, allocations: 351.2 kB / 0.6778 GB, free: 98.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006715/1.2, allocations: 348 kB / 0.6781 GB, free: 98.45 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.004338/1.205, allocations: 3.68 MB / 0.6817 GB, free: 94.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007403/1.205, allocations: 410.9 kB / 0.6821 GB, free: 94.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006984/1.212, allocations: 5.089 MB / 0.687 GB, free: 89.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/1.212, allocations: 28 kB / 0.6871 GB, free: 89.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/1.212, allocations: 8 kB / 0.6871 GB, free: 89.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.266e-05/1.212, allocations: 19.94 kB / 0.6871 GB, free: 89.15 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01492/1.227, allocations: 12.21 MB / 0.699 GB, free: 76.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.577e-06/1.227, allocations: 4 kB / 0.699 GB, free: 76.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001931/1.229, allocations: 0.5188 MB / 0.6995 GB, free: 76.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/1.231, allocations: 0.7071 MB / 0.7002 GB, free: 75.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/1.231, allocations: 67.98 kB / 0.7003 GB, free: 75.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007109/1.238, allocations: 6.701 MB / 0.7068 GB, free: 68.71 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.238, allocations: 11.94 kB / 0.7068 GB, free: 68.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008811/1.247, allocations: 7.336 MB / 0.714 GB, free: 61.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/1.249, allocations: 0.8004 MB / 0.7148 GB, free: 60.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004792/1.249, allocations: 63.88 kB / 0.7148 GB, free: 60.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/1.251, allocations: 167.9 kB / 0.715 GB, free: 60.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003658/1.251, allocations: 201.9 kB / 0.7152 GB, free: 59.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001573/1.251, allocations: 91.97 kB / 0.7153 GB, free: 59.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002971/1.254, allocations: 2.676 MB / 0.7179 GB, free: 57.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.254, allocations: 0 / 0.7179 GB, free: 57.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004541/1.259, allocations: 1.545 MB / 0.7194 GB, free: 55.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.0004127/1.259, allocations: 228.5 kB / 0.7196 GB, free: 55.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01519/1.275, allocations: 9.099 MB / 0.7285 GB, free: 46.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/1.275, allocations: 0 / 0.7285 GB, free: 46.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003436/1.278, allocations: 2.486 MB / 0.7309 GB, free: 43.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004009/1.282, allocations: 0.9461 MB / 0.7319 GB, free: 42.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02256/1.305, allocations: 16.29 MB / 0.7478 GB, free: 26.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005856/1.311, allocations: 6.203 MB / 0.7538 GB, free: 20.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004804/1.315, allocations: 1.951 MB / 0.7557 GB, free: 18.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007694/1.316, allocations: 327.4 kB / 0.756 GB, free: 18.06 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/1.316, allocations: 0 / 0.756 GB, free: 18.06 MB / 446.1 MB Notification: Performance of Templates: time 0.2566/1.573, allocations: 59 MB / 0.8137 GB, free: 111 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)