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.001918/0.001918, allocations: 113.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002245/0.002245, allocations: 206.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.774/1.774, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4606/0.4627, 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.05519/0.5179, allocations: 24.67 MB / 434.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03378/0.5518, allocations: 7.882 MB / 442.5 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009189/0.561, allocations: 167.5 kB / 442.7 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02004/0.5812, allocations: 5.684 MB / 448.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01297/0.5942, allocations: 2.556 MB / 450.9 MB, free: 8.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009005/0.6032, allocations: 1.844 MB / 452.8 MB, free: 6.652 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01678/0.62, allocations: 7.85 MB / 460.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03767/0.6578, allocations: 14.5 MB / 475.1 MB, free: 136 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01135/0.6692, allocations: 3.974 MB / 479.1 MB, free: 12.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01299/0.6823, allocations: 4.539 MB / 483.6 MB, free: 7.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004863/0.6872, allocations: 1.109 MB / 484.7 MB, free: 6.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006831/0.6941, allocations: 1.464 MB / 486.2 MB, free: 5.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005886/0.7001, allocations: 2.24 MB / 488.4 MB, free: 2.773 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01244/0.7126, allocations: 4.326 MB / 492.8 MB, free: 14.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04595/0.7586, allocations: 15.06 MB / 0.4959 GB, free: 15.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.7587, allocations: 0 / 0.4959 GB, free: 15.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.814e-06/0.7587, allocations: 3.984 kB / 0.4959 GB, free: 15.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005116/0.7592, 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.04915/0.8084, allocations: 9.194 MB / 0.5049 GB, free: 6.039 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/0.8085, allocations: 8.031 kB / 0.5049 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06248/0.871, allocations: 5.325 MB / 0.5101 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01897/0.89, allocations: 4.741 MB / 0.5147 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008511/0.891, allocations: 0.5058 MB / 0.5152 GB, free: 11.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004329/0.8953, allocations: 0.6638 MB / 0.5159 GB, free: 10.72 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04538/0.9408, allocations: 11.16 MB / 0.5268 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004499/0.9413, allocations: 27.77 kB / 0.5268 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0032/0.9445, allocations: 288 kB / 0.5271 GB, free: 15.17 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000845/0.9454, allocations: 430.4 kB / 0.5275 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04335/0.9888, allocations: 10.71 MB / 0.5379 GB, free: 4.02 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4929/1.482, allocations: 35.85 MB / 0.573 GB, free: 94.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01928/1.501, allocations: 11.9 MB / 0.5846 GB, free: 83.78 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008657/1.51, allocations: 2.853 MB / 0.5874 GB, free: 81.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009228/1.511, allocations: 248.3 kB / 0.5876 GB, free: 81.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/1.511, allocations: 73.42 kB / 0.5877 GB, free: 81.08 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 2.474e-05/1.511, allocations: 0 / 0.5877 GB, free: 81.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.07359/1.585, allocations: 15.82 MB / 0.6031 GB, free: 65.26 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.132e-05/1.585, allocations: 149.7 kB / 0.6033 GB, free: 65.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0061/1.591, allocations: 2.801 MB / 0.606 GB, free: 62.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008832/1.592, allocations: 85.7 kB / 0.6061 GB, free: 62.18 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002187/1.594, allocations: 2.873 MB / 0.6089 GB, free: 59.28 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001936/1.596, allocations: 1.273 MB / 0.6101 GB, free: 58.02 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002402/1.599, allocations: 0.8906 MB / 0.611 GB, free: 57.12 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.389e-05/1.599, allocations: 301.1 kB / 0.6113 GB, free: 56.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006011/1.605, allocations: 2.314 MB / 0.6135 GB, free: 54.49 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007584/1.612, allocations: 3.92 MB / 0.6174 GB, free: 49.82 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01448/1.627, allocations: 6.707 MB / 0.6239 GB, free: 42.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.458e-05/1.627, allocations: 16 kB / 0.6239 GB, free: 42.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.02128/1.648, allocations: 7.092 MB / 0.6309 GB, free: 35.24 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.704e-05/1.648, allocations: 30.75 kB / 0.6309 GB, free: 35.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/1.649, allocations: 52 kB / 0.6309 GB, free: 35.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005528/1.654, allocations: 1.233 MB / 0.6321 GB, free: 33.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007561/1.662, allocations: 1.065 MB / 0.6332 GB, free: 32.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00591/1.668, allocations: 2.359 MB / 0.6355 GB, free: 30.47 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00632/1.674, allocations: 291.5 kB / 0.6358 GB, free: 30.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001369/1.675, allocations: 228 kB / 0.636 GB, free: 29.96 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01263/1.688, allocations: 4.518 MB / 0.6404 GB, free: 25.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.008038/1.696, allocations: 3.903 MB / 0.6442 GB, free: 20.79 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01476/1.711, allocations: 6.683 MB / 0.6507 GB, free: 13.37 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.835e-05/1.711, allocations: 12 kB / 0.6507 GB, free: 13.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.02157/1.733, allocations: 7.045 MB / 0.6576 GB, free: 6.277 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.425e-05/1.733, allocations: 24 kB / 0.6577 GB, free: 6.254 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001145/1.733, allocations: 55.94 kB / 0.6577 GB, free: 6.199 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005983/1.739, allocations: 1.186 MB / 0.6589 GB, free: 5.012 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007439/1.747, allocations: 1.065 MB / 0.6599 GB, free: 3.945 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005065/1.752, allocations: 2.288 MB / 0.6621 GB, free: 1.629 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006317/1.758, allocations: 275.7 kB / 0.6624 GB, free: 1.359 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001386/1.76, allocations: 228 kB / 0.6626 GB, free: 1.137 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.002224/1.762, allocations: 498.5 kB / 0.6631 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00186/1.764, allocations: 351.7 kB / 0.6634 GB, free: 300 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02459/1.788, allocations: 5.852 MB / 0.6691 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.549e-05/1.789, allocations: 43.94 kB / 0.6692 GB, free: 10.37 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.974e-05/1.789, allocations: 4 kB / 0.6692 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001232/1.789, allocations: 19.92 kB / 0.6692 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05133/1.84, allocations: 12.66 MB / 0.6816 GB, free: 13.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.044e-05/1.84, allocations: 0 / 0.6816 GB, free: 13.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007112/1.847, allocations: 0.667 MB / 0.6822 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006304/1.854, allocations: 0.978 MB / 0.6832 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001265/1.855, allocations: 83.97 kB / 0.6833 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005963/1.861, allocations: 2.05 MB / 0.6853 GB, free: 9.848 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.737e-06/1.861, allocations: 4 kB / 0.6853 GB, free: 9.844 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03152/1.893, allocations: 8.497 MB / 0.6936 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004712/1.897, allocations: 0.8402 MB / 0.6944 GB, free: 424 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00182/1.899, allocations: 68 kB / 0.6945 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004766/1.904, allocations: 207.8 kB / 0.6946 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001394/1.906, allocations: 230.8 kB / 0.6949 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008611/1.906, allocations: 108 kB / 0.695 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.007103/1.914, allocations: 1.871 MB / 0.6968 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.392e-06/1.914, allocations: 0 / 0.6968 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01575/1.929, allocations: 2.093 MB / 0.6988 GB, free: 11.85 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.001516/1.931, allocations: 246.5 kB / 0.6991 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.03691/1.968, allocations: 9.204 MB / 0.7081 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.955e-05/1.968, allocations: 0 / 0.7081 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.01537/1.983, allocations: 2.628 MB / 0.7106 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01409/1.998, allocations: 0.7948 MB / 0.7114 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06126/2.059, allocations: 12.26 MB / 0.7234 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01261/2.072, allocations: 4.331 MB / 0.7276 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003242/2.075, allocations: 323.3 kB / 0.7279 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of SimCode: time 2.435e-06/2.075, allocations: 0 / 0.7279 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of Templates: time 0.9462/3.021, allocations: 115.9 MB / 0.8411 GB, free: 93.91 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)