Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 106.3 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.001182/0.001182, allocations: 185.4 kB / 18.67 MB, free: 4.438 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.418/1.418, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1826/0.1826, allocations: 37.98 MB / 309.9 MB, free: 5.969 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.001449/0.001449, allocations: 63.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1032, allocations: 55.25 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.007248/0.1105, allocations: 5.149 MB / 492.9 MB, free: 3.176 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003722/0.1142, allocations: 2.191 MB / 495.1 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005343/0.1148, allocations: 23.88 kB / 495.2 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.1158, allocations: 258.5 kB / 495.4 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009472/0.1168, allocations: 334.1 kB / 495.7 MB, free: 380 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009073/0.1177, allocations: 407.2 kB / 496.1 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009257/0.1186, allocations: 0.9126 MB / 497 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006715/0.1193, allocations: 0.5083 MB / 497.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004349/0.1197, allocations: 354.6 kB / 497.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004203/0.1202, allocations: 354.4 kB / 498.2 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.683e-05/0.1203, allocations: 68 kB / 498.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005092/0.1208, allocations: 355.2 kB / 498.7 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.121, allocations: 183.5 kB / 498.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003046/0.1213, allocations: 338.2 kB / 499.2 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009212/0.1222, allocations: 0.9228 MB / 0.4884 GB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1222, allocations: 0 / 0.4884 GB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1223, allocations: 0 / 0.4884 GB, free: 12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.1223, allocations: 0 / 0.4884 GB, free: 12 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001964/0.1242, allocations: 1.034 MB / 0.4894 GB, free: 10.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.1243, allocations: 15.89 kB / 0.4894 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008367/0.1251, allocations: 148 kB / 0.4895 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008732/0.126, allocations: 0.5326 MB / 0.4901 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/0.1261, allocations: 37.38 kB / 0.4901 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.1262, allocations: 64.23 kB / 0.4902 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.1274, allocations: 0.6788 MB / 0.4908 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/0.1274, allocations: 3.906 kB / 0.4908 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.1275, allocations: 20 kB / 0.4908 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.154e-05/0.1275, allocations: 32.98 kB / 0.4909 GB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.1288, allocations: 0.5932 MB / 0.4914 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003397/0.1322, allocations: 2.684 MB / 0.4941 GB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.1335, allocations: 0.6045 MB / 0.4947 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.134, allocations: 218.2 kB / 0.4949 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.1341, allocations: 4.328 kB / 0.4949 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006021/0.1347, allocations: 305.6 kB / 0.4952 GB, free: 4.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.214e-06/0.1347, allocations: 4 kB / 0.4952 GB, free: 4.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001743/0.1364, allocations: 0.7485 MB / 0.4959 GB, free: 3.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/0.1365, allocations: 136.5 kB / 0.496 GB, free: 3.762 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006646/0.1372, allocations: 0.4981 MB / 0.4965 GB, free: 3.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.1372, allocations: 37.86 kB / 0.4966 GB, free: 3.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002388/0.1375, allocations: 303.9 kB / 0.4968 GB, free: 2.906 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.1376, allocations: 141.9 kB / 0.497 GB, free: 2.766 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/0.1378, allocations: 90.23 kB / 0.4971 GB, free: 2.672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1379, allocations: 362.8 kB / 0.4974 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004843/0.1384, allocations: 203 kB / 0.4976 GB, free: 2.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005449/0.139, allocations: 307.2 kB / 0.4979 GB, free: 1.758 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.14, allocations: 0.5216 MB / 0.4984 GB, free: 1.184 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.14, allocations: 4 kB / 0.4984 GB, free: 1.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001788/0.1418, allocations: 0.7686 MB / 0.4992 GB, free: 404 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.1419, allocations: 37.69 kB / 0.4992 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.1419, allocations: 4 kB / 0.4992 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005325/0.1424, allocations: 140.8 kB / 0.4993 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003983/0.1429, allocations: 96.06 kB / 0.4994 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003591/0.1465, allocations: 2.647 MB / 0.502 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004551/0.1469, allocations: 79.48 kB / 0.5021 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.684e-05/0.147, allocations: 16 kB / 0.5021 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000575/0.1476, allocations: 341.3 kB / 0.5024 GB, free: 12.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000513/0.1481, allocations: 303.1 kB / 0.5027 GB, free: 12.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009036/0.149, allocations: 0.4986 MB / 0.5032 GB, free: 12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.149, allocations: 0 / 0.5032 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001385/0.1504, allocations: 0.6939 MB / 0.5039 GB, free: 11.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.1504, allocations: 33.7 kB / 0.5039 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.1505, allocations: 4.438 kB / 0.5039 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003351/0.1508, allocations: 128.8 kB / 0.504 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.1512, allocations: 87.81 kB / 0.5041 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.1537, allocations: 2.447 MB / 0.5065 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004419/0.1542, allocations: 63.55 kB / 0.5066 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.1542, allocations: 20 kB / 0.5066 GB, free: 8.363 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.1544, allocations: 208.3 kB / 0.5068 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.322e-05/0.1545, allocations: 63.28 kB / 0.5069 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001244/0.1557, allocations: 0.5122 MB / 0.5074 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.1558, allocations: 3.984 kB / 0.5074 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1558, allocations: 0 / 0.5074 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002323/0.156, allocations: 172.3 kB / 0.5075 GB, free: 7.371 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.242e-05/0.1561, allocations: 15.88 kB / 0.5075 GB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003854/0.1565, allocations: 43.95 kB / 0.5076 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.1566, allocations: 35.94 kB / 0.5076 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001576/0.1582, allocations: 0.7773 MB / 0.5084 GB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001608/0.1598, allocations: 1.052 MB / 0.5094 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005108/0.1603, allocations: 227.8 kB / 0.5096 GB, free: 5.195 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005308/0.1609, allocations: 358.8 kB / 0.51 GB, free: 4.848 MB / 398.1 MB Notification: Performance of Backend: time 6.12e-07/0.1609, allocations: 0 / 0.51 GB, free: 4.848 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002828/0.1637, allocations: 1.202 MB / 0.5111 GB, free: 3.59 MB / 398.1 MB Notification: Performance of SimCode: time 0.002137/0.1659, allocations: 1.651 MB / 0.5127 GB, free: 1.887 MB / 398.1 MB Notification: Performance of Templates: time 0.01796/0.1838, allocations: 11.2 MB / 0.5237 GB, free: 6.672 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)