Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, 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.001275/0.001275, allocations: 187.9 kB / 16.13 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 1.795/1.795, allocations: 205.1 MB / 222 MB, free: 4.754 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.001283/0.001283, allocations: 51.92 kB / 278 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3635, allocations: 46.63 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01654/0.3801, allocations: 15.01 MB / 339.7 MB, free: 5.09 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01163/0.3918, allocations: 5.537 MB / 345.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003574/0.3954, allocations: 75.62 kB / 345.3 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002896/0.3984, allocations: 0.8352 MB / 346.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003139/0.4015, allocations: 0.5158 MB / 346.7 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002181/0.4037, allocations: 0.6557 MB / 347.3 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003893/0.4076, allocations: 2.581 MB / 349.9 MB, free: 10.86 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001866/0.4095, allocations: 1.153 MB / 351 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00159/0.4111, allocations: 0.9254 MB / 352 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001145/0.4123, allocations: 1.007 MB / 353 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002694/0.4125, allocations: 148 kB / 353.1 MB, free: 7.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002866/0.4128, allocations: 144 kB / 353.3 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003823/0.4132, allocations: 430.2 kB / 353.7 MB, free: 7.012 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009626/0.4142, allocations: 1.053 MB / 354.7 MB, free: 5.953 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002285/0.4165, allocations: 2.998 MB / 357.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4165, allocations: 0 / 357.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4165, allocations: 0 / 357.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.238e-05/0.4166, allocations: 0 / 357.7 MB, free: 2.945 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.004863/0.4215, allocations: 2.462 MB / 360.2 MB, free: 436 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.627e-05/0.4215, allocations: 8.031 kB / 360.2 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003917/0.4219, allocations: 254 kB / 360.5 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.4237, allocations: 1.229 MB / 361.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002663/0.424, allocations: 257.3 kB / 361.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002428/0.4243, allocations: 192 kB / 362.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003273/0.4275, allocations: 1.919 MB / 364 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.208e-05/0.4276, allocations: 7.906 kB / 364 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001536/0.4278, allocations: 80 kB / 364.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.206e-05/0.4278, allocations: 48 kB / 364.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003528/0.4313, allocations: 1.571 MB / 365.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009826/0.4412, allocations: 7.227 MB / 373 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002615/0.4438, allocations: 1.21 MB / 374.2 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.4448, allocations: 452.3 kB / 374.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.789e-05/0.4449, allocations: 20.92 kB / 374.6 MB, free: 1.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.445, allocations: 47.55 kB / 374.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 2.685e-06/0.445, allocations: 0 / 374.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.03062/0.4756, allocations: 7.861 MB / 382.5 MB, free: 9.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.4757, allocations: 68.41 kB / 382.6 MB, free: 9.316 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002325/0.4781, allocations: 1.24 MB / 383.9 MB, free: 8.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.4782, allocations: 45.64 kB / 383.9 MB, free: 8.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009158/0.4791, allocations: 0.99 MB / 384.9 MB, free: 7.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004299/0.4796, allocations: 390.4 kB / 385.3 MB, free: 6.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005411/0.4801, allocations: 271.3 kB / 385.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.4803, allocations: 305.1 kB / 385.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/0.4821, allocations: 0.7309 MB / 386.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/0.4844, allocations: 1.191 MB / 387.8 MB, free: 3.922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003654/0.488, allocations: 1.801 MB / 389.6 MB, free: 1.914 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-05/0.4881, allocations: 4 kB / 389.6 MB, free: 1.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004792/0.4929, allocations: 2.145 MB / 391.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.587e-05/0.4929, allocations: 12 kB / 391.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.041e-05/0.493, allocations: 19.94 kB / 391.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001922/0.4932, allocations: 40.84 kB / 391.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001746/0.4949, allocations: 419.8 kB / 392.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.496, allocations: 1.288 MB / 393.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.4976, allocations: 136 kB / 393.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.4978, allocations: 64 kB / 393.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002246/0.5, allocations: 0.9841 MB / 394.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001979/0.502, allocations: 1.15 MB / 395.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003311/0.5054, allocations: 1.732 MB / 397.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.209e-05/0.5054, allocations: 4 kB / 397.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004389/0.5098, allocations: 2.063 MB / 399.6 MB, free: 7.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.5098, allocations: 15.94 kB / 399.6 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.108e-05/0.5098, allocations: 16 kB / 399.6 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001043/0.51, allocations: 37.34 kB / 399.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/0.5117, allocations: 403.3 kB / 400.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.5132, allocations: 1.284 MB / 401.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.5149, allocations: 115.9 kB / 401.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.515, allocations: 64 kB / 401.5 MB, free: 5.195 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.noWphase,kinematicPTP.moving[1],speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * 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.000563/0.5156, allocations: 292.3 kB / 401.8 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004003/0.516, allocations: 158 kB / 402 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003932/0.5199, allocations: 1.581 MB / 403.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.52, allocations: 12 kB / 403.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.52, allocations: 0 / 403.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.52, allocations: 7.922 kB / 403.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008667/0.5287, allocations: 3.765 MB / 407.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.412e-05/0.5287, allocations: 8.219 kB / 407.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.5299, allocations: 263.6 kB / 407.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.5301, allocations: 36.84 kB / 407.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.5302, allocations: 32 kB / 407.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009783/0.5312, allocations: 1.272 MB / 408.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/0.5312, allocations: 11.94 kB / 408.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00473/0.5359, allocations: 2.241 MB / 411.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007987/0.5368, allocations: 311 kB / 411.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003922/0.5372, allocations: 28 kB / 411.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/0.5383, allocations: 119.8 kB / 411.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/0.5386, allocations: 120.2 kB / 411.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.327e-05/0.5387, allocations: 39.98 kB / 411.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001793/0.5405, allocations: 0.8103 MB / 412.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5405, allocations: 0 / 412.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003157/0.5437, allocations: 0.6094 MB / 413.2 MB, free: 8.934 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * 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.0003815/0.5441, allocations: 162.8 kB / 413.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007134/0.5512, allocations: 2.797 MB / 416.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/0.5513, allocations: 0 / 416.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.5533, allocations: 0.7081 MB / 416.9 MB, free: 5.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/0.5564, allocations: 337.2 kB / 417.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009163/0.5656, allocations: 4.409 MB / 421.6 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001591/0.5672, allocations: 1.345 MB / 423 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001964/0.5692, allocations: 292.4 kB / 423.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006055/0.5698, allocations: 99.44 kB / 423.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of SimCode: time 2.325e-06/0.5698, allocations: 0 / 423.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of Templates: time 0.04017/0.61, allocations: 17.01 MB / 440.4 MB, free: 13.53 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)