Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0009739/0.0009737, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001134/0.001135, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.303/1.303, allocations: 205.4 MB / 223.4 MB, free: 5.484 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.0004448/0.0004448, allocations: 16 kB / 280.1 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.193, allocations: 47.58 MB / 327.7 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0235/0.2166, allocations: 23.41 MB / 351.1 MB, free: 12.03 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01537/0.232, allocations: 8.118 MB / 359.3 MB, free: 3.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004835/0.2368, allocations: 171.4 kB / 359.4 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00603/0.2429, allocations: 1.714 MB / 361.1 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0104/0.2533, allocations: 2.925 MB / 364.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005487/0.2588, allocations: 1.439 MB / 365.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01343/0.2723, allocations: 8.325 MB / 373.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03194/0.3043, allocations: 17.26 MB / 391.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007429/0.3118, allocations: 3.707 MB / 394.8 MB, free: 212 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007942/0.3197, allocations: 4.245 MB / 399 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002594/0.3224, allocations: 0.6055 MB / 399.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004203/0.3266, allocations: 0.9057 MB / 400.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002805/0.3294, allocations: 1.904 MB / 402.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003366/0.3328, allocations: 2.04 MB / 404.5 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.017/0.3498, allocations: 17.78 MB / 422.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3499, allocations: 3.938 kB / 422.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3499, allocations: 0 / 422.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004507/0.3503, allocations: 0 / 422.3 MB, free: 4.641 MB / 350.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.02803/0.3784, allocations: 10.3 MB / 432.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.3784, allocations: 12.03 kB / 432.6 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04755/0.426, allocations: 8.512 MB / 441.1 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0148/0.4408, allocations: 5.843 MB / 446.9 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009688/0.4419, allocations: 0.7425 MB / 447.7 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004231/0.4461, allocations: 0.9802 MB / 448.7 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3374/0.7835, allocations: 16.39 MB / 465.1 MB, free: 89.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002536/0.7838, allocations: 18.81 kB / 465.1 MB, free: 89.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001293/0.7851, allocations: 412.7 kB / 465.5 MB, free: 88.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006023/0.7857, allocations: 0.6089 MB / 466.1 MB, free: 88.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02719/0.8129, allocations: 15.88 MB / 482 MB, free: 81.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07382/0.8868, allocations: 52.21 MB / 0.5217 GB, free: 32.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02939/0.9162, allocations: 52.18 MB / 0.5726 GB, free: 5.051 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01723/0.9335, allocations: 9.618 MB / 0.582 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.9336, allocations: 56.78 kB / 0.5821 GB, free: 11.37 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 4.147e-06/0.9336, allocations: 8 kB / 0.5821 GB, free: 11.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=289): time 0.02412/0.9577, allocations: 12.85 MB / 0.5946 GB, free: 14.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.9578, allocations: 81.69 kB / 0.5947 GB, free: 14.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006213/0.964, allocations: 4.002 MB / 0.5986 GB, free: 10.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000443/0.9645, allocations: 69.7 kB / 0.5987 GB, free: 10.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002707/0.9672, allocations: 4.624 MB / 0.6032 GB, free: 5.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009044/0.9681, allocations: 1.02 MB / 0.6042 GB, free: 4.508 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002609/0.9684, allocations: 124 kB / 0.6043 GB, free: 4.387 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000319/0.9687, allocations: 0.5573 MB / 0.6048 GB, free: 3.824 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003445/0.9721, allocations: 2.46 MB / 0.6072 GB, free: 1.359 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005106/0.9773, allocations: 5.593 MB / 0.6127 GB, free: 10.24 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004806/0.9821, allocations: 3.767 MB / 0.6164 GB, free: 6.449 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.341e-05/0.9821, allocations: 28 kB / 0.6164 GB, free: 6.422 MB / 462.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.1765/1.159, allocations: 8.78 MB / 0.625 GB, free: 152.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/1.159, allocations: 48.47 kB / 0.625 GB, free: 152.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002048/1.159, allocations: 110.8 kB / 0.6251 GB, free: 152.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002139/1.161, allocations: 0.8547 MB / 0.626 GB, free: 152.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005036/1.166, allocations: 1.426 MB / 0.6274 GB, free: 152.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0083/1.174, allocations: 7.169 MB / 0.6344 GB, free: 149.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004455/1.179, allocations: 356.6 kB / 0.6347 GB, free: 149.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007804/1.18, allocations: 349.7 kB / 0.635 GB, free: 149.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 496 * 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 (742): * Single equations (assignments): 741 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005473/1.185, allocations: 3.676 MB / 0.6386 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007889/1.186, allocations: 412.4 kB / 0.639 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008022/1.194, allocations: 5.172 MB / 0.6441 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.748e-05/1.194, allocations: 31.16 kB / 0.6441 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/1.194, allocations: 7.688 kB / 0.6441 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-05/1.194, allocations: 14.91 kB / 0.6441 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01854/1.213, allocations: 12.41 MB / 0.6562 GB, free: 141 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.511e-05/1.213, allocations: 9.641 kB / 0.6562 GB, free: 141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002235/1.215, allocations: 0.5425 MB / 0.6568 GB, free: 141 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001824/1.217, allocations: 0.6801 MB / 0.6574 GB, free: 140.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002845/1.217, allocations: 69.23 kB / 0.6575 GB, free: 140.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007278/1.224, allocations: 6.313 MB / 0.6637 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.331e-06/1.225, allocations: 11.83 kB / 0.6637 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009713/1.234, allocations: 7.837 MB / 0.6713 GB, free: 130.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00221/1.237, allocations: 0.845 MB / 0.6722 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000604/1.237, allocations: 52 kB / 0.6722 GB, free: 129.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001701/1.239, allocations: 175.8 kB / 0.6724 GB, free: 129.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003949/1.239, allocations: 209.6 kB / 0.6726 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001707/1.239, allocations: 83.98 kB / 0.6727 GB, free: 129.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003517/1.243, allocations: 2.625 MB / 0.6752 GB, free: 126.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.243, allocations: 0 / 0.6752 GB, free: 126.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005542/1.249, allocations: 1.554 MB / 0.6767 GB, free: 125.2 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 (274): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004669/1.249, allocations: 227.5 kB / 0.677 GB, free: 125 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008233/1.257, allocations: 6.166 MB / 0.683 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.257, allocations: 4.5 kB / 0.683 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003254/1.261, allocations: 2.523 MB / 0.6854 GB, free: 116.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003673/1.264, allocations: 0.8532 MB / 0.6863 GB, free: 115.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02415/1.288, allocations: 19.27 MB / 0.7051 GB, free: 96.13 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004826/1.293, allocations: 6.363 MB / 0.7113 GB, free: 89.73 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005032/1.298, allocations: 1.971 MB / 0.7132 GB, free: 87.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008588/1.299, allocations: 339.3 kB / 0.7136 GB, free: 87.42 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/1.299, allocations: 0 / 0.7136 GB, free: 87.42 MB / 462.1 MB Notification: Performance of Templates: time 0.08365/1.383, allocations: 54.86 MB / 0.7671 GB, free: 32.54 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) Environment - environmentSimulation: