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.001088/0.001088, allocations: 87.11 kB / 16.31 MB, free: 6.449 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.001369/0.001369, allocations: 178.5 kB / 17.21 MB, free: 6.32 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.529/1.529, allocations: 205.4 MB / 223.4 MB, free: 5.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.0004621/0.0004623, allocations: 8 kB / 280.2 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2063/0.2068, allocations: 47.58 MB / 327.8 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02443/0.2313, allocations: 25.42 MB / 353.2 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01539/0.2467, allocations: 7.87 MB / 361 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005413/0.2522, allocations: 175.4 kB / 361.2 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005189/0.2574, allocations: 1.379 MB / 362.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009341/0.2667, allocations: 2.512 MB / 365.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005162/0.2719, allocations: 1.244 MB / 366.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01491/0.2868, allocations: 11.48 MB / 377.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03212/0.319, allocations: 17.45 MB / 395.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006301/0.3253, allocations: 4.033 MB / 399.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008698/0.334, allocations: 4.697 MB / 404 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002284/0.3364, allocations: 0.6094 MB / 404.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004087/0.3405, allocations: 0.9644 MB / 405.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003031/0.3435, allocations: 1.966 MB / 407.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003552/0.3471, allocations: 2.044 MB / 409.6 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01739/0.3645, allocations: 17.83 MB / 427.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3645, allocations: 0 / 427.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3645, allocations: 0 / 427.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004893/0.365, allocations: 0 / 427.4 MB, free: 15.47 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.0263/0.3913, allocations: 10.34 MB / 437.8 MB, free: 5.031 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3914, allocations: 11.97 kB / 437.8 MB, free: 5.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04544/0.4368, allocations: 8.614 MB / 446.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0117/0.4486, allocations: 5.827 MB / 452.2 MB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007187/0.4493, allocations: 0.7426 MB / 453 MB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003546/0.4529, allocations: 0.9763 MB / 453.9 MB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3403/0.7932, allocations: 16.48 MB / 470.4 MB, free: 88.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003849/0.7936, allocations: 16.39 kB / 470.4 MB, free: 88.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003362/0.797, allocations: 417.3 kB / 470.9 MB, free: 88.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005984/0.7976, allocations: 0.6015 MB / 471.5 MB, free: 88.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03096/0.8286, allocations: 15.88 MB / 487.3 MB, free: 80.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07706/0.9057, allocations: 52.23 MB / 0.5269 GB, free: 26.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03056/0.9363, allocations: 52.2 MB / 0.5779 GB, free: 15.81 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006255/0.9426, allocations: 3.452 MB / 0.5813 GB, free: 12.35 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02018/0.9628, allocations: 9.409 MB / 0.5905 GB, free: 2.926 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.723e-05/0.9629, allocations: 56.69 kB / 0.5905 GB, free: 2.859 MB / 430.1 MB Notification: Performance of pre-optimization done (n=270): time 5.601e-06/0.963, allocations: 4 kB / 0.5905 GB, free: 2.855 MB / 430.1 MB Notification: Performance of matching and sorting (n=278): time 0.03314/0.9961, allocations: 13.76 MB / 0.6039 GB, free: 4.957 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.9962, allocations: 81.59 kB / 0.604 GB, free: 4.863 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008169/1.004, allocations: 4.025 MB / 0.608 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005654/1.005, allocations: 73.7 kB / 0.608 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00359/1.009, allocations: 4.63 MB / 0.6125 GB, free: 12.08 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001462/1.01, allocations: 0.9966 MB / 0.6135 GB, free: 11.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007376/1.011, allocations: 120 kB / 0.6136 GB, free: 10.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005954/1.011, allocations: 0.5518 MB / 0.6142 GB, free: 10.42 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004305/1.016, allocations: 2.421 MB / 0.6165 GB, free: 7.992 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006513/1.022, allocations: 5.575 MB / 0.622 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1805/1.203, allocations: 3.717 MB / 0.6256 GB, free: 156.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.16e-05/1.203, allocations: 29.53 kB / 0.6256 GB, free: 156.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01359/1.217, allocations: 8.687 MB / 0.6341 GB, free: 153.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.398e-05/1.217, allocations: 50.88 kB / 0.6342 GB, free: 153.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000138/1.217, allocations: 108.4 kB / 0.6343 GB, free: 153.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001848/1.219, allocations: 0.8734 MB / 0.6351 GB, free: 153.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004142/1.223, allocations: 1.394 MB / 0.6365 GB, free: 153.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008066/1.231, allocations: 6.989 MB / 0.6433 GB, free: 149.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004008/1.235, allocations: 348.2 kB / 0.6436 GB, free: 149.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000741/1.236, allocations: 343.1 kB / 0.644 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.005153/1.241, allocations: 3.682 MB / 0.6476 GB, free: 147.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007175/1.242, allocations: 405.6 kB / 0.648 GB, free: 147.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007311/1.249, allocations: 5.057 MB / 0.6529 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/1.249, allocations: 30.41 kB / 0.6529 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/1.249, allocations: 8.625 kB / 0.6529 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.49e-05/1.249, allocations: 19.47 kB / 0.6529 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01635/1.265, allocations: 12.17 MB / 0.6648 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/1.265, allocations: 4 kB / 0.6648 GB, free: 137.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/1.267, allocations: 0.5242 MB / 0.6654 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001649/1.269, allocations: 0.6879 MB / 0.666 GB, free: 136.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001777/1.269, allocations: 63.8 kB / 0.6661 GB, free: 136.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006782/1.276, allocations: 6.154 MB / 0.6721 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.276, allocations: 4 kB / 0.6721 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008888/1.285, allocations: 7.29 MB / 0.6792 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001501/1.286, allocations: 0.816 MB / 0.68 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005013/1.287, allocations: 59.94 kB / 0.6801 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/1.288, allocations: 159.8 kB / 0.6802 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/1.289, allocations: 202 kB / 0.6804 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/1.289, allocations: 99.81 kB / 0.6805 GB, free: 122.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003202/1.292, allocations: 2.64 MB / 0.6831 GB, free: 119.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.292, allocations: 0 / 0.6831 GB, free: 119.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004912/1.297, allocations: 1.547 MB / 0.6846 GB, free: 118.1 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.0004748/1.298, allocations: 228.8 kB / 0.6848 GB, free: 117.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007677/1.305, allocations: 6.07 MB / 0.6907 GB, free: 111.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/1.305, allocations: 4 kB / 0.6907 GB, free: 111.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0031/1.308, allocations: 2.456 MB / 0.6931 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003773/1.312, allocations: 0.9038 MB / 0.694 GB, free: 108.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02308/1.335, allocations: 19.54 MB / 0.7131 GB, free: 88.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005132/1.34, allocations: 6.207 MB / 0.7192 GB, free: 82.56 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005053/1.346, allocations: 1.943 MB / 0.7211 GB, free: 80.61 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008744/1.346, allocations: 331.4 kB / 0.7214 GB, free: 80.29 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/1.346, allocations: 0 / 0.7214 GB, free: 80.29 MB / 462.1 MB Notification: Performance of Templates: time 0.07826/1.425, allocations: 54.95 MB / 0.775 GB, free: 25.32 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (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)