Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002045/0.002045, allocations: 194.5 kB / 16.14 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.1 MB / 222 MB, free: 4.715 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 51.94 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3175, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01014/0.3277, allocations: 8.1 MB / 332.8 MB, free: 11.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006994/0.3348, allocations: 2.714 MB / 335.5 MB, free: 9.293 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.3362, allocations: 32.94 kB / 335.5 MB, free: 9.262 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001678/0.3378, allocations: 469.4 kB / 336 MB, free: 8.801 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001475/0.3393, allocations: 377.3 kB / 336.4 MB, free: 8.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000902/0.3402, allocations: 323.6 kB / 336.7 MB, free: 8.113 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001511/0.3418, allocations: 1.417 MB / 338.1 MB, free: 6.688 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008121/0.3426, allocations: 0.5252 MB / 338.6 MB, free: 6.137 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000689/0.3433, allocations: 0.5016 MB / 339.1 MB, free: 5.633 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006358/0.3439, allocations: 0.5713 MB / 339.7 MB, free: 5.059 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.3441, allocations: 87.98 kB / 339.8 MB, free: 4.973 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003327/0.3444, allocations: 120 kB / 339.9 MB, free: 4.855 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.3446, allocations: 234.9 kB / 340.1 MB, free: 4.625 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005802/0.3452, allocations: 0.61 MB / 340.7 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001589/0.3468, allocations: 1.65 MB / 342.4 MB, free: 2.355 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.3468, allocations: 0 / 342.4 MB, free: 2.355 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3468, allocations: 0 / 342.4 MB, free: 2.355 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.12e-05/0.3469, allocations: 0 / 342.4 MB, free: 2.355 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002729/0.3496, allocations: 1.511 MB / 343.9 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.3497, allocations: 8.031 kB / 343.9 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006605/0.3503, allocations: 187.2 kB / 344.1 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001204/0.3515, allocations: 0.7783 MB / 344.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.615e-05/0.3516, allocations: 78.12 kB / 344.9 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.3518, allocations: 107.9 kB / 345 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.3535, allocations: 0.9497 MB / 346 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.113e-05/0.3535, allocations: 7.906 kB / 346 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.1e-05/0.3536, allocations: 43.98 kB / 346 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.643e-05/0.3537, allocations: 24 kB / 346.1 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.3549, allocations: 0.6402 MB / 346.7 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005492/0.3604, allocations: 4.131 MB / 350.8 MB, free: 9.535 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.3614, allocations: 431.9 kB / 351.3 MB, free: 9.105 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002926/0.3617, allocations: 161.4 kB / 351.4 MB, free: 8.945 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.3618, allocations: 7.75 kB / 351.4 MB, free: 8.938 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001032/0.3619, allocations: 38.56 kB / 351.5 MB, free: 8.891 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 3.497e-06/0.3619, allocations: 0 / 351.5 MB, free: 8.891 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002659/0.3646, allocations: 1.325 MB / 352.8 MB, free: 7.492 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.891e-05/0.3647, allocations: 106.8 kB / 352.9 MB, free: 7.363 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.3659, allocations: 0.9056 MB / 353.8 MB, free: 6.434 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.366, allocations: 29.7 kB / 353.8 MB, free: 6.398 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000495/0.3665, allocations: 0.5876 MB / 354.4 MB, free: 5.801 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.3666, allocations: 150 kB / 354.6 MB, free: 5.652 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.3668, allocations: 134.5 kB / 354.7 MB, free: 5.516 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.367, allocations: 338 kB / 355 MB, free: 5.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/0.3674, allocations: 176.8 kB / 355.2 MB, free: 5.004 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005824/0.368, allocations: 489.7 kB / 355.7 MB, free: 4.379 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009813/0.369, allocations: 0.6792 MB / 356.4 MB, free: 3.555 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.369, allocations: 4 kB / 356.4 MB, free: 3.551 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00129/0.3703, allocations: 0.7507 MB / 357.1 MB, free: 2.789 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.249e-05/0.3704, allocations: 12 kB / 357.1 MB, free: 2.777 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.3704, allocations: 11.98 kB / 357.1 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002066/0.3706, allocations: 32.86 kB / 357.2 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005594/0.3712, allocations: 171.7 kB / 357.3 MB, free: 2.562 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.3726, allocations: 1.292 MB / 358.6 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005872/0.3732, allocations: 39.89 kB / 358.7 MB, free: 1.102 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.408e-05/0.3732, allocations: 40.16 kB / 358.7 MB, free: 1.062 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000623/0.3739, allocations: 354.1 kB / 359 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005516/0.3744, allocations: 477.7 kB / 359.5 MB, free: 100 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008813/0.3753, allocations: 0.6676 MB / 360.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.937e-06/0.3753, allocations: 0 / 360.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00121/0.3765, allocations: 0.7197 MB / 360.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.3766, allocations: 8 kB / 360.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.3766, allocations: 12 kB / 360.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001079/0.3767, allocations: 37.41 kB / 361 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005148/0.3772, allocations: 167.7 kB / 361.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009578/0.3782, allocations: 1.288 MB / 362.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005767/0.3788, allocations: 35.95 kB / 362.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.306e-05/0.3788, allocations: 39.94 kB / 362.5 MB, free: 12.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000253/0.3791, allocations: 236.5 kB / 362.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/0.3792, allocations: 94.86 kB / 362.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009338/0.3802, allocations: 435.1 kB / 363.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.3802, allocations: 4 kB / 363.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3802, allocations: 4 kB / 363.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3802, allocations: 3.984 kB / 363.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.3824, allocations: 1.386 MB / 364.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3824, allocations: 0 / 364.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/0.3828, allocations: 79.89 kB / 364.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.747e-05/0.3829, allocations: 21.12 kB / 364.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/0.3829, allocations: 19.92 kB / 364.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.3841, allocations: 1.28 MB / 366 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3841, allocations: 3.938 kB / 366 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.3853, allocations: 0.7131 MB / 366.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003125/0.3856, allocations: 204 kB / 366.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.3857, allocations: 8 kB / 366.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000405/0.3861, allocations: 27.98 kB / 367 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.3862, allocations: 31.89 kB / 367 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.3863, allocations: 12 kB / 367 MB, free: 8.004 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009279/0.3872, allocations: 0.6095 MB / 367.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3872, allocations: 0 / 367.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00141/0.3886, allocations: 348 kB / 368 MB, free: 7.043 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,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 (39): * Single equations (assignments): 38 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003102/0.3889, allocations: 123.2 kB / 368.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.3906, allocations: 0.9683 MB / 369.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3906, allocations: 1.875 kB / 369.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004077/0.3911, allocations: 279 kB / 369.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.3924, allocations: 227.4 kB / 369.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.3959, allocations: 2.264 MB / 371.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006323/0.3965, allocations: 1.029 MB / 372.8 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005487/0.3971, allocations: 123.4 kB / 373 MB, free: 1.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.3973, allocations: 63.44 kB / 373 MB, free: 1.852 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3973, allocations: 0 / 373 MB, free: 1.852 MB / 302.1 MB Notification: Performance of Templates: time 0.02014/0.4174, allocations: 10.15 MB / 383.2 MB, free: 7.688 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)