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.00109/0.00109, allocations: 113.8 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00109/0.00109, allocations: 204 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2049, allocations: 50.53 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.02477/0.2297, allocations: 24.69 MB / 434.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01225/0.242, allocations: 7.859 MB / 442.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002619/0.2446, allocations: 167.5 kB / 442.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01188/0.2565, allocations: 5.759 MB / 448.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005815/0.2624, allocations: 2.599 MB / 451 MB, free: 8.375 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003676/0.266, allocations: 1.836 MB / 452.9 MB, free: 6.543 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007257/0.2733, allocations: 7.866 MB / 460.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01521/0.2885, allocations: 14.49 MB / 475.2 MB, free: 12 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004087/0.2926, allocations: 3.97 MB / 479.2 MB, free: 12.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004707/0.2974, allocations: 4.547 MB / 483.7 MB, free: 7.469 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001253/0.2986, allocations: 1.113 MB / 484.9 MB, free: 6.355 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002276/0.3009, allocations: 1.461 MB / 486.3 MB, free: 4.895 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001654/0.3026, allocations: 2.236 MB / 488.6 MB, free: 2.652 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003709/0.3063, allocations: 4.33 MB / 492.9 MB, free: 14.3 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01244/0.3187, allocations: 15.1 MB / 0.4961 GB, free: 15.16 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.3188, allocations: 0 / 0.4961 GB, free: 15.16 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3188, allocations: 4 kB / 0.4961 GB, free: 15.15 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001529/0.3189, allocations: 3.938 kB / 0.4961 GB, free: 15.15 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.0194/0.3383, allocations: 9.36 MB / 0.5052 GB, free: 5.695 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.3384, allocations: 19.95 kB / 0.5052 GB, free: 5.676 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02903/0.3674, allocations: 5.357 MB / 0.5105 GB, free: 316 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007472/0.3749, allocations: 4.751 MB / 0.5151 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003349/0.3752, allocations: 0.5058 MB / 0.5156 GB, free: 10.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/0.3764, allocations: 0.6679 MB / 0.5163 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01717/0.3936, allocations: 11.16 MB / 0.5272 GB, free: 15.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001524/0.3937, allocations: 7.953 kB / 0.5272 GB, free: 15.07 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007241/0.3945, allocations: 284 kB / 0.5274 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000377/0.3949, allocations: 426.4 kB / 0.5278 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01694/0.4118, allocations: 10.73 MB / 0.5383 GB, free: 3.629 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.214/0.6258, allocations: 35.94 MB / 0.5734 GB, free: 93.53 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007627/0.6335, allocations: 11.9 MB / 0.585 GB, free: 83.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003051/0.6365, allocations: 2.847 MB / 0.5878 GB, free: 80.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002912/0.6368, allocations: 248.3 kB / 0.5881 GB, free: 80.53 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.6369, allocations: 76.97 kB / 0.5881 GB, free: 80.45 MB / 462.1 MB Notification: Performance of pre-optimization done (n=365): time 5.48e-06/0.6369, allocations: 0 / 0.5881 GB, free: 80.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=375): time 0.02991/0.6668, allocations: 15.92 MB / 0.6037 GB, free: 64.79 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.6669, allocations: 145.7 kB / 0.6038 GB, free: 64.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002828/0.6697, allocations: 2.79 MB / 0.6065 GB, free: 61.85 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001839/0.6699, allocations: 85.7 kB / 0.6066 GB, free: 61.76 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.6709, allocations: 2.981 MB / 0.6095 GB, free: 59.19 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005912/0.6715, allocations: 1.334 MB / 0.6108 GB, free: 57.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001067/0.6726, allocations: 0.8949 MB / 0.6117 GB, free: 56.96 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 2.968e-05/0.6726, allocations: 301.1 kB / 0.612 GB, free: 56.67 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/0.6754, allocations: 2.318 MB / 0.6143 GB, free: 54.33 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003271/0.6787, allocations: 3.92 MB / 0.6181 GB, free: 49.67 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00655/0.6852, allocations: 6.707 MB / 0.6246 GB, free: 42.22 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.77e-05/0.6852, allocations: 15.94 kB / 0.6247 GB, free: 42.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.008763/0.694, allocations: 7.098 MB / 0.6316 GB, free: 35.08 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.6941, allocations: 35.92 kB / 0.6316 GB, free: 35.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.664e-05/0.6941, allocations: 48.72 kB / 0.6317 GB, free: 35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003212/0.6973, allocations: 1.233 MB / 0.6329 GB, free: 33.76 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003344/0.7007, allocations: 1.061 MB / 0.6339 GB, free: 32.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002642/0.7033, allocations: 2.373 MB / 0.6362 GB, free: 30.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002491/0.7058, allocations: 291.6 kB / 0.6365 GB, free: 30.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003021/0.7062, allocations: 220 kB / 0.6367 GB, free: 29.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005156/0.7113, allocations: 4.522 MB / 0.6411 GB, free: 25.27 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003244/0.7146, allocations: 3.896 MB / 0.6449 GB, free: 20.63 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006414/0.721, allocations: 6.691 MB / 0.6515 GB, free: 13.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.786e-05/0.721, allocations: 20 kB / 0.6515 GB, free: 13.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.008606/0.7296, allocations: 7.055 MB / 0.6584 GB, free: 6.094 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.7297, allocations: 30.81 kB / 0.6584 GB, free: 6.066 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.53e-05/0.7297, allocations: 52.72 kB / 0.6585 GB, free: 6.016 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003054/0.7328, allocations: 1.186 MB / 0.6596 GB, free: 4.828 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003312/0.7361, allocations: 1.065 MB / 0.6607 GB, free: 3.762 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.7384, allocations: 2.293 MB / 0.6629 GB, free: 1.441 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002441/0.7409, allocations: 279.7 kB / 0.6632 GB, free: 1.168 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000304/0.7412, allocations: 224 kB / 0.6634 GB, free: 0.9492 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.0006487/0.7418, allocations: 498.1 kB / 0.6638 GB, free: 468 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005158/0.7424, allocations: 365.7 kB / 0.6642 GB, free: 100 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009648/0.752, allocations: 5.863 MB / 0.6699 GB, free: 10.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.362e-05/0.7521, allocations: 19.92 kB / 0.6699 GB, free: 10.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.7521, allocations: 3.938 kB / 0.6699 GB, free: 10.18 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/0.7534, allocations: 0.8616 MB / 0.6708 GB, free: 9.293 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004416/0.7539, allocations: 64.11 kB / 0.6708 GB, free: 9.23 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002033/0.7559, allocations: 219.7 kB / 0.6711 GB, free: 9.016 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004543/0.7564, allocations: 222.8 kB / 0.6713 GB, free: 8.797 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0105/0.7669, allocations: 5.852 MB / 0.677 GB, free: 2.992 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01027/0.7772, allocations: 7.248 MB / 0.6841 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002997/0.7802, allocations: 2.261 MB / 0.6863 GB, free: 9.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002579/0.7828, allocations: 1.871 MB / 0.6881 GB, free: 7.555 MB / 494.1 MB Notification: Performance of Backend: time 3.01e-07/0.7828, allocations: 4 kB / 0.6881 GB, free: 7.551 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01358/0.7964, allocations: 7.574 MB / 0.6955 GB, free: 20 kB / 494.1 MB Notification: Performance of SimCode: time 0.01675/0.8132, allocations: 11.82 MB / 0.707 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of Templates: time 0.284/1.097, allocations: 87.65 MB / 0.7926 GB, free: 150.2 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)