Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_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.001615/0.001615, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001694/0.001694, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 68.69 kB / 307.9 MB, free: 476 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1177, allocations: 50.53 MB / 358.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.23/0.3478, allocations: 24.68 MB / 383.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01678/0.3646, allocations: 7.87 MB / 391 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006875/0.3715, allocations: 167.2 kB / 391.2 MB, free: 3.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01391/0.3855, allocations: 5.676 MB / 396.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.3963, allocations: 2.558 MB / 399.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006348/0.4027, allocations: 1.85 MB / 401.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01364/0.4163, allocations: 7.802 MB / 409.1 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02544/0.4418, allocations: 14.6 MB / 423.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008784/0.4506, allocations: 3.946 MB / 427.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008744/0.4594, allocations: 4.57 MB / 432.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003818/0.4633, allocations: 1.109 MB / 433.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006074/0.4694, allocations: 1.468 MB / 434.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004546/0.474, allocations: 2.24 MB / 437 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0103/0.4843, allocations: 4.338 MB / 441.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0216/0.506, allocations: 14.96 MB / 456.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.506, allocations: 0 / 456.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5061, allocations: 0 / 456.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004673/0.5065, allocations: 0 / 456.3 MB, free: 10.14 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.03299/0.5395, allocations: 9.229 MB / 465.5 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.5396, allocations: 12.03 kB / 465.5 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03117/0.5708, allocations: 5.302 MB / 470.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01228/0.5831, allocations: 4.621 MB / 475.5 MB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006801/0.5838, allocations: 0.5058 MB / 476 MB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003382/0.5872, allocations: 0.6678 MB / 476.6 MB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0341/0.6214, allocations: 11.16 MB / 487.8 MB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000404/0.6218, allocations: 11.91 kB / 487.8 MB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0029/0.6247, allocations: 284 kB / 488.1 MB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006078/0.6254, allocations: 426.5 kB / 488.5 MB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02691/0.6523, allocations: 10.72 MB / 499.2 MB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0757/0.7281, allocations: 36.29 MB / 0.523 GB, free: 9.676 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2134/0.9415, allocations: 11.88 MB / 0.5346 GB, free: 130.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005524/0.9471, allocations: 2.847 MB / 0.5373 GB, free: 130.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000452/0.9476, allocations: 248.5 kB / 0.5376 GB, free: 130.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.587e-05/0.9476, allocations: 74.67 kB / 0.5376 GB, free: 130.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 5.751e-06/0.9476, allocations: 0 / 0.5376 GB, free: 130.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.03853/0.9862, allocations: 15.82 MB / 0.5531 GB, free: 124.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.596e-05/0.9863, allocations: 145.9 kB / 0.5532 GB, free: 124.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003955/0.9903, allocations: 2.795 MB / 0.556 GB, free: 123.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004787/0.9908, allocations: 85.58 kB / 0.556 GB, free: 123.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001363/0.9921, allocations: 2.879 MB / 0.5589 GB, free: 121.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00101/0.9931, allocations: 1.275 MB / 0.5601 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001199/0.9944, allocations: 0.8897 MB / 0.561 GB, free: 120 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.339e-05/0.9944, allocations: 301.1 kB / 0.5613 GB, free: 119.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003132/0.9976, allocations: 2.318 MB / 0.5635 GB, free: 118.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003659/1.001, allocations: 3.914 MB / 0.5673 GB, free: 115.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007307/1.009, allocations: 6.711 MB / 0.5739 GB, free: 111.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.957e-05/1.009, allocations: 15.53 kB / 0.5739 GB, free: 111.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01081/1.019, allocations: 7.091 MB / 0.5808 GB, free: 107.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/1.02, allocations: 24.55 kB / 0.5809 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.998e-05/1.02, allocations: 52 kB / 0.5809 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003295/1.023, allocations: 1.238 MB / 0.5821 GB, free: 106.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003889/1.027, allocations: 1.063 MB / 0.5832 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002958/1.03, allocations: 2.358 MB / 0.5855 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003586/1.033, allocations: 296.2 kB / 0.5857 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006586/1.034, allocations: 228 kB / 0.586 GB, free: 102.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006675/1.041, allocations: 4.522 MB / 0.5904 GB, free: 98.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003781/1.045, allocations: 3.9 MB / 0.5942 GB, free: 93.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007161/1.052, allocations: 6.683 MB / 0.6007 GB, free: 86.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.416e-05/1.052, allocations: 12 kB / 0.6007 GB, free: 86.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01139/1.063, allocations: 7.049 MB / 0.6076 GB, free: 79.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.454e-05/1.063, allocations: 24 kB / 0.6076 GB, free: 79.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.052e-05/1.063, allocations: 52 kB / 0.6077 GB, free: 79.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00327/1.067, allocations: 1.198 MB / 0.6089 GB, free: 77.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00394/1.071, allocations: 1.065 MB / 0.6099 GB, free: 76.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002841/1.074, allocations: 2.285 MB / 0.6121 GB, free: 74.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003924/1.078, allocations: 275.6 kB / 0.6124 GB, free: 74.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008918/1.078, allocations: 236 kB / 0.6126 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.001735/1.08, allocations: 482.6 kB / 0.6131 GB, free: 73.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/1.082, allocations: 355.7 kB / 0.6134 GB, free: 73.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01019/1.092, allocations: 5.856 MB / 0.6191 GB, free: 67.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/1.092, allocations: 43.94 kB / 0.6192 GB, free: 67.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/1.092, allocations: 0 / 0.6192 GB, free: 67.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-05/1.092, allocations: 19.92 kB / 0.6192 GB, free: 67.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02409/1.116, allocations: 12.91 MB / 0.6318 GB, free: 54.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/1.116, allocations: 128 / 0.6318 GB, free: 54.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002634/1.119, allocations: 0.6748 MB / 0.6325 GB, free: 53.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003039/1.122, allocations: 0.9857 MB / 0.6334 GB, free: 52.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000499/1.122, allocations: 79.97 kB / 0.6335 GB, free: 52.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002398/1.125, allocations: 2.055 MB / 0.6355 GB, free: 50.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.125, allocations: 0 / 0.6355 GB, free: 50.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01223/1.137, allocations: 8.5 MB / 0.6438 GB, free: 41.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002097/1.139, allocations: 0.8363 MB / 0.6446 GB, free: 41.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009476/1.14, allocations: 64 kB / 0.6447 GB, free: 40.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00253/1.143, allocations: 215.8 kB / 0.6449 GB, free: 40.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005035/1.143, allocations: 222.8 kB / 0.6451 GB, free: 40.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002757/1.143, allocations: 108 kB / 0.6452 GB, free: 40.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003303/1.147, allocations: 1.875 MB / 0.647 GB, free: 38.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.147, allocations: 0 / 0.647 GB, free: 38.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009381/1.156, allocations: 2.094 MB / 0.6491 GB, free: 36.45 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.0008475/1.157, allocations: 255.5 kB / 0.6493 GB, free: 36.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02915/1.186, allocations: 14.76 MB / 0.6637 GB, free: 21.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/1.186, allocations: 0 / 0.6637 GB, free: 21.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005568/1.192, allocations: 2.628 MB / 0.6663 GB, free: 18.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005753/1.198, allocations: 0.7992 MB / 0.6671 GB, free: 18.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02433/1.222, allocations: 12.43 MB / 0.6792 GB, free: 5.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005412/1.227, allocations: 4.331 MB / 0.6834 GB, free: 1.301 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001828/1.229, allocations: 323.4 kB / 0.6838 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/1.229, allocations: 4 kB / 0.6838 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of Templates: time 0.3655/1.595, allocations: 114.5 MB / 0.7956 GB, free: 62.33 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)