Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001275/0.001275, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.001136/0.001136, allocations: 198.9 kB / 18 MB, free: 5.082 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.808/1.808, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001404/0.001404, allocations: 51.92 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1437, allocations: 46.62 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.2929/0.4366, allocations: 15.17 MB / 389.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.4525, allocations: 5.679 MB / 395.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007251/0.4599, allocations: 70.53 kB / 395.4 MB, free: 280 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006071/0.4661, allocations: 0.962 MB / 396.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005846/0.472, allocations: 0.6259 MB / 397 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00302/0.475, allocations: 0.7418 MB / 397.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006604/0.4816, allocations: 2.746 MB / 400.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002675/0.4843, allocations: 1.285 MB / 401.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002841/0.4872, allocations: 1.075 MB / 402.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001957/0.4892, allocations: 1.067 MB / 403.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004428/0.4897, allocations: 265.7 kB / 404.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005556/0.4902, allocations: 262.7 kB / 404.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005734/0.4908, allocations: 0.5283 MB / 405 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.4922, allocations: 1.16 MB / 406.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004324/0.4965, allocations: 3.167 MB / 409.3 MB, free: 8.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.4966, allocations: 0 / 409.3 MB, free: 8.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.135e-06/0.4966, allocations: 1.281 kB / 409.3 MB, free: 8.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.868e-05/0.4967, allocations: 0 / 409.3 MB, free: 8.336 MB / 334.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.006392/0.5031, allocations: 2.459 MB / 411.8 MB, free: 6.559 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.5032, allocations: 14.33 kB / 411.8 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006197/0.5038, allocations: 258.8 kB / 412 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00262/0.5064, allocations: 1.263 MB / 413.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003466/0.5068, allocations: 255.8 kB / 413.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003119/0.5071, allocations: 199.2 kB / 413.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004708/0.5118, allocations: 1.912 MB / 415.7 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.054e-05/0.5119, allocations: 6.281 kB / 415.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001928/0.5121, allocations: 77.03 kB / 415.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.292e-05/0.5122, allocations: 46.28 kB / 415.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003909/0.5161, allocations: 1.576 MB / 417.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01267/0.5288, allocations: 7.159 MB / 424.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003016/0.5319, allocations: 1.21 MB / 425.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.533, allocations: 460.3 kB / 426.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.001e-05/0.5331, allocations: 9 kB / 426.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.174e-05/0.5332, allocations: 43.56 kB / 426.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=83): time 3.687e-06/0.5332, allocations: 0 / 426.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.04097/0.5742, allocations: 7.873 MB / 434.1 MB, free: 3.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.02e-05/0.5743, allocations: 64.41 kB / 434.2 MB, free: 3.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002681/0.577, allocations: 1.24 MB / 435.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001563/0.5772, allocations: 53.64 kB / 435.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009629/0.5781, allocations: 0.99 MB / 436.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004684/0.5786, allocations: 394.3 kB / 436.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005942/0.5792, allocations: 271.3 kB / 437.1 MB, free: 228 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5794, allocations: 305.1 kB / 437.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002543/0.5819, allocations: 0.7348 MB / 438.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002995/0.585, allocations: 1.187 MB / 439.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004633/0.5896, allocations: 1.809 MB / 441.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-05/0.5897, allocations: 4 kB / 441.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.007433/0.5971, allocations: 2.145 MB / 443.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.499e-05/0.5972, allocations: 12 kB / 443.3 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.922e-05/0.5972, allocations: 12 kB / 443.3 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002708/0.5975, allocations: 40.84 kB / 443.3 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002555/0.6001, allocations: 419.6 kB / 443.7 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/0.6017, allocations: 1.374 MB / 445.1 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002546/0.6043, allocations: 139.9 kB / 445.3 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002333/0.6046, allocations: 71.98 kB / 445.3 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003548/0.6081, allocations: 0.9763 MB / 446.3 MB, free: 6.422 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002902/0.611, allocations: 1.158 MB / 447.5 MB, free: 5.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005314/0.6164, allocations: 1.736 MB / 449.2 MB, free: 3.113 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.796e-05/0.6164, allocations: 4 kB / 449.2 MB, free: 3.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.007379/0.6238, allocations: 2.063 MB / 451.3 MB, free: 1.016 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/0.6239, allocations: 12 kB / 451.3 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.816e-05/0.6239, allocations: 16 kB / 451.3 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.6241, allocations: 41.34 kB / 451.3 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002461/0.6266, allocations: 399.4 kB / 451.7 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.6282, allocations: 1.378 MB / 453.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002443/0.6307, allocations: 127.9 kB / 453.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.6309, allocations: 68 kB / 453.3 MB, free: 14.84 MB / 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.0007116/0.6316, allocations: 283.6 kB / 453.6 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007339/0.6324, allocations: 158 kB / 453.7 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006374/0.6387, allocations: 1.581 MB / 455.3 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/0.6388, allocations: 8 kB / 455.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.6388, allocations: 0 / 455.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-05/0.6389, allocations: 11.97 kB / 455.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0131/0.652, allocations: 3.753 MB / 459.1 MB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.915e-05/0.6521, allocations: 16.88 kB / 459.1 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.6535, allocations: 259.6 kB / 459.3 MB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001719/0.6537, allocations: 32.84 kB / 459.4 MB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.6538, allocations: 32 kB / 459.4 MB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/0.6553, allocations: 1.371 MB / 460.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-05/0.6553, allocations: 15.94 kB / 460.8 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005736/0.661, allocations: 2.223 MB / 463 MB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.6623, allocations: 303 kB / 463.3 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006199/0.6629, allocations: 39.98 kB / 463.4 MB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/0.6645, allocations: 103.9 kB / 463.5 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000367/0.6649, allocations: 124.2 kB / 463.6 MB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/0.665, allocations: 43.94 kB / 463.6 MB, free: 3.922 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002086/0.6671, allocations: 0.8142 MB / 464.4 MB, free: 3.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6672, allocations: 0 / 464.4 MB, free: 3.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003991/0.6712, allocations: 0.6094 MB / 465 MB, free: 2.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.0004345/0.6716, allocations: 154.9 kB / 465.2 MB, free: 2.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007992/0.6796, allocations: 2.828 MB / 468 MB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.987e-05/0.6797, allocations: 0 / 468 MB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/0.6818, allocations: 0.7081 MB / 468.7 MB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003412/0.6853, allocations: 371.3 kB / 469.1 MB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.6957, allocations: 3.534 MB / 472.6 MB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002352/0.6981, allocations: 1.345 MB / 474 MB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001893/0.7001, allocations: 300.3 kB / 474.3 MB, free: 9.059 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005563/0.7006, allocations: 99.44 kB / 474.4 MB, free: 8.961 MB / 398.1 MB Notification: Performance of SimCode: time 1.593e-06/0.7006, allocations: 0 / 474.4 MB, free: 8.961 MB / 398.1 MB Notification: Performance of Templates: time 0.03852/0.7392, allocations: 18.73 MB / 493.1 MB, free: 6.199 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)