Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001717/0.001717, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002726/0.002726, allocations: 190.3 kB / 16.25 MB, free: 6.637 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.905/1.905, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.001319/0.001319, allocations: 43.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3447, allocations: 46.62 MB / 324.8 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01823/0.363, allocations: 15.02 MB / 339.9 MB, free: 5.039 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01375/0.3768, allocations: 5.525 MB / 345.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00502/0.3818, allocations: 71.62 kB / 345.5 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003902/0.3858, allocations: 0.8547 MB / 346.3 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003765/0.3896, allocations: 0.5236 MB / 346.8 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002416/0.392, allocations: 0.6596 MB / 347.5 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004918/0.397, allocations: 2.73 MB / 350.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001948/0.3989, allocations: 1.292 MB / 351.5 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001783/0.4007, allocations: 1.058 MB / 352.6 MB, free: 8.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001139/0.4019, allocations: 1.073 MB / 353.6 MB, free: 7.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003079/0.4022, allocations: 260 kB / 353.9 MB, free: 6.914 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003358/0.4025, allocations: 260 kB / 354.2 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004454/0.403, allocations: 0.5333 MB / 354.7 MB, free: 6.125 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001027/0.404, allocations: 1.17 MB / 355.9 MB, free: 4.949 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002917/0.407, allocations: 3.091 MB / 359 MB, free: 1.848 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.407, allocations: 4 kB / 359 MB, free: 1.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.407, allocations: 0 / 359 MB, free: 1.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.132e-05/0.407, allocations: 0 / 359 MB, free: 1.844 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.004339/0.4114, allocations: 2.462 MB / 361.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.4114, allocations: 11.89 kB / 361.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000356/0.4118, allocations: 254 kB / 361.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001825/0.4136, allocations: 1.222 MB / 362.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002874/0.4139, allocations: 257.3 kB / 363.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002474/0.4142, allocations: 196 kB / 363.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00341/0.4176, allocations: 1.915 MB / 365.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.569e-05/0.4177, allocations: 7.906 kB / 365.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.4178, allocations: 80 kB / 365.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-05/0.4179, allocations: 48 kB / 365.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003257/0.4211, allocations: 1.583 MB / 367 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009765/0.4309, allocations: 7.232 MB / 374.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002486/0.4334, allocations: 1.21 MB / 375.4 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000923/0.4344, allocations: 460.1 kB / 375.9 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.176e-05/0.4345, allocations: 13 kB / 375.9 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.4345, allocations: 47.56 kB / 375.9 MB, free: 280 kB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 2.565e-06/0.4345, allocations: 0 / 375.9 MB, free: 280 kB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.03127/0.4658, allocations: 7.863 MB / 383.8 MB, free: 8.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.4659, allocations: 64.41 kB / 383.8 MB, free: 8.199 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001777/0.4676, allocations: 1.24 MB / 385.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.723e-05/0.4678, allocations: 45.7 kB / 385.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007659/0.4685, allocations: 0.9861 MB / 386.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003735/0.4689, allocations: 394.4 kB / 386.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004688/0.4694, allocations: 275.3 kB / 386.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4695, allocations: 305.1 kB / 387.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001749/0.4713, allocations: 0.7348 MB / 387.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.4734, allocations: 1.187 MB / 389 MB, free: 2.801 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003539/0.4769, allocations: 1.805 MB / 390.8 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.477, allocations: 4 kB / 390.8 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004965/0.4819, allocations: 2.141 MB / 392.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.482, allocations: 12.5 kB / 393 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.482, allocations: 16 kB / 393 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.4822, allocations: 40.84 kB / 393 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/0.4839, allocations: 419.3 kB / 393.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/0.485, allocations: 1.375 MB / 394.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.4865, allocations: 135.9 kB / 394.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.4866, allocations: 64 kB / 395 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002365/0.489, allocations: 0.9803 MB / 396 MB, free: 11.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001903/0.4909, allocations: 1.154 MB / 397.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003276/0.4942, allocations: 1.736 MB / 398.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.173e-06/0.4942, allocations: 4 kB / 398.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004375/0.4986, allocations: 2.063 MB / 400.9 MB, free: 6.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.4986, allocations: 12 kB / 400.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/0.4987, allocations: 16 kB / 401 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001142/0.4988, allocations: 44.78 kB / 401 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.5004, allocations: 407.8 kB / 401.4 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009323/0.5014, allocations: 1.378 MB / 402.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.5028, allocations: 124 kB / 402.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.5029, allocations: 64 kB / 403 MB, free: 3.863 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.0004972/0.5034, allocations: 283.6 kB / 403.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002412/0.5037, allocations: 158 kB / 403.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004031/0.5077, allocations: 1.578 MB / 405 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-05/0.5077, allocations: 8 kB / 405 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.5077, allocations: 0 / 405 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.5078, allocations: 11.97 kB / 405 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008624/0.5164, allocations: 3.765 MB / 408.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/0.5165, allocations: 8 kB / 408.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.5177, allocations: 259.6 kB / 409 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000129/0.5178, allocations: 36.98 kB / 409 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.913e-05/0.5179, allocations: 31.98 kB / 409.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/0.5194, allocations: 1.378 MB / 410.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-05/0.5194, allocations: 19.94 kB / 410.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005158/0.5246, allocations: 2.23 MB / 412.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000738/0.5253, allocations: 303.1 kB / 413 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.5255, allocations: 32 kB / 413 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009611/0.5265, allocations: 103.9 kB / 413.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002986/0.5268, allocations: 128.2 kB / 413.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-05/0.5269, allocations: 36 kB / 413.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001458/0.5283, allocations: 0.8181 MB / 414.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5284, allocations: 4 kB / 414.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002555/0.5309, allocations: 0.6055 MB / 414.7 MB, free: 7.516 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.0002831/0.5312, allocations: 150.8 kB / 414.9 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006922/0.5381, allocations: 2.869 MB / 417.7 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/0.5382, allocations: 12.06 kB / 417.8 MB, free: 4.453 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001933/0.5401, allocations: 0.699 MB / 418.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.5422, allocations: 368.9 kB / 418.8 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008446/0.5507, allocations: 4.417 MB / 423.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001495/0.5522, allocations: 1.345 MB / 424.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0019/0.5541, allocations: 284.5 kB / 424.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003971/0.5545, allocations: 107.4 kB / 425 MB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 2.084e-06/0.5545, allocations: 0 / 425 MB, free: 13.04 MB / 366.1 MB Notification: Performance of Templates: time 0.03696/0.5915, allocations: 17.76 MB / 442.7 MB, free: 11.26 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)