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.001446/0.001446, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 212.9 kB / 19.4 MB, free: 3.672 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.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2629, allocations: 50.55 MB / 410 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.02565/0.2886, allocations: 24.67 MB / 434.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01582/0.3045, allocations: 7.875 MB / 442.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005112/0.3096, allocations: 167.5 kB / 442.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.013/0.3227, allocations: 5.7 MB / 448.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008309/0.331, allocations: 2.545 MB / 450.9 MB, free: 8.496 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005151/0.3362, allocations: 1.836 MB / 452.7 MB, free: 6.664 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01117/0.3474, allocations: 7.862 MB / 460.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02225/0.3697, allocations: 14.49 MB / 475.1 MB, free: 140 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006106/0.3758, allocations: 3.977 MB / 479.1 MB, free: 12.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007466/0.3833, allocations: 4.539 MB / 483.6 MB, free: 7.594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003011/0.3864, allocations: 1.113 MB / 484.7 MB, free: 6.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004813/0.3912, allocations: 1.461 MB / 486.2 MB, free: 5.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003441/0.3947, allocations: 2.237 MB / 488.4 MB, free: 2.777 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008401/0.4031, allocations: 4.334 MB / 492.8 MB, free: 14.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01803/0.4212, allocations: 15.05 MB / 0.4959 GB, free: 15.33 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.4212, allocations: 4 kB / 0.4959 GB, free: 15.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.188e-06/0.4212, allocations: 3.984 kB / 0.4959 GB, free: 15.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004419/0.4217, allocations: 3.938 kB / 0.4959 GB, free: 15.32 MB / 430.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.02874/0.4504, allocations: 9.194 MB / 0.5049 GB, free: 6.039 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.4505, allocations: 8.031 kB / 0.5049 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02962/0.4801, allocations: 5.325 MB / 0.5101 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.491, allocations: 4.738 MB / 0.5147 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000588/0.4916, allocations: 0.5097 MB / 0.5152 GB, free: 11.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002989/0.4946, allocations: 0.6638 MB / 0.5159 GB, free: 10.72 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02886/0.5235, allocations: 11.16 MB / 0.5268 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003402/0.5239, allocations: 15.84 kB / 0.5268 GB, free: 15.46 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002284/0.5262, allocations: 284 kB / 0.5271 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004853/0.5267, allocations: 430.4 kB / 0.5275 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02402/0.5507, allocations: 10.73 MB / 0.538 GB, free: 4.02 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3253/0.8761, allocations: 35.85 MB / 0.573 GB, free: 94.13 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008685/0.8848, allocations: 11.9 MB / 0.5846 GB, free: 83.79 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003828/0.8887, allocations: 2.848 MB / 0.5874 GB, free: 81.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00034/0.889, allocations: 251.5 kB / 0.5876 GB, free: 81.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.8891, allocations: 69.44 kB / 0.5877 GB, free: 81.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 6.222e-06/0.8891, allocations: 0 / 0.5877 GB, free: 81.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.03257/0.9217, allocations: 15.82 MB / 0.6031 GB, free: 65.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.9218, allocations: 149.6 kB / 0.6033 GB, free: 65.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003388/0.9252, allocations: 2.793 MB / 0.606 GB, free: 62.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005425/0.9257, allocations: 89.7 kB / 0.6061 GB, free: 62.17 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.9269, allocations: 2.877 MB / 0.6089 GB, free: 59.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001099/0.928, allocations: 1.273 MB / 0.6101 GB, free: 58.01 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00111/0.9292, allocations: 0.8984 MB / 0.611 GB, free: 57.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.529e-05/0.9292, allocations: 301.1 kB / 0.6113 GB, free: 56.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0029/0.9321, allocations: 2.31 MB / 0.6135 GB, free: 54.48 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00347/0.9356, allocations: 3.92 MB / 0.6174 GB, free: 49.81 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007047/0.9427, allocations: 6.703 MB / 0.6239 GB, free: 42.37 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.645e-05/0.9428, allocations: 16 kB / 0.6239 GB, free: 42.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01013/0.9529, allocations: 7.084 MB / 0.6309 GB, free: 35.24 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.644e-05/0.953, allocations: 34.95 kB / 0.6309 GB, free: 35.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.404e-05/0.9531, allocations: 56.7 kB / 0.6309 GB, free: 35.15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003247/0.9563, allocations: 1.233 MB / 0.6321 GB, free: 33.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003738/0.9601, allocations: 1.061 MB / 0.6332 GB, free: 32.85 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002856/0.9629, allocations: 2.366 MB / 0.6355 GB, free: 30.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/0.9664, allocations: 287.5 kB / 0.6358 GB, free: 30.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007237/0.9671, allocations: 228 kB / 0.636 GB, free: 29.95 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006336/0.9735, allocations: 4.522 MB / 0.6404 GB, free: 25.42 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003632/0.9772, allocations: 3.896 MB / 0.6442 GB, free: 20.79 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007147/0.9843, allocations: 6.683 MB / 0.6507 GB, free: 13.36 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.145e-05/0.9844, allocations: 20 kB / 0.6508 GB, free: 13.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.009829/0.9943, allocations: 7.037 MB / 0.6576 GB, free: 6.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.9943, allocations: 28 kB / 0.6577 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.555e-05/0.9944, allocations: 52.72 kB / 0.6577 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003041/0.9974, allocations: 1.186 MB / 0.6589 GB, free: 5.004 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003617/1.001, allocations: 1.065 MB / 0.6599 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00245/1.004, allocations: 2.3 MB / 0.6621 GB, free: 1.613 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003251/1.007, allocations: 275.7 kB / 0.6624 GB, free: 1.344 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005263/1.007, allocations: 224 kB / 0.6626 GB, free: 1.125 MB / 462.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.0009436/1.008, allocations: 498.6 kB / 0.6631 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007377/1.009, allocations: 351.7 kB / 0.6634 GB, free: 288 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/1.019, allocations: 5.851 MB / 0.6691 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.525e-05/1.019, allocations: 43.94 kB / 0.6692 GB, free: 10.35 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/1.019, allocations: 0 / 0.6692 GB, free: 10.35 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.545e-05/1.019, allocations: 19.92 kB / 0.6692 GB, free: 10.33 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02246/1.042, allocations: 12.66 MB / 0.6816 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/1.042, allocations: 0 / 0.6816 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002707/1.045, allocations: 0.667 MB / 0.6822 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003184/1.048, allocations: 0.9858 MB / 0.6832 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003282/1.048, allocations: 75.98 kB / 0.6833 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002843/1.051, allocations: 2.053 MB / 0.6853 GB, free: 9.832 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/1.051, allocations: 8.031 kB / 0.6853 GB, free: 9.824 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01338/1.064, allocations: 8.49 MB / 0.6936 GB, free: 1.262 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002064/1.067, allocations: 0.8363 MB / 0.6944 GB, free: 412 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006844/1.067, allocations: 68.06 kB / 0.6944 GB, free: 344 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00194/1.069, allocations: 215.8 kB / 0.6946 GB, free: 128 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004483/1.07, allocations: 230.7 kB / 0.6949 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002159/1.07, allocations: 99.98 kB / 0.695 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003028/1.073, allocations: 1.879 MB / 0.6968 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.41e-07/1.073, allocations: 0 / 0.6968 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006622/1.08, allocations: 2.085 MB / 0.6988 GB, free: 11.84 MB / 0.4981 GB 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.0005864/1.08, allocations: 247.1 kB / 0.6991 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01619/1.096, allocations: 9.205 MB / 0.7081 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/1.096, allocations: 4.062 kB / 0.7081 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004932/1.101, allocations: 2.623 MB / 0.7106 GB, free: 15.78 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003923/1.105, allocations: 0.8074 MB / 0.7114 GB, free: 15 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02227/1.128, allocations: 12.26 MB / 0.7234 GB, free: 2.695 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004417/1.132, allocations: 4.331 MB / 0.7276 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001623/1.134, allocations: 323.3 kB / 0.7279 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of SimCode: time 1.543e-06/1.134, allocations: 0 / 0.7279 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of Templates: time 0.3459/1.48, allocations: 115 MB / 0.8403 GB, free: 94.54 MB / 0.5294 GB 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)