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.001262/0.001262, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001191/0.001191, allocations: 196 kB / 18 MB, free: 5.105 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.257/1.257, allocations: 205.1 MB / 223.9 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.1752/0.1752, allocations: 37.98 MB / 309.2 MB, free: 5.965 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.001285/0.001285, allocations: 67.91 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08352/0.08482, allocations: 55.24 MB / 487.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.00736/0.09221, allocations: 7.089 MB / 494.2 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003696/0.09594, allocations: 2.898 MB / 497.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002986/0.09626, allocations: 27.88 kB / 497.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009567/0.09722, allocations: 377.8 kB / 497.5 MB, free: 13.92 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.001342/0.09858, allocations: 0.7856 MB / 498.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005079/0.0991, allocations: 303.5 kB / 498.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001347/0.1005, allocations: 1.577 MB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001349/0.1018, allocations: 1.433 MB / 0.4898 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007158/0.1025, allocations: 0.6541 MB / 0.4905 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007884/0.1033, allocations: 0.7476 MB / 0.4912 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.1035, allocations: 143.9 kB / 0.4913 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008807/0.1044, allocations: 0.6827 MB / 0.492 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003945/0.1048, allocations: 0.4988 MB / 0.4925 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005519/0.1054, allocations: 0.6574 MB / 0.4931 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001678/0.1071, allocations: 2.111 MB / 0.4952 GB, free: 4.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.1071, allocations: 0 / 0.4952 GB, free: 4.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1071, allocations: 0 / 0.4952 GB, free: 4.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.1071, allocations: 0 / 0.4952 GB, free: 4.285 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.002549/0.1097, allocations: 1.551 MB / 0.4967 GB, free: 2.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.1097, allocations: 11.89 kB / 0.4967 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005684/0.1103, allocations: 171.5 kB / 0.4969 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.1115, allocations: 0.8308 MB / 0.4977 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.1117, allocations: 208.7 kB / 0.4979 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.1118, allocations: 107.8 kB / 0.498 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002011/0.1139, allocations: 1.469 MB / 0.4994 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/0.1139, allocations: 3.938 kB / 0.4994 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-05/0.114, allocations: 44 kB / 0.4995 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.1141, allocations: 77.95 kB / 0.4995 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/0.116, allocations: 1.257 MB / 0.5008 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005777/0.1217, allocations: 5.184 MB / 0.5058 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.1232, allocations: 1.027 MB / 0.5068 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007044/0.1239, allocations: 0.4929 MB / 0.5073 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.434e-05/0.124, allocations: 12.56 kB / 0.5073 GB, free: 7.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.124, allocations: 39.12 kB / 0.5074 GB, free: 7.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 3.106e-06/0.124, allocations: 0 / 0.5074 GB, free: 7.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.005474/0.1295, allocations: 3.067 MB / 0.5104 GB, free: 4.227 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.1295, allocations: 111.5 kB / 0.5105 GB, free: 4.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007373/0.1303, allocations: 0.6953 MB / 0.5111 GB, free: 3.395 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.872e-05/0.1303, allocations: 37.7 kB / 0.5112 GB, free: 3.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.1306, allocations: 474.8 kB / 0.5116 GB, free: 2.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.1308, allocations: 272.1 kB / 0.5119 GB, free: 2.609 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000249/0.1311, allocations: 186.5 kB / 0.5121 GB, free: 2.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1312, allocations: 390.7 kB / 0.5124 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000634/0.1319, allocations: 453.7 kB / 0.5129 GB, free: 1.586 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000777/0.1327, allocations: 0.7165 MB / 0.5136 GB, free: 0.75 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.004984/0.1377, allocations: 2.575 MB / 0.5161 GB, free: 14.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.1377, allocations: 3.938 kB / 0.5161 GB, free: 14.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002017/0.1397, allocations: 1.313 MB / 0.5174 GB, free: 12.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1397, allocations: 12 kB / 0.5174 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.1398, allocations: 11.94 kB / 0.5174 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002173/0.14, allocations: 81.61 kB / 0.5175 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007578/0.1408, allocations: 223.7 kB / 0.5177 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.1418, allocations: 1.457 MB / 0.5191 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006446/0.1424, allocations: 75.89 kB / 0.5192 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.258e-05/0.1425, allocations: 40 kB / 0.5192 GB, free: 10.66 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.0005405/0.1431, allocations: 417.7 kB / 0.5196 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.1433, allocations: 83.05 kB / 0.5197 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.1448, allocations: 0.99 MB / 0.5207 GB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.191e-05/0.1448, allocations: 19.98 kB / 0.5207 GB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1449, allocations: 3.938 kB / 0.5207 GB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1449, allocations: 0 / 0.5207 GB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003238/0.1481, allocations: 2.265 MB / 0.5229 GB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.1481, allocations: 4 kB / 0.5229 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006505/0.1488, allocations: 143.8 kB / 0.523 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.19e-05/0.1489, allocations: 20.86 kB / 0.5231 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-05/0.1489, allocations: 24.02 kB / 0.5231 GB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008178/0.1498, allocations: 1.382 MB / 0.5244 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1498, allocations: 0 / 0.5244 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.1518, allocations: 1.658 MB / 0.5261 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002988/0.1521, allocations: 244.1 kB / 0.5263 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.986e-05/0.1522, allocations: 12 kB / 0.5263 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004551/0.1527, allocations: 47.94 kB / 0.5263 GB, free: 3.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.1528, allocations: 56.47 kB / 0.5264 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.535e-05/0.1529, allocations: 20 kB / 0.5264 GB, free: 2.996 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004962/0.1534, allocations: 487 kB / 0.5269 GB, free: 2.527 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.303e-06/0.1534, allocations: 0 / 0.5269 GB, free: 2.527 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007966/0.1542, allocations: 267.9 kB / 0.5271 GB, free: 2.266 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.0002966/0.1545, allocations: 163.8 kB / 0.5273 GB, free: 2.098 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.1562, allocations: 1.238 MB / 0.5285 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1562, allocations: 0 / 0.5285 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007773/0.157, allocations: 0.6189 MB / 0.5291 GB, free: 196 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1805/0.3375, allocations: 229.4 kB / 0.5293 GB, free: 51.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004368/0.3419, allocations: 2.497 MB / 0.5318 GB, free: 50.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006817/0.3426, allocations: 1.158 MB / 0.5329 GB, free: 50.22 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006998/0.3433, allocations: 254.5 kB / 0.5331 GB, free: 50.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002147/0.3436, allocations: 76.23 kB / 0.5332 GB, free: 50.18 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3436, allocations: 1.375 kB / 0.5332 GB, free: 50.18 MB / 414.1 MB Notification: Performance of Templates: time 0.02149/0.3651, allocations: 12.67 MB / 0.5456 GB, free: 46.94 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)