Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001623/0.001623, 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.002089/0.002089, allocations: 189.7 kB / 16.25 MB, free: 6.629 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.968/1.968, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001743/0.001744, allocations: 51.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4356/0.4374, allocations: 46.63 MB / 324.9 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.02021/0.4577, allocations: 13.85 MB / 338.7 MB, free: 6.203 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0148/0.4725, allocations: 5.022 MB / 343.7 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006382/0.479, allocations: 55.81 kB / 343.8 MB, free: 1.113 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005312/0.4845, allocations: 0.781 MB / 344.6 MB, free: 336 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004801/0.4893, allocations: 476.7 kB / 345 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002127/0.4914, allocations: 451.7 kB / 345.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005254/0.4967, allocations: 2.159 MB / 347.6 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002416/0.4992, allocations: 1.127 MB / 348.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002332/0.5015, allocations: 0.7937 MB / 349.5 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002314/0.5038, allocations: 0.8826 MB / 350.4 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008698/0.5047, allocations: 232 kB / 350.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.5062, allocations: 268 kB / 350.9 MB, free: 9.898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008475/0.507, allocations: 446.5 kB / 351.4 MB, free: 9.461 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.5086, allocations: 0.9836 MB / 352.3 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00329/0.5119, allocations: 2.71 MB / 355 MB, free: 5.754 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.5119, allocations: 0 / 355 MB, free: 5.754 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5119, allocations: 0 / 355 MB, free: 5.754 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.212e-05/0.512, allocations: 4 kB / 355.1 MB, free: 5.75 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003721/0.5157, allocations: 2.035 MB / 357.1 MB, free: 3.656 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.618e-05/0.5158, allocations: 11.89 kB / 357.1 MB, free: 3.645 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008018/0.5166, allocations: 246.5 kB / 357.3 MB, free: 3.402 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001645/0.5182, allocations: 1.024 MB / 358.4 MB, free: 2.336 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.405e-05/0.5183, allocations: 115.4 kB / 358.5 MB, free: 2.223 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000201/0.5186, allocations: 152.3 kB / 358.6 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002558/0.5211, allocations: 1.435 MB / 360.1 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.502e-05/0.5212, allocations: 3.906 kB / 360.1 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.5213, allocations: 64 kB / 360.1 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.349e-05/0.5214, allocations: 40 kB / 360.2 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.5231, allocations: 0.9556 MB / 361.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008239/0.5314, allocations: 6.148 MB / 367.3 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.5325, allocations: 0.6452 MB / 367.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003879/0.5329, allocations: 234.1 kB / 368.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.505e-05/0.533, allocations: 8.438 kB / 368.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/0.533, allocations: 39 kB / 368.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 3.036e-06/0.533, allocations: 0 / 368.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003287/0.5363, allocations: 1.711 MB / 369.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.889e-05/0.5364, allocations: 85.53 kB / 370 MB, free: 6.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001563/0.538, allocations: 1.128 MB / 371.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.497e-05/0.538, allocations: 37.7 kB / 371.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005769/0.5386, allocations: 0.8054 MB / 372 MB, free: 4.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.5388, allocations: 213 kB / 372.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000242/0.539, allocations: 170.5 kB / 372.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.5392, allocations: 341.9 kB / 372.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004455/0.5396, allocations: 252.7 kB / 372.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007299/0.5404, allocations: 0.629 MB / 373.5 MB, free: 2.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.5416, allocations: 0.9146 MB / 374.5 MB, free: 1.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.5416, allocations: 8 kB / 374.5 MB, free: 1.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001651/0.5432, allocations: 0.9903 MB / 375.4 MB, free: 312 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.5433, allocations: 16.73 kB / 375.5 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.5433, allocations: 12 kB / 375.5 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.5435, allocations: 40.86 kB / 375.5 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007135/0.5442, allocations: 223.6 kB / 375.7 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.5454, allocations: 1.398 MB / 377.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008415/0.5462, allocations: 55.97 kB / 377.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.889e-05/0.5463, allocations: 44.05 kB / 377.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009613/0.5473, allocations: 470 kB / 377.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000625/0.5479, allocations: 0.6017 MB / 378.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001067/0.549, allocations: 0.8717 MB / 379.2 MB, free: 12.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.941e-06/0.549, allocations: 4 kB / 379.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001664/0.5507, allocations: 0.9479 MB / 380.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.5507, allocations: 12 kB / 380.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.5507, allocations: 12 kB / 380.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001239/0.5509, allocations: 40.84 kB / 380.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006776/0.5516, allocations: 215.7 kB / 380.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001092/0.5527, allocations: 1.383 MB / 381.8 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000858/0.5535, allocations: 47.98 kB / 381.8 MB, free: 9.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.606e-05/0.5536, allocations: 48 kB / 381.9 MB, free: 9.223 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (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 (122): * Single equations (assignments): 121 * 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.0003495/0.554, allocations: 247.8 kB / 382.1 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.5542, allocations: 114.6 kB / 382.2 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001328/0.5555, allocations: 0.5634 MB / 382.8 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.5555, allocations: 4 kB / 382.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.5555, allocations: 0 / 382.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5555, allocations: 7.984 kB / 382.8 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003247/0.5588, allocations: 1.875 MB / 384.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/0.5588, allocations: 4 kB / 384.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004923/0.5593, allocations: 107.8 kB / 384.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001148/0.5594, allocations: 24.84 kB / 384.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.08e-05/0.5595, allocations: 16 kB / 384.8 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.5605, allocations: 1.371 MB / 386.2 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.5606, allocations: 8.141 kB / 386.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.5621, allocations: 0.9108 MB / 387.1 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.5625, allocations: 243.5 kB / 387.3 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.5626, allocations: 16 kB / 387.4 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005135/0.5631, allocations: 35.97 kB / 387.4 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.771e-05/0.5632, allocations: 40.36 kB / 387.4 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.646e-05/0.5633, allocations: 20 kB / 387.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001123/0.5644, allocations: 0.7595 MB / 388.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5644, allocations: 0 / 388.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00176/0.5662, allocations: 468 kB / 388.7 MB, free: 2.109 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.0002915/0.5665, allocations: 127.1 kB / 388.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.5689, allocations: 1.265 MB / 390.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.944e-06/0.569, allocations: 4 kB / 390.1 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005353/0.5695, allocations: 349 kB / 390.4 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.5709, allocations: 289.7 kB / 390.7 MB, free: 52 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004837/0.5758, allocations: 3.142 MB / 393.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007998/0.5766, allocations: 1.173 MB / 395 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007142/0.5773, allocations: 157.2 kB / 395.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.5775, allocations: 79.44 kB / 395.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5775, allocations: 0 / 395.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of Templates: time 0.02795/0.6055, allocations: 13.04 MB / 408.3 MB, free: 14.35 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)