Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001675/0.001675, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00169/0.001691, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 59.34 kB / 308.4 MB, free: 15.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09485/0.09609, allocations: 50.53 MB / 358.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2156/0.3117, allocations: 24.68 MB / 383.6 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01648/0.3282, allocations: 7.871 MB / 391.5 MB, free: 3.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006122/0.3344, allocations: 167.9 kB / 391.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01302/0.3475, allocations: 5.677 MB / 397.3 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008654/0.3562, allocations: 2.568 MB / 399.9 MB, free: 13.99 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005199/0.3614, allocations: 1.832 MB / 401.7 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.011/0.3724, allocations: 7.858 MB / 409.6 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02121/0.3936, allocations: 14.49 MB / 424.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006615/0.4003, allocations: 3.958 MB / 428 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007227/0.4075, allocations: 4.551 MB / 432.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002815/0.4104, allocations: 1.105 MB / 433.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004841/0.4152, allocations: 1.461 MB / 435.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004025/0.4193, allocations: 2.24 MB / 437.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008609/0.4279, allocations: 4.33 MB / 441.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01835/0.4463, allocations: 15.05 MB / 456.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4464, allocations: 0 / 456.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4464, allocations: 4 kB / 456.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003692/0.4468, allocations: 0 / 456.8 MB, free: 9.766 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: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.0275/0.4743, allocations: 9.198 MB / 466 MB, free: 492 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.4743, allocations: 12.03 kB / 466 MB, free: 480 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02922/0.5036, allocations: 5.325 MB / 471.3 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0102/0.5138, allocations: 4.738 MB / 476 MB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004964/0.5143, allocations: 0.5097 MB / 476.6 MB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002462/0.5168, allocations: 0.6678 MB / 477.2 MB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02651/0.5433, allocations: 11.16 MB / 488.4 MB, free: 9.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003464/0.5437, allocations: 15.83 kB / 488.4 MB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002321/0.546, allocations: 284 kB / 488.7 MB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000502/0.5466, allocations: 426.4 kB / 489.1 MB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02355/0.5701, allocations: 10.73 MB / 499.8 MB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0568/0.627, allocations: 35.85 MB / 0.5231 GB, free: 9.617 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1945/0.8215, allocations: 11.9 MB / 0.5347 GB, free: 130.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005507/0.827, allocations: 2.849 MB / 0.5375 GB, free: 130.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004227/0.8275, allocations: 246.1 kB / 0.5378 GB, free: 130.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.8275, allocations: 78.06 kB / 0.5378 GB, free: 130.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 5.981e-06/0.8276, allocations: 3.969 kB / 0.5378 GB, free: 130.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.03474/0.8623, allocations: 15.82 MB / 0.5533 GB, free: 124.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.608e-05/0.8624, allocations: 141.3 kB / 0.5534 GB, free: 124.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003583/0.866, allocations: 2.793 MB / 0.5561 GB, free: 123.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002529/0.8663, allocations: 93.19 kB / 0.5562 GB, free: 123.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001137/0.8674, allocations: 2.874 MB / 0.559 GB, free: 121.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006792/0.8681, allocations: 1.274 MB / 0.5603 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001126/0.8692, allocations: 0.8883 MB / 0.5612 GB, free: 120 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.638e-05/0.8693, allocations: 309.1 kB / 0.5614 GB, free: 119.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002898/0.8722, allocations: 2.308 MB / 0.5637 GB, free: 118.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003447/0.8756, allocations: 3.92 MB / 0.5675 GB, free: 115.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006564/0.8822, allocations: 6.71 MB / 0.5741 GB, free: 111.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-05/0.8822, allocations: 15.62 kB / 0.5741 GB, free: 111.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.009545/0.8918, allocations: 7.088 MB / 0.581 GB, free: 107.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.374e-05/0.8919, allocations: 27.75 kB / 0.581 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.984e-05/0.892, allocations: 52 kB / 0.5811 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003218/0.8952, allocations: 1.233 MB / 0.5823 GB, free: 106.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003638/0.8988, allocations: 1.065 MB / 0.5833 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002659/0.9015, allocations: 2.362 MB / 0.5856 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00291/0.9044, allocations: 295 kB / 0.5859 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003257/0.9048, allocations: 224 kB / 0.5861 GB, free: 102.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005409/0.9102, allocations: 4.515 MB / 0.5906 GB, free: 98.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00319/0.9134, allocations: 3.907 MB / 0.5944 GB, free: 93.69 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006282/0.9197, allocations: 6.679 MB / 0.6009 GB, free: 86.27 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.135e-05/0.9197, allocations: 19.94 kB / 0.6009 GB, free: 86.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.008834/0.9286, allocations: 7.037 MB / 0.6078 GB, free: 79.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.9286, allocations: 28 kB / 0.6078 GB, free: 79.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-05/0.9287, allocations: 48 kB / 0.6079 GB, free: 79.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00309/0.9318, allocations: 1.19 MB / 0.609 GB, free: 77.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003327/0.9351, allocations: 1.065 MB / 0.6101 GB, free: 76.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002311/0.9374, allocations: 2.291 MB / 0.6123 GB, free: 74.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002934/0.9404, allocations: 271.7 kB / 0.6126 GB, free: 74.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003223/0.9407, allocations: 228 kB / 0.6128 GB, free: 74.04 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 545 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,55)} Notification: Performance of prepare postOptimizeDAE: time 0.0008449/0.9416, allocations: 499.6 kB / 0.6132 GB, free: 73.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006542/0.9422, allocations: 355.7 kB / 0.6136 GB, free: 73.19 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007764/0.95, allocations: 5.848 MB / 0.6193 GB, free: 67.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.102e-05/0.95, allocations: 43.94 kB / 0.6193 GB, free: 67.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.95, allocations: 0 / 0.6193 GB, free: 67.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.777e-05/0.9501, allocations: 15.94 kB / 0.6194 GB, free: 67.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01761/0.9677, allocations: 12.67 MB / 0.6317 GB, free: 54.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.9677, allocations: 0 / 0.6317 GB, free: 54.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002373/0.9701, allocations: 0.6717 MB / 0.6324 GB, free: 53.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002729/0.9729, allocations: 0.9818 MB / 0.6333 GB, free: 52.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002933/0.9732, allocations: 75.98 kB / 0.6334 GB, free: 52.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002244/0.9754, allocations: 2.058 MB / 0.6354 GB, free: 50.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9754, allocations: 0 / 0.6354 GB, free: 50.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/0.9861, allocations: 8.491 MB / 0.6437 GB, free: 42.22 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002338/0.9885, allocations: 0.8363 MB / 0.6445 GB, free: 41.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006132/0.9891, allocations: 68 kB / 0.6446 GB, free: 41.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00182/0.991, allocations: 219.8 kB / 0.6448 GB, free: 41.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000365/0.9913, allocations: 226.6 kB / 0.645 GB, free: 40.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002118/0.9916, allocations: 104 kB / 0.6451 GB, free: 40.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002275/0.9938, allocations: 1.871 MB / 0.6469 GB, free: 38.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.9938, allocations: 0 / 0.6469 GB, free: 38.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005807/0.9997, allocations: 2.094 MB / 0.649 GB, free: 36.79 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * 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 (346): * Single equations (assignments): 345 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,50)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004794/1, allocations: 253.9 kB / 0.6492 GB, free: 36.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01295/1.013, allocations: 9.186 MB / 0.6582 GB, free: 27.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/1.013, allocations: 0 / 0.6582 GB, free: 27.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003856/1.017, allocations: 2.636 MB / 0.6608 GB, free: 24.74 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003434/1.02, allocations: 0.8005 MB / 0.6616 GB, free: 23.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01728/1.038, allocations: 12.4 MB / 0.6737 GB, free: 11.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003312/1.041, allocations: 4.447 MB / 0.678 GB, free: 7.082 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005205/1.046, allocations: 2.291 MB / 0.6802 GB, free: 4.781 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008754/1.047, allocations: 287.4 kB / 0.6805 GB, free: 4.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/1.047, allocations: 0 / 0.6805 GB, free: 4.5 MB / 446.1 MB Notification: Performance of Templates: time 0.2448/1.292, allocations: 57.73 MB / 0.7369 GB, free: 122.6 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)