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.001062/0.001062, allocations: 98.69 kB / 15.05 MB, free: 1.105 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.001141/0.001141, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.831/1.831, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.000505/0.0005053, allocations: 10.81 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2805, allocations: 47.58 MB / 326.4 MB, free: 1.625 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01571/0.2963, allocations: 12.36 MB / 338.8 MB, free: 7.27 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.3093, allocations: 5.498 MB / 344.3 MB, free: 1.762 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004686/0.314, allocations: 71.62 kB / 344.4 MB, free: 1.691 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004334/0.3184, allocations: 0.8742 MB / 345.3 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005197/0.3236, allocations: 0.9384 MB / 346.2 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002986/0.3266, allocations: 0.6671 MB / 346.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005177/0.3318, allocations: 1.794 MB / 348.7 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002361/0.3342, allocations: 0.8934 MB / 349.5 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001999/0.3362, allocations: 0.8013 MB / 350.3 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002071/0.3383, allocations: 0.8163 MB / 351.2 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003882/0.3387, allocations: 99.94 kB / 351.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004416/0.3392, allocations: 96 kB / 351.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000331/0.3395, allocations: 334.5 kB / 351.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006691/0.3402, allocations: 420.5 kB / 352.1 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002965/0.3432, allocations: 2.427 MB / 354.5 MB, free: 7.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3432, allocations: 0 / 354.5 MB, free: 7.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.3432, allocations: 0 / 354.5 MB, free: 7.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.352e-05/0.3433, allocations: 0 / 354.5 MB, free: 7.48 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.005328/0.3486, allocations: 2.131 MB / 356.6 MB, free: 5.293 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/0.3487, allocations: 8.031 kB / 356.7 MB, free: 5.285 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005378/0.3492, allocations: 257 kB / 356.9 MB, free: 5.031 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/0.3516, allocations: 1.179 MB / 358.1 MB, free: 3.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003287/0.3519, allocations: 260.8 kB / 358.3 MB, free: 3.523 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002737/0.3522, allocations: 191.9 kB / 358.5 MB, free: 3.336 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004037/0.3562, allocations: 1.926 MB / 360.5 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.11e-05/0.3563, allocations: 4 kB / 360.5 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001553/0.3565, allocations: 76 kB / 360.5 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.95e-05/0.3565, allocations: 44 kB / 360.6 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003877/0.3604, allocations: 1.63 MB / 362.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01183/0.3722, allocations: 7.282 MB / 369.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.375, allocations: 1.257 MB / 370.7 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.169e-05/0.3751, allocations: 13 kB / 370.8 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.3751, allocations: 55.48 kB / 370.8 MB, free: 6.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 4.108e-06/0.3752, allocations: 0 / 370.8 MB, free: 6.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.03281/0.408, allocations: 8.815 MB / 379.6 MB, free: 13.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/0.4081, allocations: 64.41 kB / 379.7 MB, free: 13.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002469/0.4106, allocations: 1.221 MB / 380.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.4107, allocations: 49.7 kB / 381 MB, free: 12.28 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008648/0.4116, allocations: 0.9939 MB / 382 MB, free: 11.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000392/0.412, allocations: 390.4 kB / 382.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.093e-05/0.4121, allocations: 28 kB / 382.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.4123, allocations: 369.8 kB / 382.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/0.4143, allocations: 0.7691 MB / 383.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002278/0.4166, allocations: 1.226 MB / 384.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002007/0.4186, allocations: 0.8066 MB / 385.5 MB, free: 7.488 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.4186, allocations: 4 kB / 385.5 MB, free: 7.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005148/0.4238, allocations: 2.235 MB / 387.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002729/0.4265, allocations: 5.827 MB / 393.6 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.823e-05/0.4266, allocations: 20 kB / 393.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002135/0.4268, allocations: 48.8 kB / 393.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001932/0.4287, allocations: 439.4 kB / 394.1 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.4299, allocations: 1.284 MB / 395.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.4318, allocations: 168 kB / 395.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002081/0.432, allocations: 64 kB / 395.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.432, allocations: 4 kB / 395.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004672/0.4367, allocations: 1.962 MB / 397.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.783e-05/0.4368, allocations: 16 kB / 397.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001167/0.4369, allocations: 37.36 kB / 397.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001738/0.4387, allocations: 423.3 kB / 398 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.4398, allocations: 1.284 MB / 399.3 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/0.4416, allocations: 148.1 kB / 399.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.4418, allocations: 64 kB / 399.5 MB, free: 8.805 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.moving[1],kinematicPTP.noWphase,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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00139/0.4432, allocations: 484.5 kB / 400 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004679/0.4436, allocations: 162 kB / 400.1 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004565/0.4482, allocations: 1.683 MB / 401.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.095e-05/0.4483, allocations: 11.95 kB / 401.8 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.4483, allocations: 4 kB / 401.8 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.4483, allocations: 3.984 kB / 401.9 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009101/0.4574, allocations: 3.908 MB / 405.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.678e-05/0.4575, allocations: 9 kB / 405.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.4587, allocations: 287.6 kB / 406 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001171/0.4588, allocations: 32.84 kB / 406.1 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.681e-05/0.459, allocations: 32 kB / 406.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009508/0.4599, allocations: 1.288 MB / 407.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/0.4599, allocations: 11.94 kB / 407.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005562/0.4655, allocations: 2.986 MB / 410.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008795/0.4664, allocations: 303 kB / 410.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004032/0.4668, allocations: 39.98 kB / 410.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.4681, allocations: 135.8 kB / 410.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002716/0.4684, allocations: 132.2 kB / 411 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.405e-05/0.4685, allocations: 40 kB / 411 MB, free: 12.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00162/0.4701, allocations: 0.7986 MB / 411.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4701, allocations: 0 / 411.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002762/0.4729, allocations: 0.6093 MB / 412.4 MB, free: 10.99 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002856/0.4732, allocations: 154.7 kB / 412.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007115/0.4803, allocations: 2.93 MB / 415.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/0.4803, allocations: 1 kB / 415.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.4823, allocations: 0.7537 MB / 416.3 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.4847, allocations: 313.2 kB / 416.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009249/0.494, allocations: 4.306 MB / 420.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001885/0.4959, allocations: 1.388 MB / 422.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002251/0.4982, allocations: 288.5 kB / 422.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006967/0.4989, allocations: 99.44 kB / 422.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4989, allocations: 4 kB / 422.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of Templates: time 0.03724/0.5362, allocations: 16.28 MB / 438.9 MB, free: 240 kB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: