Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001594/0.001594, allocations: 100.8 kB / 16.5 MB, free: 6.641 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.00165/0.001649, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.791/1.791, allocations: 205.1 MB / 223.3 MB, free: 12.46 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.001709/0.001709, allocations: 55.92 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1267, allocations: 46.64 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01934/0.1461, allocations: 14.4 MB / 340.4 MB, free: 6.406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.1604, allocations: 5.241 MB / 345.6 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005208/0.1657, allocations: 63.75 kB / 345.7 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004569/0.1703, allocations: 0.7963 MB / 346.5 MB, free: 292 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004321/0.1747, allocations: 492.4 kB / 347 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.1767, allocations: 0.5386 MB / 347.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00502/0.1817, allocations: 2.253 MB / 349.7 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002051/0.1838, allocations: 1.065 MB / 350.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001606/0.1854, allocations: 0.7543 MB / 351.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001113/0.1865, allocations: 0.8939 MB / 352.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002256/0.1867, allocations: 144 kB / 352.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004825/0.1872, allocations: 183.9 kB / 352.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003368/0.1876, allocations: 390.3 kB / 353.2 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.1888, allocations: 0.9752 MB / 354.1 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003519/0.1924, allocations: 2.854 MB / 357 MB, free: 5.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.1924, allocations: 0 / 357 MB, free: 5.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.1924, allocations: 0 / 357 MB, free: 5.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.32e-05/0.1925, allocations: 0 / 357 MB, free: 5.688 MB / 302.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.00497/0.1975, allocations: 2.243 MB / 359.2 MB, free: 3.387 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.572e-05/0.1975, allocations: 12.02 kB / 359.2 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008634/0.1984, allocations: 262.3 kB / 359.5 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002107/0.2005, allocations: 1.135 MB / 360.6 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.2007, allocations: 127.7 kB / 360.8 MB, free: 1.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002791/0.201, allocations: 172.3 kB / 360.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003036/0.204, allocations: 1.594 MB / 362.5 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.082e-05/0.2041, allocations: 11.84 kB / 362.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.2042, allocations: 68 kB / 362.6 MB, free: 15.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.892e-05/0.2043, allocations: 40 kB / 362.6 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002149/0.2064, allocations: 1.086 MB / 363.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01135/0.2178, allocations: 6.681 MB / 370.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002001/0.2198, allocations: 0.9406 MB / 371.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006079/0.2205, allocations: 298.4 kB / 371.6 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.032e-05/0.2205, allocations: 16.53 kB / 371.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.129e-05/0.2206, allocations: 39.12 kB / 371.7 MB, free: 6.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 3.286e-06/0.2206, allocations: 0 / 371.7 MB, free: 6.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.00516/0.2258, allocations: 2.03 MB / 373.7 MB, free: 4.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.754e-05/0.2259, allocations: 93.61 kB / 373.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001949/0.2278, allocations: 1.27 MB / 375.1 MB, free: 2.922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.365e-05/0.2279, allocations: 41.7 kB / 375.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00074/0.2286, allocations: 0.8919 MB / 376 MB, free: 1.973 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.2289, allocations: 236.6 kB / 376.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002987/0.2292, allocations: 202.7 kB / 376.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.2294, allocations: 345.9 kB / 376.8 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006611/0.2301, allocations: 310 kB / 377.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3323/0.5624, allocations: 0.706 MB / 377.8 MB, free: 51.81 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002487/0.5649, allocations: 1.042 MB / 378.8 MB, free: 51.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/0.565, allocations: 3.75 kB / 378.8 MB, free: 51.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003509/0.5685, allocations: 1.156 MB / 380 MB, free: 51.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.178e-05/0.5685, allocations: 10.44 kB / 380 MB, free: 51.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-05/0.5686, allocations: 17.44 kB / 380 MB, free: 51.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002697/0.5689, allocations: 41.14 kB / 380.1 MB, free: 51.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.57, allocations: 263.4 kB / 380.3 MB, free: 51.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.5712, allocations: 1.296 MB / 381.6 MB, free: 49.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.5725, allocations: 67.59 kB / 381.7 MB, free: 49.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.5726, allocations: 50.75 kB / 381.7 MB, free: 49.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00153/0.5742, allocations: 0.5271 MB / 382.3 MB, free: 49.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009591/0.5752, allocations: 0.6697 MB / 382.9 MB, free: 49.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001561/0.5767, allocations: 0.9834 MB / 383.9 MB, free: 48.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.455e-05/0.5768, allocations: 5.141 kB / 383.9 MB, free: 48.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.002247/0.579, allocations: 1.093 MB / 385 MB, free: 47.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.5791, allocations: 11.53 kB / 385 MB, free: 47.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/0.5791, allocations: 14.56 kB / 385 MB, free: 47.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001266/0.5792, allocations: 46.61 kB / 385.1 MB, free: 47.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008603/0.5801, allocations: 246.4 kB / 385.3 MB, free: 47.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008255/0.5809, allocations: 1.305 MB / 386.6 MB, free: 46.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009462/0.5819, allocations: 49.31 kB / 386.7 MB, free: 46.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.821e-05/0.582, allocations: 50.25 kB / 386.7 MB, free: 46.43 MB / 318.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.000401/0.5824, allocations: 255.9 kB / 387 MB, free: 46.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002485/0.5827, allocations: 138 kB / 387.1 MB, free: 46.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/0.5845, allocations: 0.6933 MB / 387.8 MB, free: 45.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.5845, allocations: 5.812 kB / 387.8 MB, free: 45.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.5845, allocations: 1.094 kB / 387.8 MB, free: 45.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.5845, allocations: 6.562 kB / 387.8 MB, free: 45.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003926/0.5885, allocations: 2.14 MB / 390 MB, free: 44.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.5885, allocations: 0.9688 kB / 390 MB, free: 44.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000677/0.5892, allocations: 132.6 kB / 390.1 MB, free: 44.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001098/0.5893, allocations: 27.92 kB / 390.1 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.189e-05/0.5894, allocations: 15.2 kB / 390.1 MB, free: 44.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007647/0.5901, allocations: 1.29 MB / 391.4 MB, free: 43.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5901, allocations: 2.062 kB / 391.4 MB, free: 43.49 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002174/0.5923, allocations: 1.1 MB / 392.5 MB, free: 43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005012/0.5928, allocations: 273.8 kB / 392.8 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.593, allocations: 15.25 kB / 392.8 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006042/0.5936, allocations: 47.25 kB / 392.8 MB, free: 42.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.5938, allocations: 48.78 kB / 392.9 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.153e-05/0.5938, allocations: 17.8 kB / 392.9 MB, free: 42.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001403/0.5952, allocations: 0.8562 MB / 393.8 MB, free: 42.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5952, allocations: 0 / 393.8 MB, free: 42.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002002/0.5972, allocations: 0.5033 MB / 394.3 MB, free: 42.35 MB / 318.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.0003848/0.5976, allocations: 132.9 kB / 394.4 MB, free: 42.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002947/0.6006, allocations: 1.448 MB / 395.8 MB, free: 41.61 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.6006, allocations: 7.828 kB / 395.9 MB, free: 41.6 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007111/0.6013, allocations: 423.6 kB / 396.3 MB, free: 41.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.6029, allocations: 298.4 kB / 396.6 MB, free: 41.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004866/0.6078, allocations: 3.536 MB / 400.1 MB, free: 39.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008318/0.6086, allocations: 1.244 MB / 401.3 MB, free: 38.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007879/0.6094, allocations: 174.4 kB / 401.5 MB, free: 38.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.6096, allocations: 82.94 kB / 401.6 MB, free: 38.28 MB / 318.1 MB Notification: Performance of SimCode: time 2.795e-06/0.6096, allocations: 0 / 401.6 MB, free: 38.28 MB / 318.1 MB Notification: Performance of Templates: time 0.02394/0.6336, allocations: 14.27 MB / 415.9 MB, free: 25.27 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)