Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 114.4 kB / 17.74 MB, free: 5.359 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.001628/0.001628, allocations: 180.5 kB / 18.66 MB, free: 4.445 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.436/1.436, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1885/0.1885, allocations: 37.98 MB / 309.9 MB, free: 5.953 MB / 254.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.001398/0.001398, allocations: 63.91 kB / 432.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1079, allocations: 55.25 MB / 487.8 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009463/0.1174, allocations: 7.097 MB / 494.9 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005367/0.1228, allocations: 2.898 MB / 497.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006711/0.1235, allocations: 27.88 kB / 497.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001356/0.1249, allocations: 370.4 kB / 498.2 MB, free: 14.04 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.002239/0.1272, allocations: 0.7894 MB / 499 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007467/0.1279, allocations: 303.5 kB / 499.2 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002009/0.1299, allocations: 1.574 MB / 0.4891 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001649/0.1316, allocations: 1.433 MB / 0.4905 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001041/0.1327, allocations: 0.6541 MB / 0.4911 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00101/0.1337, allocations: 0.7515 MB / 0.4919 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001922/0.1339, allocations: 140 kB / 0.492 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.1351, allocations: 0.6827 MB / 0.4927 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004718/0.1355, allocations: 0.491 MB / 0.4931 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007001/0.1363, allocations: 0.6652 MB / 0.4938 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002206/0.1385, allocations: 2.107 MB / 0.4958 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1385, allocations: 8 kB / 0.4958 GB, free: 4.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1385, allocations: 0 / 0.4958 GB, free: 4.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.815e-05/0.1385, allocations: 0 / 0.4958 GB, free: 4.402 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003192/0.1417, allocations: 1.551 MB / 0.4974 GB, free: 2.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1418, allocations: 11.89 kB / 0.4974 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006744/0.1425, allocations: 167.5 kB / 0.4975 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.1439, allocations: 0.8308 MB / 0.4983 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/0.1441, allocations: 208.7 kB / 0.4985 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.1443, allocations: 107.8 kB / 0.4986 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/0.1466, allocations: 1.469 MB / 0.5001 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.92e-05/0.1467, allocations: 0 / 0.5001 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.1468, allocations: 55.86 kB / 0.5001 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/0.147, allocations: 73.92 kB / 0.5002 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002004/0.149, allocations: 1.257 MB / 0.5014 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007209/0.1562, allocations: 5.184 MB / 0.5065 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.1578, allocations: 1.016 MB / 0.5075 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007665/0.1586, allocations: 0.5002 MB / 0.508 GB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.138e-05/0.1586, allocations: 8.562 kB / 0.508 GB, free: 7.539 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.1587, allocations: 39.12 kB / 0.508 GB, free: 7.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.675e-06/0.1587, allocations: 0 / 0.508 GB, free: 7.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006448/0.1651, allocations: 3.071 MB / 0.511 GB, free: 4.348 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/0.1652, allocations: 115.5 kB / 0.5111 GB, free: 4.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009847/0.1662, allocations: 0.6914 MB / 0.5118 GB, free: 3.516 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.119e-05/0.1663, allocations: 37.7 kB / 0.5118 GB, free: 3.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003529/0.1667, allocations: 474.8 kB / 0.5123 GB, free: 3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002517/0.1669, allocations: 268.1 kB / 0.5126 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002959/0.1672, allocations: 194.5 kB / 0.5127 GB, free: 2.539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.1674, allocations: 390.7 kB / 0.5131 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007252/0.1682, allocations: 449.7 kB / 0.5135 GB, free: 1.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009061/0.1691, allocations: 0.7204 MB / 0.5142 GB, free: 0.8672 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.005651/0.1747, allocations: 2.575 MB / 0.5168 GB, free: 14.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.1748, allocations: 0 / 0.5168 GB, free: 14.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002421/0.1772, allocations: 1.313 MB / 0.518 GB, free: 12.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.1773, allocations: 8 kB / 0.518 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.78e-05/0.1773, allocations: 15.94 kB / 0.5181 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.1776, allocations: 77.67 kB / 0.5181 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008677/0.1785, allocations: 223.6 kB / 0.5183 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.1797, allocations: 1.457 MB / 0.5198 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007913/0.1805, allocations: 79.89 kB / 0.5198 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-05/0.1806, allocations: 40 kB / 0.5199 GB, free: 10.78 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006466/0.1813, allocations: 421.3 kB / 0.5203 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002543/0.1815, allocations: 79.05 kB / 0.5204 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.1834, allocations: 0.9861 MB / 0.5213 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.618e-05/0.1834, allocations: 19.98 kB / 0.5213 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1834, allocations: 11.81 kB / 0.5214 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.1835, allocations: 0 / 0.5214 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.1875, allocations: 2.262 MB / 0.5236 GB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.1875, allocations: 8 kB / 0.5236 GB, free: 6.902 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007199/0.1882, allocations: 143.8 kB / 0.5237 GB, free: 6.762 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001005/0.1883, allocations: 20.89 kB / 0.5237 GB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.411e-05/0.1884, allocations: 23.98 kB / 0.5238 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.1894, allocations: 1.39 MB / 0.5251 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1895, allocations: 0 / 0.5251 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.1919, allocations: 1.654 MB / 0.5267 GB, free: 3.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004128/0.1923, allocations: 240.1 kB / 0.527 GB, free: 3.246 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.1925, allocations: 16 kB / 0.527 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005406/0.193, allocations: 43.94 kB / 0.527 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.1932, allocations: 64.47 kB / 0.5271 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-05/0.1933, allocations: 16 kB / 0.5271 GB, free: 3.109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006705/0.1939, allocations: 483 kB / 0.5275 GB, free: 2.645 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.194, allocations: 0 / 0.5275 GB, free: 2.645 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00103/0.195, allocations: 271.9 kB / 0.5278 GB, free: 2.379 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003898/0.1954, allocations: 151.8 kB / 0.528 GB, free: 2.223 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.1976, allocations: 1.242 MB / 0.5292 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.1976, allocations: 0 / 0.5292 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009564/0.1986, allocations: 0.6151 MB / 0.5298 GB, free: 324 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.1999, allocations: 231.1 kB / 0.53 GB, free: 92 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2098/0.4098, allocations: 2.572 MB / 0.5325 GB, free: 50.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006654/0.4105, allocations: 1.158 MB / 0.5336 GB, free: 50.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/0.4108, allocations: 74.56 kB / 0.5337 GB, free: 50.2 MB / 414.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4108, allocations: 0 / 0.5337 GB, free: 50.2 MB / 414.1 MB Notification: Performance of Templates: time 0.02933/0.4402, allocations: 20.99 MB / 0.5542 GB, free: 42.36 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)