Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007856/0.007856, allocations: 101.4 kB / 15.73 MB, free: 6.059 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.001588/0.001588, allocations: 189.8 kB / 16.67 MB, free: 5.969 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.926/1.926, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001393/0.001393, allocations: 59.84 kB / 326.6 MB, free: 3.254 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1528, allocations: 46.61 MB / 373.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.3351/0.488, allocations: 14.57 MB / 387.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01226/0.5003, allocations: 5.37 MB / 393.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003904/0.5043, allocations: 63.06 kB / 393.2 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003284/0.5076, allocations: 0.9571 MB / 394.1 MB, free: 456 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002941/0.5106, allocations: 0.6197 MB / 394.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001616/0.5122, allocations: 0.6097 MB / 395.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003428/0.5157, allocations: 2.4 MB / 397.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.5176, allocations: 1.196 MB / 399 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.5192, allocations: 0.8768 MB / 399.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.5204, allocations: 0.9634 MB / 400.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000331/0.5207, allocations: 254.5 kB / 401 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005756/0.5213, allocations: 288.6 kB / 401.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004338/0.5217, allocations: 492.3 kB / 401.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.5228, allocations: 1.077 MB / 402.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003498/0.5263, allocations: 3.008 MB / 405.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.5264, allocations: 0 / 405.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5264, allocations: 1.312 kB / 405.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.024e-05/0.5264, allocations: 0 / 405.9 MB, free: 9.859 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.004365/0.5308, allocations: 2.241 MB / 408.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.5308, allocations: 13.98 kB / 408.1 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008961/0.5317, allocations: 267.3 kB / 408.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002034/0.5338, allocations: 1.168 MB / 409.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.5339, allocations: 126.4 kB / 409.7 MB, free: 7.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002473/0.5342, allocations: 169.7 kB / 409.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002785/0.537, allocations: 1.603 MB / 411.5 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.609e-05/0.537, allocations: 6.562 kB / 411.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.5371, allocations: 66.09 kB / 411.5 MB, free: 5.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.132e-05/0.5372, allocations: 40.84 kB / 411.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002115/0.5393, allocations: 1.09 MB / 412.7 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00853/0.5479, allocations: 6.607 MB / 419.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.5496, allocations: 0.9414 MB / 420.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005536/0.5501, allocations: 307.1 kB / 420.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.045e-05/0.5502, allocations: 7.438 kB / 420.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.5502, allocations: 41.88 kB / 420.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 2.495e-06/0.5503, allocations: 1.375 kB / 420.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.00427/0.5545, allocations: 2.032 MB / 422.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.5546, allocations: 89.61 kB / 422.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/0.5563, allocations: 1.27 MB / 424 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.461e-05/0.5564, allocations: 41.7 kB / 424 MB, free: 12.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005846/0.557, allocations: 0.8894 MB / 424.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.5571, allocations: 244.5 kB / 425.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.5574, allocations: 202.8 kB / 425.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.5576, allocations: 345.9 kB / 425.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005817/0.5581, allocations: 306 kB / 426 MB, free: 10.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008543/0.559, allocations: 0.708 MB / 426.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.5605, allocations: 1.043 MB / 427.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5605, allocations: 7.938 kB / 427.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001901/0.5624, allocations: 1.164 MB / 428.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/0.5625, allocations: 12 kB / 428.9 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.5625, allocations: 15.94 kB / 428.9 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001705/0.5627, allocations: 41.34 kB / 429 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/0.5635, allocations: 275.5 kB / 429.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.5645, allocations: 1.386 MB / 430.6 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008264/0.5654, allocations: 63.88 kB / 430.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.631e-05/0.5655, allocations: 48 kB / 430.7 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000922/0.5664, allocations: 0.53 MB / 431.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007613/0.5672, allocations: 0.6776 MB / 431.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001197/0.5684, allocations: 0.9777 MB / 432.9 MB, free: 2.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.161e-06/0.5684, allocations: 4 kB / 432.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001619/0.57, allocations: 1.091 MB / 434 MB, free: 1.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.57, allocations: 12 kB / 434 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.5701, allocations: 16 kB / 434 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.122e-05/0.5702, allocations: 36.84 kB / 434.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000773/0.5709, allocations: 255.6 kB / 434.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009943/0.5719, allocations: 1.394 MB / 435.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007613/0.5727, allocations: 60.03 kB / 435.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.331e-05/0.5728, allocations: 48 kB / 435.8 MB, free: 15.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (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 (139): * Single equations (assignments): 138 * 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.0002926/0.5731, allocations: 255.1 kB / 436.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.5733, allocations: 134.3 kB / 436.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001407/0.5747, allocations: 0.6965 MB / 436.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.5747, allocations: 4 kB / 436.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.5747, allocations: 3.984 kB / 436.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.5747, allocations: 4 kB / 436.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003307/0.5781, allocations: 2.134 MB / 439 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.5781, allocations: 0 / 439 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005846/0.5787, allocations: 131.8 kB / 439.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.117e-05/0.5788, allocations: 24.84 kB / 439.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.763e-05/0.5788, allocations: 20.22 kB / 439.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008812/0.5797, allocations: 1.378 MB / 440.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5797, allocations: 4.031 kB / 440.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.5814, allocations: 1.101 MB / 441.7 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003443/0.5818, allocations: 279.2 kB / 442 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.5819, allocations: 16 kB / 442 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000556/0.5825, allocations: 43.95 kB / 442 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.237e-05/0.5826, allocations: 48.5 kB / 442.1 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/0.5826, allocations: 23.94 kB / 442.1 MB, free: 8.566 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001098/0.5837, allocations: 0.8502 MB / 442.9 MB, free: 7.715 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5838, allocations: 0 / 442.9 MB, free: 7.715 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00151/0.5853, allocations: 0.5038 MB / 443.4 MB, free: 7.211 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.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,preFilter.y,slewRateLimiter.y) * 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 (63): * Single equations (assignments): 62 * 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.0002315/0.5855, allocations: 139.3 kB / 443.6 MB, free: 7.062 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002385/0.5879, allocations: 1.448 MB / 445 MB, free: 5.598 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5879, allocations: 0 / 445 MB, free: 5.598 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006406/0.5886, allocations: 423.3 kB / 445.4 MB, free: 5.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.5899, allocations: 335.3 kB / 445.8 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004678/0.5946, allocations: 2.81 MB / 448.6 MB, free: 1.984 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.5956, allocations: 1.241 MB / 449.8 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007089/0.5963, allocations: 174.5 kB / 450 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.5966, allocations: 87.42 kB / 450.1 MB, free: 464 kB / 366.1 MB Notification: Performance of SimCode: time 1.633e-06/0.5966, allocations: 0 / 450.1 MB, free: 464 kB / 366.1 MB Notification: Performance of Templates: time 0.03179/0.6284, allocations: 15.28 MB / 465.4 MB, free: 1.145 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)