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.0009137/0.0009134, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001785/0.001785, allocations: 168.7 kB / 15.95 MB, free: 204 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.621/1.621, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0006656/0.0006656, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3244, allocations: 47.59 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01943/0.3439, allocations: 13.34 MB / 339.8 MB, free: 6.121 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01384/0.3578, allocations: 5.325 MB / 345.1 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004743/0.3626, allocations: 67.69 kB / 345.2 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003002/0.3656, allocations: 0.7923 MB / 346 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002381/0.368, allocations: 496.2 kB / 346.5 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.3695, allocations: 475.4 kB / 347 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003357/0.3728, allocations: 2.421 MB / 349.4 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.3744, allocations: 0.9012 MB / 350.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001578/0.376, allocations: 0.7891 MB / 351.1 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009971/0.377, allocations: 0.8356 MB / 351.9 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.3772, allocations: 96 kB / 352 MB, free: 9.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.3774, allocations: 100 kB / 352.1 MB, free: 9.777 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003069/0.3777, allocations: 342.4 kB / 352.4 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004112/0.3781, allocations: 424.5 kB / 352.8 MB, free: 9.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002282/0.3804, allocations: 2.442 MB / 355.3 MB, free: 6.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3804, allocations: 0 / 355.3 MB, free: 6.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3804, allocations: 8 kB / 355.3 MB, free: 6.562 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.415e-05/0.3805, allocations: 0 / 355.3 MB, free: 6.562 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.003948/0.3844, allocations: 2.127 MB / 357.4 MB, free: 4.379 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3845, allocations: 12.03 kB / 357.4 MB, free: 4.367 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003879/0.3849, allocations: 260.9 kB / 357.7 MB, free: 4.109 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/0.3866, allocations: 1.179 MB / 358.9 MB, free: 2.875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002652/0.3869, allocations: 260.8 kB / 359.1 MB, free: 2.602 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002357/0.3872, allocations: 195.9 kB / 359.3 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003411/0.3906, allocations: 1.93 MB / 361.2 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.405e-05/0.3906, allocations: 15.84 kB / 361.3 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.3908, allocations: 76 kB / 361.3 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.486e-05/0.3908, allocations: 48 kB / 361.4 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003437/0.3943, allocations: 1.63 MB / 363 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/0.4047, allocations: 7.286 MB / 370.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/0.4073, allocations: 1.261 MB / 371.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009859/0.4083, allocations: 472.3 kB / 372 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.928e-05/0.4084, allocations: 16.98 kB / 372 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.4085, allocations: 39.56 kB / 372.1 MB, free: 5.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 3.446e-06/0.4085, allocations: 4 kB / 372.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.02921/0.4377, allocations: 8.822 MB / 380.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.4378, allocations: 60.41 kB / 381 MB, free: 12.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/0.4396, allocations: 1.24 MB / 382.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.619e-05/0.4397, allocations: 41.7 kB / 382.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000747/0.4404, allocations: 0.9939 MB / 383.2 MB, free: 9.852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003281/0.4408, allocations: 394.3 kB / 383.6 MB, free: 9.461 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.325e-05/0.4409, allocations: 32 kB / 383.6 MB, free: 9.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.441, allocations: 369.9 kB / 384 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001825/0.4429, allocations: 0.7652 MB / 384.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002219/0.4451, allocations: 1.226 MB / 386 MB, free: 6.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001846/0.447, allocations: 0.8105 MB / 386.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.447, allocations: 4 kB / 386.8 MB, free: 6.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004557/0.4515, allocations: 2.227 MB / 389 MB, free: 3.797 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003573/0.4519, allocations: 0.5193 MB / 389.6 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.4519, allocations: 16 kB / 389.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.4521, allocations: 48.78 kB / 389.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001694/0.4538, allocations: 435.4 kB / 390 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.4549, allocations: 1.284 MB / 391.3 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.4562, allocations: 160 kB / 391.5 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.4563, allocations: 68 kB / 391.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.129e-06/0.4563, allocations: 4 kB / 391.6 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003926/0.4603, allocations: 1.962 MB / 393.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.4603, allocations: 16 kB / 393.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.158e-05/0.4604, allocations: 40.84 kB / 393.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/0.4619, allocations: 415.9 kB / 394 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009064/0.4628, allocations: 1.288 MB / 395.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.4639, allocations: 140 kB / 395.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.464, allocations: 64 kB / 395.5 MB, free: 12.87 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.0008749/0.4649, allocations: 496.6 kB / 395.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/0.4651, allocations: 158 kB / 396.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003683/0.4688, allocations: 1.675 MB / 397.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.4689, allocations: 15.94 kB / 397.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4689, allocations: 3.953 kB / 397.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.4689, allocations: 3.984 kB / 397.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006818/0.4757, allocations: 3.92 MB / 401.7 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.4757, allocations: 8 kB / 401.7 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.4769, allocations: 284.2 kB / 402 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.824e-05/0.477, allocations: 36.84 kB / 402 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.965e-05/0.477, allocations: 32 kB / 402.1 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009164/0.478, allocations: 1.28 MB / 403.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.217e-05/0.478, allocations: 15.88 kB / 403.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004328/0.4823, allocations: 2.37 MB / 405.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005167/0.4829, allocations: 303 kB / 406 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/0.483, allocations: 35.98 kB / 406.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008392/0.4839, allocations: 139.9 kB / 406.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002244/0.4841, allocations: 128.2 kB / 406.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.507e-05/0.4842, allocations: 40 kB / 406.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001178/0.4854, allocations: 0.8025 MB / 407.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4854, allocations: 0 / 407.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00195/0.4873, allocations: 0.6094 MB / 407.8 MB, free: 15.96 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.0002188/0.4876, allocations: 154.7 kB / 407.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00616/0.4937, allocations: 2.931 MB / 410.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/0.4938, allocations: 4 kB / 410.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.4953, allocations: 0.7538 MB / 411.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00179/0.4971, allocations: 345.1 kB / 412 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007047/0.5042, allocations: 4.302 MB / 416.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.5053, allocations: 1.353 MB / 417.6 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001665/0.507, allocations: 296.4 kB / 417.9 MB, free: 5.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003752/0.5074, allocations: 103.4 kB / 418 MB, free: 5.504 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5074, allocations: 0 / 418 MB, free: 5.504 MB / 350.1 MB Notification: Performance of Templates: time 0.03035/0.5378, allocations: 16.38 MB / 434.4 MB, free: 5.102 MB / 366.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)