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.01216/0.01217, allocations: 104.7 kB / 15.74 MB, free: 6.035 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.001347/0.001347, allocations: 200.3 kB / 16.68 MB, free: 5.953 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.883/1.883, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001274/0.001274, allocations: 51.42 kB / 326.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1305, allocations: 46.62 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.0186/0.1491, allocations: 15.17 MB / 388.4 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01352/0.1627, allocations: 5.673 MB / 394 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00492/0.1677, allocations: 75.62 kB / 394.1 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004075/0.1718, allocations: 0.9703 MB / 395.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003433/0.1753, allocations: 0.6237 MB / 395.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001928/0.1772, allocations: 0.7452 MB / 396.4 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004702/0.182, allocations: 2.745 MB / 399.2 MB, free: 7.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001964/0.1839, allocations: 1.284 MB / 400.5 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001884/0.1858, allocations: 1.039 MB / 401.5 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.1871, allocations: 1.073 MB / 402.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003085/0.1874, allocations: 264 kB / 402.8 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003284/0.1877, allocations: 260 kB / 403.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004409/0.1882, allocations: 0.5294 MB / 403.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.1893, allocations: 1.151 MB / 404.8 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003174/0.1925, allocations: 3.165 MB / 407.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.14e-05/0.1925, allocations: 4 kB / 408 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1925, allocations: 0 / 408 MB, free: 14.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.991e-05/0.1926, allocations: 4 kB / 408 MB, free: 14.34 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.004828/0.1974, allocations: 2.458 MB / 410.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.1974, allocations: 11.89 kB / 410.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004056/0.1979, allocations: 253.9 kB / 410.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002189/0.2001, allocations: 1.272 MB / 411.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003173/0.2004, allocations: 249.4 kB / 412.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002899/0.2007, allocations: 204 kB / 412.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00355/0.2042, allocations: 1.911 MB / 414.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.607e-05/0.2043, allocations: 11.98 kB / 414.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/0.2045, allocations: 72 kB / 414.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.006e-05/0.2045, allocations: 48 kB / 414.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003461/0.208, allocations: 1.571 MB / 416 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.2191, allocations: 7.161 MB / 423.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002774/0.2219, allocations: 1.21 MB / 424.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.223, allocations: 448.3 kB / 424.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.42e-05/0.2231, allocations: 28.91 kB / 424.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.2231, allocations: 43.5 kB / 424.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=83): time 3.016e-06/0.2231, allocations: 0 / 424.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.03829/0.2614, allocations: 7.871 MB / 432.7 MB, free: 4.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.2615, allocations: 68.34 kB / 432.8 MB, free: 4.719 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003271/0.2648, allocations: 1.236 MB / 434.1 MB, free: 3.473 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002053/0.265, allocations: 41.7 kB / 434.1 MB, free: 3.426 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.2663, allocations: 0.9938 MB / 435.1 MB, free: 2.418 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008109/0.2671, allocations: 390.4 kB / 435.5 MB, free: 2.031 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006702/0.2678, allocations: 267.4 kB / 435.7 MB, free: 1.766 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.268, allocations: 305.1 kB / 436 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002898/0.2709, allocations: 0.7387 MB / 436.8 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003464/0.2744, allocations: 1.187 MB / 438 MB, free: 15.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006828/0.2812, allocations: 1.816 MB / 439.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/0.2813, allocations: 4 kB / 439.8 MB, free: 13.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.00949/0.2908, allocations: 2.129 MB / 441.9 MB, free: 11.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.2909, allocations: 12 kB / 441.9 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.536e-05/0.2909, allocations: 19.98 kB / 441.9 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002556/0.2913, allocations: 49.3 kB / 442 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003311/0.2946, allocations: 407.4 kB / 442.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.2967, allocations: 1.382 MB / 443.8 MB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003312/0.3, allocations: 139.9 kB / 443.9 MB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002933/0.3003, allocations: 64 kB / 444 MB, free: 8.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004881/0.3052, allocations: 0.988 MB / 444.9 MB, free: 7.957 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003761/0.309, allocations: 1.15 MB / 446.1 MB, free: 6.602 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006529/0.3156, allocations: 1.736 MB / 447.8 MB, free: 4.656 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.713e-05/0.3156, allocations: 4 kB / 447.8 MB, free: 4.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.008661/0.3243, allocations: 2.063 MB / 449.9 MB, free: 2.559 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.3244, allocations: 16.06 kB / 449.9 MB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.695e-05/0.3245, allocations: 12 kB / 449.9 MB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001932/0.3247, allocations: 44.83 kB / 450 MB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00318/0.3279, allocations: 399.3 kB / 450.4 MB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.3295, allocations: 1.374 MB / 451.7 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002869/0.3324, allocations: 128 kB / 451.9 MB, free: 464 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/0.3326, allocations: 67.98 kB / 451.9 MB, free: 396 kB / 382.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.0006893/0.3333, allocations: 279.6 kB / 452.2 MB, free: 108 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3165/0.6499, allocations: 156 kB / 452.4 MB, free: 71.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00533/0.6553, allocations: 1.577 MB / 453.9 MB, free: 71.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/0.6553, allocations: 10.84 kB / 453.9 MB, free: 71.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.6553, allocations: 0.7812 kB / 453.9 MB, free: 71.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.767e-05/0.6554, allocations: 6.453 kB / 453.9 MB, free: 71.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008826/0.6642, allocations: 3.768 MB / 457.7 MB, free: 69.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.882e-05/0.6643, allocations: 9.938 kB / 457.7 MB, free: 69.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.6656, allocations: 255.3 kB / 458 MB, free: 69.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000166/0.6657, allocations: 37.92 kB / 458 MB, free: 69.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.748e-05/0.6658, allocations: 34.8 kB / 458 MB, free: 69.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009255/0.6668, allocations: 1.37 MB / 459.4 MB, free: 68.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.578e-05/0.6668, allocations: 15.22 kB / 459.4 MB, free: 68.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005498/0.6723, allocations: 2.225 MB / 461.7 MB, free: 67.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007986/0.6731, allocations: 306.2 kB / 462 MB, free: 66.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.6733, allocations: 36.56 kB / 462 MB, free: 66.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.6744, allocations: 103 kB / 462.1 MB, free: 66.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003022/0.6747, allocations: 130.4 kB / 462.2 MB, free: 66.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.199e-05/0.6748, allocations: 44.41 kB / 462.3 MB, free: 66.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001596/0.6764, allocations: 0.8093 MB / 463.1 MB, free: 66.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6764, allocations: 0 / 463.1 MB, free: 66.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002669/0.6791, allocations: 0.6085 MB / 463.7 MB, free: 66.5 MB / 382.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.0002714/0.6794, allocations: 150 kB / 463.8 MB, free: 66.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007239/0.6866, allocations: 2.822 MB / 466.6 MB, free: 65.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.112e-05/0.6867, allocations: 2.75 kB / 466.7 MB, free: 65.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002025/0.6887, allocations: 0.7059 MB / 467.4 MB, free: 65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/0.6912, allocations: 368.5 kB / 467.7 MB, free: 64.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006679/0.6979, allocations: 3.535 MB / 471.3 MB, free: 62.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008773/0.6988, allocations: 1.35 MB / 472.6 MB, free: 62.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00148/0.7003, allocations: 303.3 kB / 472.9 MB, free: 61.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003671/0.7007, allocations: 108.6 kB / 473 MB, free: 61.93 MB / 382.1 MB Notification: Performance of SimCode: time 1.994e-06/0.7007, allocations: 0 / 473 MB, free: 61.93 MB / 382.1 MB Notification: Performance of Templates: time 0.03069/0.7314, allocations: 18.34 MB / 491.3 MB, free: 45.39 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)