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.001167/0.001167, allocations: 111.9 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.001313/0.001314, allocations: 193.5 kB / 18.67 MB, free: 4.434 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.255/1.255, 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.1709/0.1709, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001344/0.001344, allocations: 64.38 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08509/0.08644, allocations: 55.25 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007605/0.09408, allocations: 7.085 MB / 494.9 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00394/0.09805, allocations: 2.898 MB / 497.8 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003506/0.09842, allocations: 31.81 kB / 497.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.09945, allocations: 374.4 kB / 498.2 MB, free: 13.91 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.001503/0.101, allocations: 0.7894 MB / 498.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005522/0.1015, allocations: 299.6 kB / 499.2 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001444/0.103, allocations: 1.573 MB / 0.4891 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001324/0.1043, allocations: 1.429 MB / 0.4905 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007213/0.105, allocations: 0.6581 MB / 0.4911 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00079/0.1058, allocations: 0.7514 MB / 0.4918 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001692/0.106, allocations: 144 kB / 0.492 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009389/0.107, allocations: 0.6866 MB / 0.4927 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000406/0.1074, allocations: 498.9 kB / 0.4931 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005719/0.108, allocations: 0.6613 MB / 0.4938 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00173/0.1097, allocations: 2.111 MB / 0.4958 GB, free: 4.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1097, allocations: 7.938 kB / 0.4958 GB, free: 4.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1097, allocations: 0 / 0.4958 GB, free: 4.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.269e-05/0.1098, allocations: 0 / 0.4958 GB, free: 4.277 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.002664/0.1124, allocations: 1.543 MB / 0.4974 GB, free: 2.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1125, allocations: 11.89 kB / 0.4974 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005948/0.1131, allocations: 163.5 kB / 0.4975 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.1143, allocations: 0.8385 MB / 0.4983 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.1145, allocations: 212.7 kB / 0.4985 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.1146, allocations: 99.91 kB / 0.4986 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002032/0.1167, allocations: 1.477 MB / 0.5001 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.922e-05/0.1167, allocations: 3.938 kB / 0.5001 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.592e-05/0.1168, allocations: 47.98 kB / 0.5001 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001039/0.1169, allocations: 73.97 kB / 0.5002 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.1188, allocations: 1.257 MB / 0.5014 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005952/0.1247, allocations: 5.184 MB / 0.5065 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.1261, allocations: 1.027 MB / 0.5075 GB, free: 7.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006948/0.1269, allocations: 0.4925 MB / 0.508 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.541e-05/0.1269, allocations: 5.188 kB / 0.508 GB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.1269, allocations: 55.05 kB / 0.508 GB, free: 7.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.464e-06/0.127, allocations: 0 / 0.508 GB, free: 7.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.005394/0.1324, allocations: 3.062 MB / 0.511 GB, free: 4.219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.1324, allocations: 115.4 kB / 0.5111 GB, free: 4.082 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007283/0.1332, allocations: 0.6915 MB / 0.5118 GB, free: 3.387 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/0.1332, allocations: 37.7 kB / 0.5118 GB, free: 3.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.1335, allocations: 482.8 kB / 0.5123 GB, free: 2.863 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.1337, allocations: 268.1 kB / 0.5126 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/0.134, allocations: 190.5 kB / 0.5127 GB, free: 2.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1341, allocations: 390.7 kB / 0.5131 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006315/0.1348, allocations: 441.8 kB / 0.5135 GB, free: 1.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007817/0.1355, allocations: 0.7165 MB / 0.5142 GB, free: 0.7461 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.004959/0.1405, allocations: 2.583 MB / 0.5168 GB, free: 14.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1405, allocations: 4 kB / 0.5168 GB, free: 14.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001934/0.1425, allocations: 1.305 MB / 0.518 GB, free: 12.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.1425, allocations: 12.03 kB / 0.518 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.1425, allocations: 15.94 kB / 0.5181 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002245/0.1428, allocations: 81.67 kB / 0.5181 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007589/0.1435, allocations: 219.6 kB / 0.5184 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.1446, allocations: 1.446 MB / 0.5198 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005859/0.1452, allocations: 91.73 kB / 0.5198 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.174e-05/0.1452, allocations: 40 kB / 0.5199 GB, free: 10.65 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.000504/0.1457, allocations: 417.4 kB / 0.5203 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.1459, allocations: 75.06 kB / 0.5204 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.1474, allocations: 0.9899 MB / 0.5213 GB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.046e-05/0.1475, allocations: 19.94 kB / 0.5213 GB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.1475, allocations: 3.938 kB / 0.5213 GB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.1475, allocations: 3.984 kB / 0.5214 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003179/0.1507, allocations: 2.265 MB / 0.5236 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1507, allocations: 4 kB / 0.5236 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006521/0.1514, allocations: 139.8 kB / 0.5237 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.826e-05/0.1515, allocations: 24.84 kB / 0.5237 GB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.369e-05/0.1515, allocations: 12.03 kB / 0.5237 GB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000851/0.1524, allocations: 1.406 MB / 0.5251 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1524, allocations: 0 / 0.5251 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/0.1544, allocations: 1.646 MB / 0.5267 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002877/0.1547, allocations: 248.1 kB / 0.527 GB, free: 3.121 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.192e-05/0.1548, allocations: 12 kB / 0.527 GB, free: 3.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004536/0.1553, allocations: 47.94 kB / 0.527 GB, free: 3.062 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.1554, allocations: 60.42 kB / 0.5271 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.12e-05/0.1555, allocations: 16 kB / 0.5271 GB, free: 2.988 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005048/0.156, allocations: 491 kB / 0.5276 GB, free: 2.516 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.156, allocations: 0 / 0.5276 GB, free: 2.516 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008075/0.1568, allocations: 263.9 kB / 0.5278 GB, free: 2.258 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.0003045/0.1571, allocations: 159.8 kB / 0.528 GB, free: 2.094 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001672/0.1588, allocations: 1.238 MB / 0.5292 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1588, allocations: 4.562 kB / 0.5292 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007586/0.1596, allocations: 0.6073 MB / 0.5298 GB, free: 200 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1733/0.3329, allocations: 222.1 kB / 0.53 GB, free: 51.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003998/0.3369, allocations: 2.585 MB / 0.5325 GB, free: 50.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006132/0.3375, allocations: 1.155 MB / 0.5336 GB, free: 50.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/0.3378, allocations: 77.16 kB / 0.5337 GB, free: 50.17 MB / 414.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3378, allocations: 0 / 0.5337 GB, free: 50.17 MB / 414.1 MB Notification: Performance of Templates: time 0.02517/0.363, allocations: 21.13 MB / 0.5543 GB, free: 42.23 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)