Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld.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.PowerWorld,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld") translateModel(PowerSystems.Examples.PowerWorld.PowerWorld,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 110.5 kB / 17.75 MB, free: 5.309 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.001307/0.001307, allocations: 183 kB / 18.68 MB, free: 4.391 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.361/1.361, allocations: 205.1 MB / 224.6 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.191/0.191, allocations: 37.98 MB / 309.9 MB, free: 5.953 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.001414/0.001414, allocations: 71.03 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1057, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.PowerWorld): time 0.01595/0.1217, allocations: 13.24 MB / 0.4893 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01406/0.1358, allocations: 7.916 MB / 0.497 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003266/0.1391, allocations: 71.62 kB / 0.4971 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004154/0.1433, allocations: 1.446 MB / 0.4985 GB, free: 1.582 MB / 382.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.005275/0.1486, allocations: 1.742 MB / 0.5002 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003897/0.1525, allocations: 1.524 MB / 0.5017 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005168/0.1577, allocations: 3.998 MB / 0.5056 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003529/0.1612, allocations: 2.093 MB / 0.5076 GB, free: 8.152 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002761/0.164, allocations: 1.541 MB / 0.5091 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002625/0.1666, allocations: 1.599 MB / 0.5107 GB, free: 5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000951/0.1676, allocations: 288 kB / 0.511 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003859/0.1715, allocations: 1.914 MB / 0.5128 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001311/0.1728, allocations: 0.9739 MB / 0.5138 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002126/0.175, allocations: 1.38 MB / 0.5151 GB, free: 448 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005781/0.1807, allocations: 4.182 MB / 0.5192 GB, free: 12.24 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.1808, allocations: 0 / 0.5192 GB, free: 12.24 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1808, allocations: 3.984 kB / 0.5192 GB, free: 12.24 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000151/0.1809, allocations: 0 / 0.5192 GB, free: 12.24 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.008378/0.1893, allocations: 3.238 MB / 0.5224 GB, free: 8.914 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.1894, allocations: 11.89 kB / 0.5224 GB, free: 8.902 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004322/0.1937, allocations: 0.6453 MB / 0.523 GB, free: 8.254 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003428/0.1972, allocations: 1.708 MB / 0.5247 GB, free: 6.496 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.1973, allocations: 152.2 kB / 0.5248 GB, free: 6.348 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003285/0.1977, allocations: 215.8 kB / 0.525 GB, free: 6.137 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005027/0.2027, allocations: 2.738 MB / 0.5277 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-05/0.2028, allocations: 11.84 kB / 0.5277 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002063/0.203, allocations: 87.97 kB / 0.5278 GB, free: 3.188 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001317/0.2031, allocations: 103.8 kB / 0.5279 GB, free: 3.086 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005387/0.2085, allocations: 2.841 MB / 0.5307 GB, free: 248 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2552/0.4638, allocations: 9.196 MB / 0.5397 GB, free: 44.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005422/0.4692, allocations: 3.215 MB / 0.5428 GB, free: 43.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002219/0.4715, allocations: 1.184 MB / 0.544 GB, free: 42.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001632/0.4716, allocations: 52.34 kB / 0.544 GB, free: 42.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00273/0.4744, allocations: 1.378 MB / 0.5454 GB, free: 42.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=218): time 4.869e-06/0.4744, allocations: 0 / 0.5454 GB, free: 42.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=229): time 0.01943/0.4938, allocations: 9.297 MB / 0.5544 GB, free: 38.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.515e-05/0.4939, allocations: 265.5 kB / 0.5547 GB, free: 37.87 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/0.496, allocations: 1.597 MB / 0.5563 GB, free: 37.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001466/0.4962, allocations: 81.45 kB / 0.5563 GB, free: 36.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006117/0.4968, allocations: 0.9513 MB / 0.5573 GB, free: 36.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004821/0.4973, allocations: 0.7711 MB / 0.558 GB, free: 35.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005373/0.4979, allocations: 373 kB / 0.5584 GB, free: 35.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.926e-05/0.4979, allocations: 312.9 kB / 0.5587 GB, free: 34.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.4996, allocations: 1.005 MB / 0.5596 GB, free: 34.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001824/0.5015, allocations: 1.362 MB / 0.561 GB, free: 33.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003633/0.5051, allocations: 2.487 MB / 0.5634 GB, free: 32.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.313e-06/0.5051, allocations: 3.906 kB / 0.5634 GB, free: 32.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.005301/0.5105, allocations: 3.118 MB / 0.5665 GB, free: 29.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.726e-05/0.5105, allocations: 67.39 kB / 0.5665 GB, free: 29.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.5106, allocations: 8 kB / 0.5665 GB, free: 29.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008232/0.5114, allocations: 325.5 kB / 0.5668 GB, free: 29.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/0.5133, allocations: 0.4953 MB / 0.5673 GB, free: 28.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004918/0.5183, allocations: 5.31 MB / 0.5725 GB, free: 23.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/0.5204, allocations: 159.9 kB / 0.5727 GB, free: 22.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/0.5206, allocations: 83.98 kB / 0.5727 GB, free: 22.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002474/0.5231, allocations: 1.433 MB / 0.5741 GB, free: 21.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001731/0.5248, allocations: 1.328 MB / 0.5754 GB, free: 19.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003366/0.5282, allocations: 2.421 MB / 0.5778 GB, free: 17.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.642e-06/0.5282, allocations: 4 kB / 0.5778 GB, free: 17.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=279) (initialization_lambda0): time 0.004912/0.5332, allocations: 3.042 MB / 0.5808 GB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.5332, allocations: 71.34 kB / 0.5808 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.5332, allocations: 8 kB / 0.5809 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008045/0.534, allocations: 326.1 kB / 0.5812 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.5359, allocations: 0.4886 MB / 0.5816 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004526/0.5405, allocations: 5.292 MB / 0.5868 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.5422, allocations: 151.9 kB / 0.587 GB, free: 7.664 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001568/0.5424, allocations: 83.98 kB / 0.587 GB, free: 7.582 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: 31 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition5,$PRE.city.data.nextTimeEvent,$whenCondition3,$PRE.dispatcher.data.nextTimeEvent,$whenCondition2,system.initime,dispatcher.hydroDaily.count,$PRE.dispatcher.hydroDaily.count,dispatcher.hydroDaily.T_start,$PRE.dispatcher.hydroDaily.T_start,dispatcher.data.nextTimeEventScaled,$PRE.dispatcher.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,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,$whenCondition4,$whenCondition6,hydroPlant.reservoirLevel.local_reset,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset,dispatcher.secondaryControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0005407/0.543, allocations: 327.8 kB / 0.5873 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003623/0.5433, allocations: 225.2 kB / 0.5876 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005748/0.5491, allocations: 3.176 MB / 0.5907 GB, free: 3.844 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.238e-05/0.5491, allocations: 19.83 kB / 0.5907 GB, free: 3.824 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.5491, allocations: 0 / 0.5907 GB, free: 3.824 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008969/0.55, allocations: 0.5031 MB / 0.5912 GB, free: 3.301 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002885/0.5503, allocations: 60 kB / 0.5912 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.5516, allocations: 147.8 kB / 0.5914 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003552/0.552, allocations: 205.7 kB / 0.5916 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006858/0.5588, allocations: 3.442 MB / 0.5949 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007616/0.5665, allocations: 4.219 MB / 0.599 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002177/0.5687, allocations: 1.183 MB / 0.6002 GB, free: 10.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001938/0.5706, allocations: 1.088 MB / 0.6013 GB, free: 8.98 MB / 430.1 MB Notification: Performance of Backend: time 8.21e-07/0.5707, allocations: 0 / 0.6013 GB, free: 8.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0106/0.5813, allocations: 5.11 MB / 0.6063 GB, free: 3.852 MB / 430.1 MB Notification: Performance of SimCode: time 0.007861/0.5892, allocations: 5.218 MB / 0.6114 GB, free: 14.59 MB / 446.1 MB Notification: Performance of Templates: time 0.084/0.6732, allocations: 50.13 MB / 0.6603 GB, free: 12.41 MB / 494.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.PowerWorld.pipe 2>&1)