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.001048/0.001048, allocations: 96.42 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 200.8 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.7 MB / 247.5 MB, free: 9.691 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.0002842, allocations: 4 kB / 308.4 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1047, allocations: 51.51 MB / 359.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.2106/0.3154, allocations: 23.21 MB / 383.1 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0156/0.331, allocations: 7.718 MB / 390.9 MB, free: 4.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006287/0.3374, allocations: 155.7 kB / 391 MB, free: 4.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005774/0.3432, allocations: 1.435 MB / 392.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009414/0.3526, allocations: 2.344 MB / 394.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004949/0.3576, allocations: 1.527 MB / 396.3 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01203/0.3696, allocations: 7.932 MB / 404.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02795/0.3976, allocations: 14.31 MB / 418.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005991/0.4037, allocations: 2.833 MB / 421.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006538/0.4103, allocations: 3.532 MB / 424.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001933/0.4122, allocations: 440 kB / 425.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003923/0.4162, allocations: 0.8002 MB / 426.2 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002332/0.4185, allocations: 1.428 MB / 427.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006357/0.4249, allocations: 3.453 MB / 431 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01453/0.4394, allocations: 12.61 MB / 443.7 MB, free: 7.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.4395, allocations: 0 / 443.7 MB, free: 7.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.4395, allocations: 0 / 443.7 MB, free: 7.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004452/0.44, allocations: 0 / 443.7 MB, free: 7.852 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.02289/0.4629, allocations: 7.704 MB / 451.4 MB, free: 64 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.4629, allocations: 16.03 kB / 451.4 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02951/0.4925, allocations: 5.325 MB / 456.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01064/0.5031, allocations: 4.625 MB / 461.3 MB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006669/0.5039, allocations: 0.5097 MB / 461.8 MB, free: 5.512 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002661/0.5065, allocations: 0.6795 MB / 462.5 MB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02793/0.5345, allocations: 11.17 MB / 473.7 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003448/0.5349, allocations: 15.91 kB / 473.7 MB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002139/0.537, allocations: 284 kB / 474 MB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000549/0.5376, allocations: 430.5 kB / 474.4 MB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02316/0.5608, allocations: 10.74 MB / 485.1 MB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06561/0.6264, allocations: 36.38 MB / 0.5093 GB, free: 8.742 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01331/0.6398, allocations: 11.91 MB / 0.5209 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005347/0.6452, allocations: 2.86 MB / 0.5237 GB, free: 8.855 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005639/0.6458, allocations: 245 kB / 0.5239 GB, free: 8.578 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.645e-05/0.6459, allocations: 77.38 kB / 0.524 GB, free: 8.492 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 6.502e-06/0.6459, allocations: 0 / 0.524 GB, free: 8.492 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.2396/0.8855, allocations: 15.99 MB / 0.5396 GB, free: 131.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.8856, allocations: 144.4 kB / 0.5398 GB, free: 131.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006585/0.8922, allocations: 2.793 MB / 0.5425 GB, free: 130.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007233/0.8929, allocations: 87.05 kB / 0.5426 GB, free: 130.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002384/0.8953, allocations: 2.882 MB / 0.5454 GB, free: 128.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00173/0.8971, allocations: 1.268 MB / 0.5466 GB, free: 127.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001214/0.8983, allocations: 377 kB / 0.547 GB, free: 127.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.74e-05/0.8984, allocations: 303 kB / 0.5473 GB, free: 126.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004965/0.9034, allocations: 2.313 MB / 0.5495 GB, free: 125.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005907/0.9093, allocations: 3.935 MB / 0.5534 GB, free: 123 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009433/0.9188, allocations: 6.742 MB / 0.56 GB, free: 118.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001075/0.9189, allocations: 11.84 kB / 0.56 GB, free: 118.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01337/0.9323, allocations: 7.123 MB / 0.5669 GB, free: 115.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000977/0.9333, allocations: 1.602 MB / 0.5685 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.9334, allocations: 50.47 kB / 0.5685 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003534/0.937, allocations: 1.238 MB / 0.5698 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00405/0.9411, allocations: 1.069 MB / 0.5708 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003346/0.9444, allocations: 2.394 MB / 0.5731 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003981/0.9484, allocations: 299.1 kB / 0.5734 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008975/0.9494, allocations: 226.3 kB / 0.5736 GB, free: 111.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.9494, allocations: 3.875 kB / 0.5736 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01138/0.9608, allocations: 6.767 MB / 0.5803 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001543/0.961, allocations: 52 kB / 0.5803 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003069/0.9641, allocations: 1.15 MB / 0.5814 GB, free: 106.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004125/0.9682, allocations: 1.065 MB / 0.5825 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002759/0.971, allocations: 2.304 MB / 0.5847 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003753/0.9748, allocations: 288.4 kB / 0.585 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008343/0.9756, allocations: 220.3 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.005202/0.9809, allocations: 2.555 MB / 0.5877 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001249/0.9821, allocations: 347.5 kB / 0.588 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/0.9928, allocations: 5.893 MB / 0.5938 GB, free: 94.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.9929, allocations: 40 kB / 0.5938 GB, free: 94.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.9929, allocations: 3.938 kB / 0.5938 GB, free: 94.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-05/0.9929, allocations: 19.92 kB / 0.5938 GB, free: 94.72 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02235/1.015, allocations: 12.94 MB / 0.6065 GB, free: 81.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/1.015, allocations: 4 kB / 0.6065 GB, free: 81.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002702/1.018, allocations: 0.6711 MB / 0.6071 GB, free: 81.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003066/1.021, allocations: 0.9897 MB / 0.6081 GB, free: 80.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000541/1.022, allocations: 83.91 kB / 0.6082 GB, free: 79.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002494/1.024, allocations: 2.061 MB / 0.6102 GB, free: 77.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.024, allocations: 3.984 kB / 0.6102 GB, free: 77.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01248/1.037, allocations: 8.539 MB / 0.6185 GB, free: 69.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/1.039, allocations: 0.8443 MB / 0.6194 GB, free: 68.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000913/1.04, allocations: 64 kB / 0.6194 GB, free: 68.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002436/1.042, allocations: 223.8 kB / 0.6196 GB, free: 68.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004842/1.043, allocations: 222.8 kB / 0.6198 GB, free: 67.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000255/1.043, allocations: 104 kB / 0.6199 GB, free: 67.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00328/1.046, allocations: 1.875 MB / 0.6218 GB, free: 65.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.4e-07/1.046, allocations: 0 / 0.6218 GB, free: 65.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008511/1.055, allocations: 2.091 MB / 0.6238 GB, free: 63.8 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.0008074/1.056, allocations: 263.4 kB / 0.6241 GB, free: 63.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01544/1.071, allocations: 9.171 MB / 0.633 GB, free: 54.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.071, allocations: 0 / 0.633 GB, free: 54.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004574/1.076, allocations: 2.636 MB / 0.6356 GB, free: 51.76 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005543/1.081, allocations: 0.761 MB / 0.6363 GB, free: 51.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02386/1.105, allocations: 15.4 MB / 0.6514 GB, free: 35.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004922/1.11, allocations: 4.337 MB / 0.6556 GB, free: 31.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001625/1.112, allocations: 319.4 kB / 0.6559 GB, free: 30.9 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/1.112, allocations: 0 / 0.6559 GB, free: 30.9 MB / 446.1 MB Notification: Performance of Templates: time 0.3393/1.451, allocations: 113.5 MB / 0.7668 GB, free: 88.41 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)