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.001512/0.001512, allocations: 114 kB / 17.06 MB, free: 5.992 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.001723/0.001723, allocations: 198.9 kB / 18 MB, free: 5.07 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.543/1.543, 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.172/0.172, allocations: 37.99 MB / 309.2 MB, free: 5.941 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.001382/0.001382, allocations: 71.89 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1162, allocations: 55.24 MB / 487.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.006614/0.1228, allocations: 4.247 MB / 491.4 MB, free: 4.062 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003626/0.1265, allocations: 2.424 MB / 493.8 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002508/0.1268, allocations: 11.94 kB / 493.8 MB, free: 1.613 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.1279, allocations: 346.5 kB / 494.1 MB, free: 1.273 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.0008431/0.1288, allocations: 342.5 kB / 494.5 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.1298, allocations: 351 kB / 494.8 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009301/0.1308, allocations: 0.6196 MB / 495.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006037/0.1314, allocations: 238.1 kB / 495.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006828/0.1321, allocations: 266.9 kB / 495.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004111/0.1325, allocations: 243.1 kB / 496.2 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.348e-05/0.1326, allocations: 44 kB / 496.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001344/0.134, allocations: 0.5339 MB / 496.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.1342, allocations: 139.6 kB / 496.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.1344, allocations: 199 kB / 497.1 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008762/0.1352, allocations: 0.6856 MB / 497.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1353, allocations: 0 / 497.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1353, allocations: 0 / 497.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.555e-06/0.1353, allocations: 0 / 497.7 MB, free: 13.64 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.001536/0.1368, allocations: 0.7746 MB / 498.5 MB, free: 12.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1369, allocations: 11.89 kB / 498.5 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/0.138, allocations: 116.3 kB / 498.6 MB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000804/0.1388, allocations: 423.6 kB / 499.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.1388, allocations: 24.91 kB / 499.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.1389, allocations: 28.12 kB / 499.1 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008186/0.1397, allocations: 449.2 kB / 499.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1397, allocations: 0 / 499.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.1398, allocations: 8 kB / 499.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.334e-05/0.1398, allocations: 24.42 kB / 499.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009631/0.1408, allocations: 489.2 kB / 0.4883 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002254/0.1431, allocations: 1.779 MB / 0.4901 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009725/0.144, allocations: 389 kB / 0.4904 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/0.1444, allocations: 145.6 kB / 0.4906 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.49e-05/0.1445, allocations: 11.98 kB / 0.4906 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005532/0.145, allocations: 281 kB / 0.4909 GB, free: 8.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.134e-06/0.145, allocations: 4 kB / 0.4909 GB, free: 8.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.001426/0.1465, allocations: 0.5091 MB / 0.4914 GB, free: 7.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.1466, allocations: 247.3 kB / 0.4916 GB, free: 7.629 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005141/0.1471, allocations: 349.7 kB / 0.4919 GB, free: 7.277 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.134e-05/0.1472, allocations: 41.64 kB / 0.492 GB, free: 7.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002172/0.1474, allocations: 212.2 kB / 0.4922 GB, free: 7.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.974e-05/0.1475, allocations: 98.64 kB / 0.4923 GB, free: 6.922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.1477, allocations: 73.59 kB / 0.4923 GB, free: 6.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1478, allocations: 354.8 kB / 0.4927 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003998/0.1482, allocations: 140.3 kB / 0.4928 GB, free: 6.348 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004973/0.1487, allocations: 285.5 kB / 0.4931 GB, free: 6.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008169/0.1496, allocations: 469.5 kB / 0.4935 GB, free: 5.484 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.1496, allocations: 0 / 0.4935 GB, free: 5.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00106/0.1506, allocations: 0.5218 MB / 0.494 GB, free: 4.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/0.1507, allocations: 37.69 kB / 0.4941 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.1507, allocations: 4 kB / 0.4941 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.1507, allocations: 4 kB / 0.4941 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.1512, allocations: 96.36 kB / 0.4942 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.1512, allocations: 11.98 kB / 0.4942 GB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.1515, allocations: 47.58 kB / 0.4942 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.68e-05/0.1515, allocations: 23.98 kB / 0.4943 GB, free: 4.723 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.0002624/0.1518, allocations: 189.6 kB / 0.4944 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.442e-05/0.1519, allocations: 39.56 kB / 0.4945 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.152, allocations: 43.28 kB / 0.4945 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.152, allocations: 11.98 kB / 0.4945 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.152, allocations: 4 kB / 0.4945 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.152, allocations: 0 / 0.4945 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009231/0.1529, allocations: 0.8507 MB / 0.4954 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1529, allocations: 4 kB / 0.4954 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002512/0.1532, allocations: 64.08 kB / 0.4954 GB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.1532, allocations: 4 kB / 0.4954 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.1533, allocations: 7.984 kB / 0.4954 GB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.1533, allocations: 7.938 kB / 0.4955 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1533, allocations: 0 / 0.4955 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009196/0.1542, allocations: 453.6 kB / 0.4959 GB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.913e-05/0.1543, allocations: 116.6 kB / 0.496 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.579e-05/0.1543, allocations: 16 kB / 0.496 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.1546, allocations: 23.97 kB / 0.496 GB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.1547, allocations: 43.88 kB / 0.4961 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.1547, allocations: 12 kB / 0.4961 GB, free: 2.715 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003146/0.155, allocations: 251.2 kB / 0.4963 GB, free: 2.477 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.155, allocations: 3.938 kB / 0.4963 GB, free: 2.473 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004268/0.1555, allocations: 91.89 kB / 0.4964 GB, free: 2.383 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.001046/0.1565, allocations: 464 kB / 0.4969 GB, free: 1.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.1576, allocations: 412 kB / 0.4973 GB, free: 1.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1576, allocations: 0 / 0.4973 GB, free: 1.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005108/0.1581, allocations: 193.2 kB / 0.4974 GB, free: 1.312 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.1585, allocations: 77.75 kB / 0.4975 GB, free: 1.234 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.1597, allocations: 0.7005 MB / 0.4982 GB, free: 500 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005952/0.1603, allocations: 0.8188 MB / 0.499 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002188/0.1605, allocations: 91.17 kB / 0.4991 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.1606, allocations: 47.42 kB / 0.4991 GB, free: 15.51 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1607, allocations: 0 / 0.4991 GB, free: 15.51 MB / 398.1 MB Notification: Performance of Templates: time 0.009464/0.1701, allocations: 4.832 MB / 0.5038 GB, free: 10.67 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)