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.001069/0.001069, allocations: 89.91 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 202.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002453/0.0002453, allocations: 4 kB / 308.4 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1032, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2384/0.3417, allocations: 23.21 MB / 383.1 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01654/0.3583, allocations: 7.712 MB / 390.9 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006706/0.365, allocations: 156.9 kB / 391 MB, free: 4.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005873/0.3709, allocations: 1.442 MB / 392.5 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00954/0.3805, allocations: 2.337 MB / 394.8 MB, free: 2.246 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004908/0.3854, allocations: 1.524 MB / 396.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01278/0.3982, allocations: 7.924 MB / 404.2 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02485/0.4231, allocations: 14.33 MB / 418.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006099/0.4293, allocations: 2.825 MB / 421.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006771/0.4361, allocations: 3.551 MB / 424.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001992/0.4381, allocations: 436 kB / 425.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004027/0.4422, allocations: 0.7808 MB / 426.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002198/0.4444, allocations: 1.424 MB / 427.6 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006629/0.451, allocations: 3.457 MB / 431 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01467/0.4657, allocations: 12.61 MB / 443.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4658, allocations: 0 / 443.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.4658, allocations: 0 / 443.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004119/0.4662, allocations: 0 / 443.6 MB, free: 7.961 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: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.02196/0.4882, allocations: 7.723 MB / 451.4 MB, free: 156 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.4882, allocations: 8.031 kB / 451.4 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02915/0.5174, allocations: 5.329 MB / 456.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009808/0.5273, allocations: 4.625 MB / 461.3 MB, free: 6.113 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005156/0.5278, allocations: 0.5097 MB / 461.8 MB, free: 5.602 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002682/0.5305, allocations: 0.6756 MB / 462.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02984/0.5604, allocations: 11.17 MB / 473.7 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003997/0.5608, allocations: 19.89 kB / 473.7 MB, free: 9.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002484/0.5633, allocations: 284 kB / 474 MB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005457/0.5639, allocations: 430.4 kB / 474.4 MB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02541/0.5893, allocations: 10.73 MB / 485.1 MB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06573/0.6551, allocations: 36.39 MB / 0.5093 GB, free: 8.832 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/0.6669, allocations: 11.9 MB / 0.5209 GB, free: 11.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004571/0.6715, allocations: 2.853 MB / 0.5237 GB, free: 8.957 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003894/0.672, allocations: 249 kB / 0.5239 GB, free: 8.676 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.961e-05/0.672, allocations: 77.38 kB / 0.524 GB, free: 8.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 4.869e-06/0.672, allocations: 0 / 0.524 GB, free: 8.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.2549/0.927, allocations: 15.98 MB / 0.5396 GB, free: 131.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.9271, allocations: 142.3 kB / 0.5398 GB, free: 131.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005282/0.9324, allocations: 2.796 MB / 0.5425 GB, free: 130.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006789/0.9331, allocations: 86.3 kB / 0.5426 GB, free: 130.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002095/0.9352, allocations: 2.879 MB / 0.5454 GB, free: 128.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001665/0.9369, allocations: 1.27 MB / 0.5466 GB, free: 127.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007009/0.9376, allocations: 376.7 kB / 0.547 GB, free: 127.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.015e-05/0.9376, allocations: 306 kB / 0.5473 GB, free: 126.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004331/0.942, allocations: 2.31 MB / 0.5495 GB, free: 126.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005372/0.9474, allocations: 3.937 MB / 0.5534 GB, free: 123.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009304/0.9567, allocations: 6.746 MB / 0.56 GB, free: 118.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.113e-05/0.9568, allocations: 11.84 kB / 0.56 GB, free: 118.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.0128/0.9696, allocations: 7.117 MB / 0.5669 GB, free: 115.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009234/0.9706, allocations: 1.602 MB / 0.5685 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.429e-05/0.9707, allocations: 50.47 kB / 0.5685 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003527/0.9742, allocations: 1.239 MB / 0.5698 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004189/0.9784, allocations: 1.073 MB / 0.5708 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003259/0.9817, allocations: 2.392 MB / 0.5731 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003997/0.9858, allocations: 297.8 kB / 0.5734 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007538/0.9865, allocations: 230.2 kB / 0.5736 GB, free: 112 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.9866, allocations: 3.906 kB / 0.5736 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01009/0.9967, allocations: 6.758 MB / 0.5802 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001597/0.9969, allocations: 57.03 kB / 0.5803 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003009/0.9999, allocations: 1.145 MB / 0.5814 GB, free: 106.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00402/1.004, allocations: 1.073 MB / 0.5825 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002617/1.007, allocations: 2.302 MB / 0.5847 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003784/1.01, allocations: 281 kB / 0.585 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007959/1.011, allocations: 227.7 kB / 0.5852 GB, free: 103.3 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.004941/1.016, allocations: 2.553 MB / 0.5877 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001048/1.017, allocations: 350.8 kB / 0.588 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009205/1.026, allocations: 5.899 MB / 0.5938 GB, free: 94.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/1.027, allocations: 36 kB / 0.5938 GB, free: 94.78 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/1.027, allocations: 7.938 kB / 0.5938 GB, free: 94.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-05/1.027, allocations: 19.92 kB / 0.5938 GB, free: 94.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01969/1.046, allocations: 12.93 MB / 0.6065 GB, free: 81.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/1.046, allocations: 0 / 0.6065 GB, free: 81.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00262/1.049, allocations: 0.6789 MB / 0.6071 GB, free: 81.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003001/1.052, allocations: 0.9866 MB / 0.6081 GB, free: 80.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005163/1.053, allocations: 86.33 kB / 0.6082 GB, free: 79.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002342/1.055, allocations: 2.054 MB / 0.6102 GB, free: 77.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.055, allocations: 4 kB / 0.6102 GB, free: 77.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01123/1.066, allocations: 8.543 MB / 0.6185 GB, free: 69.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002047/1.068, allocations: 0.8286 MB / 0.6193 GB, free: 68.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006108/1.069, allocations: 73.56 kB / 0.6194 GB, free: 68.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001886/1.071, allocations: 231.8 kB / 0.6196 GB, free: 68.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000371/1.071, allocations: 222.8 kB / 0.6198 GB, free: 67.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001873/1.071, allocations: 104.8 kB / 0.6199 GB, free: 67.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002239/1.074, allocations: 1.875 MB / 0.6218 GB, free: 65.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.074, allocations: 0 / 0.6218 GB, free: 65.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00552/1.079, allocations: 2.087 MB / 0.6238 GB, free: 63.84 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.0005035/1.08, allocations: 265.1 kB / 0.6241 GB, free: 63.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01313/1.093, allocations: 9.177 MB / 0.633 GB, free: 54.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.093, allocations: 3 kB / 0.633 GB, free: 54.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004143/1.097, allocations: 2.64 MB / 0.6356 GB, free: 51.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004182/1.101, allocations: 0.7529 MB / 0.6363 GB, free: 51.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/1.121, allocations: 15.4 MB / 0.6514 GB, free: 35.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003199/1.124, allocations: 4.333 MB / 0.6556 GB, free: 31.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/1.125, allocations: 323.4 kB / 0.6559 GB, free: 30.93 MB / 446.1 MB Notification: Performance of SimCode: time 1.543e-06/1.125, allocations: 0 / 0.6559 GB, free: 30.93 MB / 446.1 MB Notification: Performance of Templates: time 0.3446/1.47, allocations: 113.5 MB / 0.7668 GB, free: 88.4 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 -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)