Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.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.PowerWorld.Test.WindFarmHVDCTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 108.4 kB / 17.74 MB, free: 5.23 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: 188.5 kB / 18.67 MB, free: 4.309 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.353/1.353, 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.1842/0.1842, allocations: 37.98 MB / 309.9 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.001494/0.001494, allocations: 67.84 kB / 432.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08373/0.08524, allocations: 55.25 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.005483/0.09076, allocations: 4.231 MB / 492 MB, free: 4.098 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003281/0.09407, allocations: 2.443 MB / 494.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002391/0.09433, allocations: 11.94 kB / 494.5 MB, free: 1.629 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.0954, allocations: 346.5 kB / 494.8 MB, free: 1.289 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.00081/0.09622, allocations: 334.5 kB / 495.1 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008069/0.09704, allocations: 358.9 kB / 495.5 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000698/0.09775, allocations: 0.6118 MB / 496.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003926/0.09815, allocations: 238 kB / 496.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005099/0.09867, allocations: 266.9 kB / 496.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003739/0.09906, allocations: 251 kB / 496.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.38e-05/0.09914, allocations: 40 kB / 496.9 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008163/0.09997, allocations: 0.5378 MB / 497.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.1001, allocations: 135.6 kB / 497.5 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.1003, allocations: 198.9 kB / 497.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009082/0.1012, allocations: 0.6895 MB / 498.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1013, allocations: 0 / 498.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1013, allocations: 0 / 498.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.1013, allocations: 0 / 498.4 MB, free: 13.66 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001323/0.1026, allocations: 0.7746 MB / 499.2 MB, free: 12.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.1027, allocations: 11.89 kB / 499.2 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/0.1037, allocations: 116.2 kB / 499.3 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005836/0.1043, allocations: 427.7 kB / 499.7 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.1044, allocations: 20.88 kB / 499.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.388e-05/0.1044, allocations: 28.11 kB / 499.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008049/0.1052, allocations: 453.2 kB / 0.4885 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1052, allocations: 0 / 0.4885 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.721e-05/0.1053, allocations: 11.98 kB / 0.4885 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.481e-05/0.1053, allocations: 24.42 kB / 0.4885 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000978/0.1063, allocations: 489.2 kB / 0.489 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.1083, allocations: 1.771 MB / 0.4907 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009539/0.1092, allocations: 385.1 kB / 0.4911 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003513/0.1096, allocations: 149.6 kB / 0.4912 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.1096, allocations: 8 kB / 0.4913 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000509/0.1102, allocations: 277.1 kB / 0.4915 GB, free: 8.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.804e-06/0.1102, allocations: 0 / 0.4915 GB, free: 8.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.001295/0.1115, allocations: 0.5091 MB / 0.492 GB, free: 7.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.1116, allocations: 255.3 kB / 0.4923 GB, free: 7.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003826/0.112, allocations: 349.7 kB / 0.4926 GB, free: 7.297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.1121, allocations: 33.7 kB / 0.4926 GB, free: 7.258 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.1122, allocations: 208.2 kB / 0.4928 GB, free: 7.051 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.907e-05/0.1123, allocations: 106.6 kB / 0.4929 GB, free: 6.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.1124, allocations: 69.61 kB / 0.493 GB, free: 6.871 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1125, allocations: 350.8 kB / 0.4933 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003712/0.1129, allocations: 144.3 kB / 0.4935 GB, free: 6.375 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004309/0.1134, allocations: 281.5 kB / 0.4937 GB, free: 6.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007893/0.1142, allocations: 469.5 kB / 0.4942 GB, free: 5.516 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1142, allocations: 0 / 0.4942 GB, free: 5.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001054/0.1152, allocations: 0.5257 MB / 0.4947 GB, free: 4.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.1153, allocations: 33.7 kB / 0.4947 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.1153, allocations: 4 kB / 0.4947 GB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.1153, allocations: 4 kB / 0.4947 GB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003466/0.1157, allocations: 96.31 kB / 0.4948 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.1157, allocations: 15.94 kB / 0.4948 GB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.116, allocations: 51.56 kB / 0.4949 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.393e-05/0.116, allocations: 20 kB / 0.4949 GB, free: 4.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002157/0.1163, allocations: 189.7 kB / 0.4951 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.143e-05/0.1163, allocations: 43.55 kB / 0.4951 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.714e-05/0.1164, allocations: 47.22 kB / 0.4952 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1165, allocations: 7.938 kB / 0.4952 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.1165, allocations: 8 kB / 0.4952 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1165, allocations: 0 / 0.4952 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007758/0.1173, allocations: 0.8468 MB / 0.496 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.1173, allocations: 4 kB / 0.496 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/0.1175, allocations: 64.02 kB / 0.4961 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.1176, allocations: 4 kB / 0.4961 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.1176, allocations: 11.98 kB / 0.4961 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.1176, allocations: 4 kB / 0.4961 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1176, allocations: 3.938 kB / 0.4961 GB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.1187, allocations: 453.6 kB / 0.4965 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.1189, allocations: 112.7 kB / 0.4966 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.729e-05/0.119, allocations: 16 kB / 0.4967 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.1192, allocations: 23.97 kB / 0.4967 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.149e-05/0.1193, allocations: 39.83 kB / 0.4967 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.1193, allocations: 16 kB / 0.4967 GB, free: 2.738 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002608/0.1196, allocations: 251.2 kB / 0.497 GB, free: 2.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1196, allocations: 3.938 kB / 0.497 GB, free: 2.496 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004269/0.12, allocations: 91.91 kB / 0.4971 GB, free: 2.406 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001026/0.1211, allocations: 464 kB / 0.4975 GB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009075/0.122, allocations: 416.3 kB / 0.4979 GB, free: 1.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.122, allocations: 0 / 0.4979 GB, free: 1.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004111/0.1224, allocations: 173 kB / 0.4981 GB, free: 1.352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004885/0.1229, allocations: 85.81 kB / 0.4982 GB, free: 1.266 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.1242, allocations: 0.7489 MB / 0.4989 GB, free: 476 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.1246, allocations: 0.8111 MB / 0.4997 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.1247, allocations: 51.42 kB / 0.4997 GB, free: 15.57 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1247, allocations: 0 / 0.4997 GB, free: 15.57 MB / 398.1 MB Notification: Performance of Templates: time 0.008644/0.1334, allocations: 5.598 MB / 0.5052 GB, free: 9.965 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe 2>&1)