Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.00141/0.001411, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 192.3 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.76/1.76, allocations: 205.1 MB / 222.4 MB, free: 4.57 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.001175/0.001175, allocations: 55.91 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3096, allocations: 46.64 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01271/0.3224, allocations: 8.139 MB / 333.5 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007318/0.3298, allocations: 2.734 MB / 336.2 MB, free: 9.016 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.3318, allocations: 27.94 kB / 336.2 MB, free: 8.988 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001799/0.3336, allocations: 0.5356 MB / 336.8 MB, free: 8.449 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002064/0.3357, allocations: 440.4 kB / 337.2 MB, free: 8.016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009705/0.3366, allocations: 359.5 kB / 337.5 MB, free: 7.664 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002039/0.3387, allocations: 1.492 MB / 339 MB, free: 6.164 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009141/0.3396, allocations: 0.6088 MB / 339.6 MB, free: 5.535 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009539/0.3406, allocations: 0.5524 MB / 340.2 MB, free: 4.98 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007068/0.3413, allocations: 0.5987 MB / 340.8 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002018/0.3415, allocations: 140 kB / 340.9 MB, free: 4.242 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000424/0.3419, allocations: 184 kB / 341.1 MB, free: 4.062 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002628/0.3422, allocations: 290.9 kB / 341.4 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006479/0.3429, allocations: 0.6685 MB / 342.1 MB, free: 3.105 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001761/0.3446, allocations: 1.686 MB / 343.7 MB, free: 1.414 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3447, allocations: 8 kB / 343.8 MB, free: 1.406 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3447, allocations: 0 / 343.8 MB, free: 1.406 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.021e-05/0.3447, allocations: 3.938 kB / 343.8 MB, free: 1.402 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.002404/0.3471, allocations: 1.507 MB / 345.3 MB, free: 15.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.523e-05/0.3471, allocations: 8.031 kB / 345.3 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006108/0.3478, allocations: 191.2 kB / 345.5 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.3489, allocations: 0.7821 MB / 346.2 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7e-05/0.349, allocations: 78.12 kB / 346.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.3491, allocations: 99.91 kB / 346.4 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.3507, allocations: 0.9497 MB / 347.4 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.762e-05/0.3507, allocations: 7.906 kB / 347.4 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.221e-05/0.3508, allocations: 40 kB / 347.4 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.3509, allocations: 24 kB / 347.4 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.3521, allocations: 0.6402 MB / 348.1 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005384/0.3575, allocations: 4.127 MB / 352.2 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009548/0.3585, allocations: 423.9 kB / 352.6 MB, free: 8.168 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002936/0.3588, allocations: 169.4 kB / 352.8 MB, free: 8 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.3588, allocations: 7.75 kB / 352.8 MB, free: 7.992 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.3588, allocations: 38.55 kB / 352.8 MB, free: 7.945 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.734e-06/0.3589, allocations: 0 / 352.8 MB, free: 7.945 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002333/0.3612, allocations: 1.318 MB / 354.1 MB, free: 6.555 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.891e-05/0.3613, allocations: 114.7 kB / 354.3 MB, free: 6.418 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001223/0.3625, allocations: 0.8979 MB / 355.2 MB, free: 5.496 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.59e-05/0.3626, allocations: 37.7 kB / 355.2 MB, free: 5.453 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005359/0.3631, allocations: 0.5954 MB / 355.8 MB, free: 4.848 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.3632, allocations: 146 kB / 355.9 MB, free: 4.703 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/0.3634, allocations: 134.5 kB / 356.1 MB, free: 4.566 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3636, allocations: 330 kB / 356.4 MB, free: 4.238 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.3639, allocations: 176.8 kB / 356.6 MB, free: 4.062 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005725/0.3645, allocations: 497.7 kB / 357 MB, free: 3.426 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009691/0.3655, allocations: 0.6831 MB / 357.7 MB, free: 2.598 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/0.3655, allocations: 4 kB / 357.7 MB, free: 2.594 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001401/0.3669, allocations: 0.7504 MB / 358.5 MB, free: 1.832 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3669, allocations: 8 kB / 358.5 MB, free: 1.824 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.367, allocations: 8 kB / 358.5 MB, free: 1.816 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.3671, allocations: 33.31 kB / 358.5 MB, free: 1.781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005864/0.3677, allocations: 179.7 kB / 358.7 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.3691, allocations: 1.382 MB / 360.1 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007157/0.3698, allocations: 43.77 kB / 360.1 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/0.3699, allocations: 40 kB / 360.2 MB, free: 4 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007853/0.3707, allocations: 350.1 kB / 360.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006021/0.3713, allocations: 481.8 kB / 361 MB, free: 15.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008796/0.3722, allocations: 0.6598 MB / 361.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.189e-06/0.3722, allocations: 7.938 kB / 361.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00116/0.3733, allocations: 0.7158 MB / 362.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.3734, allocations: 12 kB / 362.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.3734, allocations: 8 kB / 362.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.8e-05/0.3735, allocations: 36.84 kB / 362.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/0.374, allocations: 160.2 kB / 362.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.3751, allocations: 1.398 MB / 364 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00059/0.3757, allocations: 35.89 kB / 364 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.193e-05/0.3758, allocations: 32 kB / 364 MB, free: 11.68 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.0002771/0.376, allocations: 239.8 kB / 364.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.3762, allocations: 98.86 kB / 364.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009117/0.3771, allocations: 427.2 kB / 364.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3771, allocations: 8 kB / 364.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3771, allocations: 0 / 364.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.3772, allocations: 3.984 kB / 364.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.3794, allocations: 1.382 MB / 366.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3794, allocations: 4 kB / 366.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000348/0.3797, allocations: 80.11 kB / 366.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.922e-05/0.3798, allocations: 20.86 kB / 366.3 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.372e-05/0.3799, allocations: 8 kB / 366.3 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.381, allocations: 1.378 MB / 367.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.381, allocations: 3.938 kB / 367.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.3821, allocations: 0.7173 MB / 368.4 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003756/0.3825, allocations: 207.9 kB / 368.6 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.3826, allocations: 8 kB / 368.6 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004351/0.383, allocations: 23.98 kB / 368.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.759e-05/0.3831, allocations: 27.95 kB / 368.7 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/0.3831, allocations: 16 kB / 368.7 MB, free: 6.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009592/0.3841, allocations: 0.6095 MB / 369.3 MB, free: 6.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.01e-07/0.3841, allocations: 0 / 369.3 MB, free: 6.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001384/0.3855, allocations: 348 kB / 369.6 MB, free: 5.789 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.0002715/0.3858, allocations: 131.1 kB / 369.7 MB, free: 5.652 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.3877, allocations: 0.9904 MB / 370.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/0.3877, allocations: 4 kB / 370.7 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000417/0.3881, allocations: 286.4 kB / 371 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.3894, allocations: 247.9 kB / 371.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003677/0.3931, allocations: 1.835 MB / 373.1 MB, free: 2.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008916/0.394, allocations: 1.021 MB / 374.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005573/0.3946, allocations: 127.4 kB / 374.2 MB, free: 1.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.3947, allocations: 55.44 kB / 374.3 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3947, allocations: 4 kB / 374.3 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of Templates: time 0.02469/0.4194, allocations: 10.64 MB / 384.9 MB, free: 6.328 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)