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.0008106/0.0008106, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008212/0.0008212, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.4 MB / 222.1 MB, free: 5.629 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.0004675/0.0004681, allocations: 20 kB / 278.9 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.207, allocations: 47.59 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02431/0.2313, allocations: 25.43 MB / 351.9 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01652/0.2479, allocations: 7.866 MB / 359.8 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005246/0.2532, allocations: 175.4 kB / 360 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004959/0.2581, allocations: 1.379 MB / 361.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008503/0.2667, allocations: 2.508 MB / 363.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004281/0.271, allocations: 1.24 MB / 365.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01548/0.2865, allocations: 11.49 MB / 376.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0345/0.321, allocations: 17.45 MB / 394 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009541/0.3306, allocations: 4.033 MB / 398.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01059/0.3412, allocations: 4.693 MB / 402.8 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003343/0.3446, allocations: 0.6133 MB / 403.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006221/0.3509, allocations: 0.9605 MB / 404.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004507/0.3554, allocations: 1.966 MB / 406.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005049/0.3605, allocations: 2.048 MB / 408.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02294/0.3834, allocations: 17.83 MB / 426.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3835, allocations: 0 / 426.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3835, allocations: 0 / 426.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005274/0.384, allocations: 0 / 426.2 MB, free: 15.46 MB / 366.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.02761/0.4117, allocations: 10.34 MB / 436.5 MB, free: 5.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.4117, allocations: 8.031 kB / 436.5 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04507/0.4568, allocations: 8.614 MB / 445.1 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01214/0.469, allocations: 5.831 MB / 451 MB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007933/0.4698, allocations: 0.7426 MB / 451.7 MB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004013/0.4738, allocations: 0.9763 MB / 452.7 MB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.357/0.8308, allocations: 16.48 MB / 469.2 MB, free: 88.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002964/0.8312, allocations: 16.27 kB / 469.2 MB, free: 88.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002274/0.8335, allocations: 415 kB / 469.6 MB, free: 88.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004947/0.834, allocations: 0.6013 MB / 470.2 MB, free: 88.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02801/0.862, allocations: 15.87 MB / 486.1 MB, free: 80.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07563/0.9377, allocations: 52.23 MB / 0.5257 GB, free: 26.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03117/0.9689, allocations: 52.21 MB / 0.5767 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006923/0.9758, allocations: 3.448 MB / 0.58 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01758/0.9934, allocations: 9.405 MB / 0.5892 GB, free: 2.914 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.169e-05/0.9935, allocations: 60.69 kB / 0.5893 GB, free: 2.844 MB / 430.1 MB Notification: Performance of pre-optimization done (n=270): time 5.17e-06/0.9935, allocations: 4 kB / 0.5893 GB, free: 2.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=278): time 0.03069/1.024, allocations: 13.75 MB / 0.6027 GB, free: 4.945 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/1.024, allocations: 93.53 kB / 0.6028 GB, free: 4.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007209/1.032, allocations: 4.025 MB / 0.6067 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005095/1.032, allocations: 69.7 kB / 0.6068 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00314/1.035, allocations: 4.637 MB / 0.6113 GB, free: 12.05 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001225/1.036, allocations: 0.9927 MB / 0.6123 GB, free: 11.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005581/1.037, allocations: 124 kB / 0.6124 GB, free: 10.95 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004467/1.038, allocations: 0.5464 MB / 0.6129 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004056/1.042, allocations: 2.42 MB / 0.6153 GB, free: 7.965 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006041/1.048, allocations: 5.579 MB / 0.6208 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1898/1.238, allocations: 3.709 MB / 0.6244 GB, free: 156.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.818e-05/1.238, allocations: 33.91 kB / 0.6244 GB, free: 156.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01572/1.253, allocations: 8.682 MB / 0.6329 GB, free: 153.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.441e-05/1.253, allocations: 50.91 kB / 0.6329 GB, free: 153.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001473/1.254, allocations: 108.1 kB / 0.633 GB, free: 153.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002023/1.256, allocations: 0.8694 MB / 0.6339 GB, free: 153.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00448/1.26, allocations: 1.401 MB / 0.6353 GB, free: 153.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00869/1.269, allocations: 6.984 MB / 0.6421 GB, free: 149.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004344/1.273, allocations: 347.7 kB / 0.6424 GB, free: 149.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009189/1.274, allocations: 346 kB / 0.6427 GB, free: 149.3 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 (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.005925/1.28, allocations: 3.685 MB / 0.6463 GB, free: 147.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008993/1.281, allocations: 406.1 kB / 0.6467 GB, free: 147.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007735/1.289, allocations: 5.053 MB / 0.6517 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.299e-05/1.289, allocations: 29 kB / 0.6517 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/1.289, allocations: 15.28 kB / 0.6517 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.526e-05/1.289, allocations: 21.75 kB / 0.6517 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01944/1.308, allocations: 12.17 MB / 0.6636 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/1.308, allocations: 4 kB / 0.6636 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001985/1.31, allocations: 0.5124 MB / 0.6641 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001714/1.312, allocations: 0.6918 MB / 0.6648 GB, free: 136.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000205/1.312, allocations: 67.8 kB / 0.6649 GB, free: 136.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006911/1.319, allocations: 6.16 MB / 0.6709 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.319, allocations: 4 kB / 0.6709 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009707/1.329, allocations: 7.287 MB / 0.678 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001826/1.331, allocations: 0.82 MB / 0.6788 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007718/1.332, allocations: 52 kB / 0.6788 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001843/1.334, allocations: 168.9 kB / 0.679 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004054/1.334, allocations: 202 kB / 0.6792 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/1.334, allocations: 83.98 kB / 0.6793 GB, free: 122.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00394/1.338, allocations: 2.649 MB / 0.6819 GB, free: 119.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/1.338, allocations: 0 / 0.6819 GB, free: 119.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006298/1.344, allocations: 1.547 MB / 0.6834 GB, free: 118 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 (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.0005635/1.345, allocations: 221.5 kB / 0.6836 GB, free: 117.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008462/1.353, allocations: 6.075 MB / 0.6895 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/1.353, allocations: 0 / 0.6895 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003377/1.357, allocations: 2.466 MB / 0.6919 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004331/1.361, allocations: 0.8995 MB / 0.6928 GB, free: 108.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03062/1.392, allocations: 19.53 MB / 0.7119 GB, free: 88.77 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009881/1.402, allocations: 6.21 MB / 0.7179 GB, free: 82.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006869/1.409, allocations: 1.935 MB / 0.7198 GB, free: 80.58 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001396/1.41, allocations: 331.4 kB / 0.7202 GB, free: 80.26 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/1.41, allocations: 0 / 0.7202 GB, free: 80.26 MB / 462.1 MB Notification: Performance of Templates: time 0.08949/1.5, allocations: 54.96 MB / 0.7738 GB, free: 25.29 MB / 462.1 MB 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)