Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 106.4 kB / 17.74 MB, free: 5.348 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.001422/0.001422, allocations: 185.4 kB / 18.67 MB, free: 4.43 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.435/1.435, allocations: 205.1 MB / 224.6 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.1774/0.1774, allocations: 37.99 MB / 309.9 MB, free: 5.973 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.001486/0.001486, allocations: 71.89 kB / 432.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09561/0.09711, allocations: 55.25 MB / 487.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008201/0.1053, allocations: 6.334 MB / 494.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004257/0.1096, allocations: 2.711 MB / 496.8 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005156/0.1102, allocations: 31.88 kB / 496.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.1114, allocations: 338.5 kB / 497.2 MB, free: 14.9 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.00151/0.1129, allocations: 0.5869 MB / 497.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000792/0.1137, allocations: 283.5 kB / 498.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001883/0.1156, allocations: 1.196 MB / 499.3 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001356/0.117, allocations: 0.8729 MB / 0.4884 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001015/0.118, allocations: 0.4905 MB / 0.4889 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000905/0.1189, allocations: 0.5294 MB / 0.4894 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001324/0.119, allocations: 88 kB / 0.4895 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005458/0.1196, allocations: 323.5 kB / 0.4898 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002938/0.1199, allocations: 343.1 kB / 0.4901 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004115/0.1203, allocations: 454 kB / 0.4906 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00131/0.1216, allocations: 1.371 MB / 0.4919 GB, free: 8.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.1217, allocations: 4 kB / 0.4919 GB, free: 8.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1217, allocations: 0 / 0.4919 GB, free: 8.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.1217, allocations: 0 / 0.4919 GB, free: 8.379 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.00236/0.124, allocations: 1.141 MB / 0.493 GB, free: 7.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.1241, allocations: 11.89 kB / 0.493 GB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006548/0.1248, allocations: 135.8 kB / 0.4932 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.126, allocations: 0.6982 MB / 0.4938 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.1261, allocations: 83.64 kB / 0.4939 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.1262, allocations: 67.98 kB / 0.494 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.1277, allocations: 0.957 MB / 0.4949 GB, free: 5.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.611e-05/0.1277, allocations: 3.938 kB / 0.4949 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.869e-05/0.1278, allocations: 28 kB / 0.4949 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.873e-05/0.1279, allocations: 57.28 kB / 0.495 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.1292, allocations: 0.7741 MB / 0.4958 GB, free: 4.281 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004744/0.134, allocations: 3.844 MB / 0.4995 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008016/0.1348, allocations: 0.5053 MB / 0.5 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004263/0.1352, allocations: 250.4 kB / 0.5002 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.1353, allocations: 4 kB / 0.5002 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.1353, allocations: 38.56 kB / 0.5003 GB, free: 15.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 3.737e-06/0.1353, allocations: 0 / 0.5003 GB, free: 15.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01119/0.1465, allocations: 3.751 MB / 0.5039 GB, free: 11.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/0.1466, allocations: 119.2 kB / 0.5041 GB, free: 11.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006141/0.1472, allocations: 0.5183 MB / 0.5046 GB, free: 10.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/0.1473, allocations: 37.7 kB / 0.5046 GB, free: 10.74 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002562/0.1475, allocations: 403 kB / 0.505 GB, free: 10.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.1477, allocations: 193.3 kB / 0.5052 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.1479, allocations: 126.6 kB / 0.5053 GB, free: 10.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.148, allocations: 366.8 kB / 0.5056 GB, free: 9.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004817/0.1485, allocations: 281.8 kB / 0.5059 GB, free: 9.371 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006367/0.1492, allocations: 0.5111 MB / 0.5064 GB, free: 8.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.1504, allocations: 0.8442 MB / 0.5072 GB, free: 7.816 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.1504, allocations: 4 kB / 0.5072 GB, free: 7.812 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00343/0.1539, allocations: 1.449 MB / 0.5086 GB, free: 6.305 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.1539, allocations: 8 kB / 0.5087 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.1539, allocations: 8 kB / 0.5087 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/0.1555, allocations: 455.3 kB / 0.5091 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004323/0.156, allocations: 111.8 kB / 0.5092 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.1668, allocations: 9.135 MB / 0.5181 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005681/0.1674, allocations: 24 kB / 0.5181 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.26e-05/0.1674, allocations: 31.98 kB / 0.5182 GB, free: 11.95 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004256/0.1679, allocations: 313.7 kB / 0.5185 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.168, allocations: 71.23 kB / 0.5185 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003226/0.1713, allocations: 1.299 MB / 0.5198 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.1713, allocations: 3.984 kB / 0.5198 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1713, allocations: 112 / 0.5198 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/0.1716, allocations: 200.2 kB / 0.52 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.895e-05/0.1717, allocations: 8 kB / 0.52 GB, free: 9.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004169/0.1721, allocations: 19.98 kB / 0.52 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.1723, allocations: 64.39 kB / 0.5201 GB, free: 9.902 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002957/0.1753, allocations: 1.359 MB / 0.5214 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00169/0.177, allocations: 1.345 MB / 0.5227 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005/0.1775, allocations: 324.3 kB / 0.523 GB, free: 6.848 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004382/0.1779, allocations: 374.8 kB / 0.5234 GB, free: 6.484 MB / 414.1 MB Notification: Performance of Backend: time 3.81e-07/0.1779, allocations: 0 / 0.5234 GB, free: 6.484 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00245/0.1804, allocations: 1.234 MB / 0.5246 GB, free: 5.191 MB / 414.1 MB Notification: Performance of SimCode: time 0.002916/0.1833, allocations: 2.248 MB / 0.5268 GB, free: 2.891 MB / 414.1 MB Notification: Performance of Templates: time 0.2163/0.3996, allocations: 14.05 MB / 0.5405 GB, free: 49.6 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)