Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001706/0.001706, allocations: 114.1 kB / 17.06 MB, free: 5.969 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.002024/0.002024, allocations: 198.9 kB / 18 MB, free: 5.055 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.848/1.848, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001853/0.001854, allocations: 51.92 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1681, allocations: 46.62 MB / 374.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.3878/0.556, allocations: 13.98 MB / 388.5 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.5733, allocations: 5.158 MB / 393.6 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006368/0.5798, allocations: 56.34 kB / 393.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005031/0.5849, allocations: 0.8685 MB / 394.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004254/0.5892, allocations: 0.5509 MB / 395.1 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001748/0.591, allocations: 0.5119 MB / 395.6 MB, free: 372 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004162/0.5951, allocations: 2.166 MB / 397.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002164/0.5973, allocations: 1.118 MB / 398.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002039/0.5994, allocations: 0.7965 MB / 399.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001452/0.6008, allocations: 0.88 MB / 400.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004183/0.6013, allocations: 230.5 kB / 400.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008509/0.6021, allocations: 267.8 kB / 401.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005543/0.6027, allocations: 445.3 kB / 401.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001376/0.6041, allocations: 0.9838 MB / 402.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004859/0.6089, allocations: 2.761 MB / 405.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.052e-05/0.609, allocations: 4 kB / 405.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.23e-06/0.609, allocations: 1.375 kB / 405.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001168/0.6091, allocations: 0 / 405.3 MB, free: 11.39 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.005432/0.6145, allocations: 2.032 MB / 407.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/0.6146, allocations: 12.7 kB / 407.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008949/0.6155, allocations: 251.6 kB / 407.5 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002302/0.6178, allocations: 1.053 MB / 408.6 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/0.618, allocations: 111.5 kB / 408.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002795/0.6183, allocations: 161.1 kB / 408.9 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003184/0.6215, allocations: 1.428 MB / 410.3 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.871e-05/0.6216, allocations: 6.797 kB / 410.3 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.6217, allocations: 60.66 kB / 410.4 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.547e-05/0.6218, allocations: 42 kB / 410.4 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002382/0.6242, allocations: 0.9561 MB / 411.4 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01123/0.6354, allocations: 6.078 MB / 417.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.6369, allocations: 0.6455 MB / 418.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005057/0.6374, allocations: 239.5 kB / 418.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.928e-05/0.6374, allocations: 13.14 kB / 418.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.6375, allocations: 38.22 kB / 418.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=51): time 2.265e-06/0.6375, allocations: 0 / 418.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.004238/0.6417, allocations: 1.708 MB / 420.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.698e-05/0.6419, allocations: 83.73 kB / 420.2 MB, free: 440 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/0.6441, allocations: 1.127 MB / 421.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.845e-05/0.6442, allocations: 40.39 kB / 421.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007501/0.645, allocations: 0.8105 MB / 422.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002617/0.6452, allocations: 202.1 kB / 422.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003276/0.6456, allocations: 178 kB / 422.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.6458, allocations: 345.5 kB / 422.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006058/0.6464, allocations: 249.9 kB / 423.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000892/0.6473, allocations: 0.6235 MB / 423.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.6487, allocations: 0.9184 MB / 424.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.6487, allocations: 4 kB / 424.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001852/0.6505, allocations: 0.991 MB / 425.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.6506, allocations: 8 kB / 425.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.6506, allocations: 20.09 kB / 425.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002163/0.6508, allocations: 32.86 kB / 425.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007504/0.6516, allocations: 227.6 kB / 425.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.6528, allocations: 1.398 MB / 427.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.6539, allocations: 55.91 kB / 427.4 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.859e-05/0.654, allocations: 48.12 kB / 427.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001169/0.6551, allocations: 470 kB / 427.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007115/0.6559, allocations: 0.5978 MB / 428.5 MB, free: 8.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001086/0.657, allocations: 0.8678 MB / 429.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.592e-06/0.657, allocations: 4 kB / 429.3 MB, free: 7.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001526/0.6585, allocations: 0.9596 MB / 430.3 MB, free: 6.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.6585, allocations: 8 kB / 430.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.6586, allocations: 20 kB / 430.3 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001111/0.6587, allocations: 36.84 kB / 430.4 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000671/0.6594, allocations: 215.7 kB / 430.6 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/0.6606, allocations: 1.386 MB / 432 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009614/0.6616, allocations: 47.83 kB / 432 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.719e-05/0.6617, allocations: 48.09 kB / 432 MB, free: 4.348 MB / 350.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.0003975/0.6621, allocations: 255.9 kB / 432.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.6623, allocations: 110.6 kB / 432.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/0.6636, allocations: 0.5673 MB / 433 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.6636, allocations: 12 kB / 433 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.6636, allocations: 0 / 433 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.6636, allocations: 0 / 433 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003267/0.6669, allocations: 1.855 MB / 434.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.6669, allocations: 4 kB / 434.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.6674, allocations: 103.9 kB / 434.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.6675, allocations: 29.06 kB / 435 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.101e-05/0.6676, allocations: 16 kB / 435 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.6689, allocations: 1.382 MB / 436.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.6689, allocations: 3.938 kB / 436.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.6706, allocations: 0.912 MB / 437.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004997/0.6711, allocations: 243.6 kB / 437.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.6712, allocations: 12 kB / 437.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005018/0.6717, allocations: 31.97 kB / 437.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.098e-05/0.6718, allocations: 40.33 kB / 437.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.6719, allocations: 16 kB / 437.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.673, allocations: 0.7596 MB / 438.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.673, allocations: 0 / 438.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001893/0.6749, allocations: 472 kB / 438.8 MB, free: 13.23 MB / 366.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.0003277/0.6752, allocations: 123.2 kB / 439 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002651/0.6779, allocations: 1.257 MB / 440.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/0.6779, allocations: 3.938 kB / 440.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006021/0.6785, allocations: 355 kB / 440.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.6801, allocations: 290.5 kB / 440.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/0.6848, allocations: 2.473 MB / 443.3 MB, free: 8.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008189/0.6856, allocations: 1.173 MB / 444.5 MB, free: 7.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006602/0.6863, allocations: 161.2 kB / 444.7 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.6865, allocations: 75.38 kB / 444.7 MB, free: 7.227 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6865, allocations: 0 / 444.7 MB, free: 7.227 MB / 366.1 MB Notification: Performance of Templates: time 0.02805/0.7146, allocations: 13.62 MB / 458.4 MB, free: 9.578 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)