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.001582/0.001582, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001624/0.001624, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 247.5 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 67.64 kB / 307.7 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1226, allocations: 50.53 MB / 358.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2337/0.3563, allocations: 24.68 MB / 382.9 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01704/0.3734, allocations: 7.874 MB / 390.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007294/0.3807, allocations: 167.2 kB / 390.9 MB, free: 3.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01422/0.395, allocations: 5.68 MB / 396.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01168/0.4068, allocations: 2.557 MB / 399.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006502/0.4133, allocations: 1.835 MB / 401 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01344/0.4267, allocations: 7.806 MB / 408.8 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02728/0.4541, allocations: 14.6 MB / 423.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008073/0.4622, allocations: 3.95 MB / 427.4 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009018/0.4712, allocations: 4.559 MB / 431.9 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003796/0.475, allocations: 1.109 MB / 433 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005955/0.481, allocations: 1.48 MB / 434.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004156/0.4852, allocations: 2.248 MB / 436.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009785/0.495, allocations: 4.326 MB / 441.1 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0213/0.5163, allocations: 14.96 MB / 456 MB, free: 10.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.5164, allocations: 0 / 456 MB, free: 10.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5164, allocations: 4 kB / 456 MB, free: 10.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004877/0.5169, allocations: 0 / 456 MB, free: 10.32 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.02993/0.5468, allocations: 9.235 MB / 465.3 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.5469, allocations: 8.031 kB / 465.3 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02931/0.5762, allocations: 5.224 MB / 470.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.5871, allocations: 4.633 MB / 475.1 MB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005679/0.5878, allocations: 0.5097 MB / 475.7 MB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003118/0.5909, allocations: 0.6717 MB / 476.3 MB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02761/0.6185, allocations: 11.19 MB / 487.5 MB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001968/0.6187, allocations: 19.84 kB / 487.5 MB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001353/0.6201, allocations: 280 kB / 487.8 MB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004387/0.6206, allocations: 426.5 kB / 488.2 MB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02351/0.6441, allocations: 10.75 MB / 499 MB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06847/0.7126, allocations: 36.29 MB / 0.5227 GB, free: 9.848 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2241/0.9368, allocations: 11.91 MB / 0.5344 GB, free: 130.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005792/0.9426, allocations: 2.852 MB / 0.5371 GB, free: 130.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004437/0.9431, allocations: 273.3 kB / 0.5374 GB, free: 130.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/0.9432, allocations: 80.53 kB / 0.5375 GB, free: 130.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 5.52e-06/0.9432, allocations: 3.656 kB / 0.5375 GB, free: 130.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.03861/0.9818, allocations: 15.88 MB / 0.553 GB, free: 125.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.913e-05/0.9819, allocations: 142.5 kB / 0.5531 GB, free: 125 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003982/0.9859, allocations: 2.793 MB / 0.5558 GB, free: 123.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006479/0.9866, allocations: 85.48 kB / 0.5559 GB, free: 123.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.9881, allocations: 2.885 MB / 0.5587 GB, free: 121.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001145/0.9892, allocations: 1.271 MB / 0.56 GB, free: 120.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/0.9905, allocations: 0.9037 MB / 0.5609 GB, free: 120.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.818e-05/0.9905, allocations: 301.1 kB / 0.5612 GB, free: 119.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003192/0.9937, allocations: 2.317 MB / 0.5634 GB, free: 119 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003502/0.9973, allocations: 3.921 MB / 0.5673 GB, free: 116.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006991/1.004, allocations: 6.731 MB / 0.5738 GB, free: 111.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.126e-05/1.004, allocations: 15.78 kB / 0.5738 GB, free: 111.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01024/1.015, allocations: 7.109 MB / 0.5808 GB, free: 108 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.248e-05/1.015, allocations: 24.09 kB / 0.5808 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-05/1.015, allocations: 56 kB / 0.5809 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003209/1.018, allocations: 1.238 MB / 0.5821 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003617/1.022, allocations: 1.074 MB / 0.5831 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003021/1.025, allocations: 2.355 MB / 0.5854 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003702/1.028, allocations: 288.4 kB / 0.5857 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007737/1.029, allocations: 232 kB / 0.5859 GB, free: 103 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007235/1.036, allocations: 4.522 MB / 0.5903 GB, free: 98.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004283/1.041, allocations: 3.907 MB / 0.5941 GB, free: 93.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007719/1.048, allocations: 6.707 MB / 0.6007 GB, free: 86.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.311e-05/1.049, allocations: 16 kB / 0.6007 GB, free: 86.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01165/1.06, allocations: 7.065 MB / 0.6076 GB, free: 79.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.018e-05/1.06, allocations: 28 kB / 0.6076 GB, free: 79.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.184e-05/1.06, allocations: 52 kB / 0.6077 GB, free: 79.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003231/1.064, allocations: 1.197 MB / 0.6089 GB, free: 78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003794/1.067, allocations: 1.068 MB / 0.6099 GB, free: 76.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00267/1.07, allocations: 2.288 MB / 0.6121 GB, free: 74.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003583/1.074, allocations: 275.6 kB / 0.6124 GB, free: 74.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008083/1.075, allocations: 235.8 kB / 0.6126 GB, free: 74.12 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.001375/1.076, allocations: 497.1 kB / 0.6131 GB, free: 73.63 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00116/1.077, allocations: 351.7 kB / 0.6134 GB, free: 73.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009488/1.087, allocations: 5.857 MB / 0.6191 GB, free: 67.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.321e-05/1.087, allocations: 39.94 kB / 0.6192 GB, free: 67.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/1.087, allocations: 0 / 0.6192 GB, free: 67.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.744e-05/1.087, allocations: 19.92 kB / 0.6192 GB, free: 67.35 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01956/1.106, allocations: 12.95 MB / 0.6318 GB, free: 54.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/1.106, allocations: 0 / 0.6318 GB, free: 54.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/1.109, allocations: 0.6735 MB / 0.6325 GB, free: 53.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002773/1.112, allocations: 0.9907 MB / 0.6335 GB, free: 52.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003252/1.112, allocations: 83.97 kB / 0.6336 GB, free: 52.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002208/1.114, allocations: 2.057 MB / 0.6356 GB, free: 50.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.114, allocations: 3.438 kB / 0.6356 GB, free: 50.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01067/1.125, allocations: 8.519 MB / 0.6439 GB, free: 41.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001914/1.127, allocations: 0.8441 MB / 0.6447 GB, free: 41.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006644/1.127, allocations: 72.05 kB / 0.6448 GB, free: 40.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001864/1.129, allocations: 211.8 kB / 0.645 GB, free: 40.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003845/1.13, allocations: 226.8 kB / 0.6452 GB, free: 40.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001886/1.13, allocations: 112 kB / 0.6453 GB, free: 40.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002237/1.132, allocations: 1.879 MB / 0.6471 GB, free: 38.53 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.132, allocations: 0 / 0.6471 GB, free: 38.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006063/1.138, allocations: 2.09 MB / 0.6492 GB, free: 36.44 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.0005508/1.139, allocations: 256.9 kB / 0.6494 GB, free: 36.19 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02749/1.166, allocations: 14.79 MB / 0.6639 GB, free: 21.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/1.166, allocations: 8 kB / 0.6639 GB, free: 21.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004109/1.17, allocations: 2.628 MB / 0.6664 GB, free: 18.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004172/1.175, allocations: 0.8049 MB / 0.6672 GB, free: 18.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01881/1.193, allocations: 12.28 MB / 0.6792 GB, free: 5.746 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003351/1.197, allocations: 4.331 MB / 0.6834 GB, free: 1.387 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001437/1.198, allocations: 351.3 kB / 0.6838 GB, free: 1.043 MB / 446.1 MB Notification: Performance of SimCode: time 1.233e-06/1.198, allocations: 0 / 0.6838 GB, free: 1.043 MB / 446.1 MB Notification: Performance of Templates: time 0.3327/1.531, allocations: 114.7 MB / 0.7958 GB, free: 62.09 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)