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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001589/0.001589, allocations: 112.7 kB / 17.75 MB, free: 5.332 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.001865/0.001865, allocations: 187 kB / 18.68 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 222.9 MB / 242.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1811/0.1811, allocations: 38.02 MB / 330.6 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 63.89 kB / 458.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2922, allocations: 58.05 MB / 0.5047 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.PowerWorld): time 0.01226/0.3045, allocations: 13.21 MB / 0.5176 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.3174, allocations: 7.984 MB / 0.5254 GB, free: 8.715 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001979/0.3194, allocations: 65.97 kB / 0.5255 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003652/0.3231, allocations: 1.443 MB / 0.5269 GB, free: 7.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004796/0.3279, allocations: 1.778 MB / 0.5287 GB, free: 6.777 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004125/0.332, allocations: 1.569 MB / 0.5302 GB, free: 5.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005176/0.3372, allocations: 4.002 MB / 0.5341 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003421/0.3406, allocations: 2.109 MB / 0.5362 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002634/0.3433, allocations: 1.53 MB / 0.5376 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002659/0.346, allocations: 1.601 MB / 0.5392 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007939/0.3468, allocations: 287.7 kB / 0.5395 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003939/0.3507, allocations: 1.917 MB / 0.5414 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.3521, allocations: 0.9793 MB / 0.5423 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00233/0.3545, allocations: 1.36 MB / 0.5436 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006345/0.3608, allocations: 4.172 MB / 0.5477 GB, free: 11.18 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3608, allocations: 0 / 0.5477 GB, free: 11.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3608, allocations: 5.312 kB / 0.5477 GB, free: 11.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001424/0.361, allocations: 0 / 0.5477 GB, free: 11.18 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.008737/0.3697, allocations: 3.225 MB / 0.5509 GB, free: 8.848 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.3698, allocations: 13.3 kB / 0.5509 GB, free: 8.844 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004678/0.3745, allocations: 0.6404 MB / 0.5515 GB, free: 8.527 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003656/0.3781, allocations: 1.696 MB / 0.5532 GB, free: 6.781 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.3783, allocations: 152.2 kB / 0.5533 GB, free: 6.633 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004844/0.3788, allocations: 203.8 kB / 0.5535 GB, free: 6.434 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00562/0.3844, allocations: 2.746 MB / 0.5562 GB, free: 3.574 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.898e-05/0.3845, allocations: 7.984 kB / 0.5562 GB, free: 3.566 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002176/0.3847, allocations: 79.98 kB / 0.5563 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/0.3849, allocations: 115.8 kB / 0.5564 GB, free: 3.375 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005537/0.3904, allocations: 2.837 MB / 0.5592 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01519/0.4056, allocations: 9.2 MB / 0.5681 GB, free: 7.074 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006022/0.4117, allocations: 3.206 MB / 0.5713 GB, free: 3.766 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002234/0.4139, allocations: 1.187 MB / 0.5724 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.4141, allocations: 49.94 kB / 0.5725 GB, free: 2.531 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002722/0.4168, allocations: 1.382 MB / 0.5738 GB, free: 1.129 MB / 430.1 MB Notification: Performance of pre-optimization done (n=218): time 4.368e-06/0.4168, allocations: 0 / 0.5738 GB, free: 1.129 MB / 430.1 MB Notification: Performance of matching and sorting (n=229): time 0.02176/0.4386, allocations: 9.302 MB / 0.5829 GB, free: 7.691 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.4388, allocations: 273.3 kB / 0.5832 GB, free: 7.371 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002607/0.4414, allocations: 1.566 MB / 0.5847 GB, free: 5.805 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002347/0.4416, allocations: 81.69 kB / 0.5848 GB, free: 5.719 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008601/0.4425, allocations: 0.9499 MB / 0.5857 GB, free: 4.758 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007438/0.4432, allocations: 0.7624 MB / 0.5864 GB, free: 3.984 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006818/0.4439, allocations: 376.1 kB / 0.5868 GB, free: 3.609 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.4441, allocations: 309.1 kB / 0.5871 GB, free: 3.305 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/0.4463, allocations: 1.005 MB / 0.5881 GB, free: 2.289 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002522/0.4489, allocations: 1.361 MB / 0.5894 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004814/0.4537, allocations: 2.479 MB / 0.5918 GB, free: 14.21 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.4537, allocations: 4 kB / 0.5918 GB, free: 14.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.00665/0.4604, allocations: 3.127 MB / 0.5949 GB, free: 11.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.842e-05/0.4605, allocations: 67.39 kB / 0.595 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.4605, allocations: 8 kB / 0.595 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009942/0.4615, allocations: 329.6 kB / 0.5953 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002344/0.4639, allocations: 0.4915 MB / 0.5958 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006403/0.4703, allocations: 5.306 MB / 0.6009 GB, free: 4.559 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/0.4722, allocations: 155.8 kB / 0.6011 GB, free: 4.406 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002572/0.4725, allocations: 87.97 kB / 0.6012 GB, free: 4.32 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002984/0.4755, allocations: 1.433 MB / 0.6026 GB, free: 2.879 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002322/0.4778, allocations: 1.329 MB / 0.6039 GB, free: 1.418 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004376/0.4822, allocations: 2.413 MB / 0.6062 GB, free: 14.89 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.865e-06/0.4822, allocations: 4 kB / 0.6062 GB, free: 14.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=279) (initialization_lambda0): time 0.006054/0.4883, allocations: 3.037 MB / 0.6092 GB, free: 11.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.945e-05/0.4883, allocations: 75.33 kB / 0.6093 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.4884, allocations: 8 kB / 0.6093 GB, free: 11.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009136/0.4893, allocations: 331.9 kB / 0.6096 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002178/0.4915, allocations: 495.2 kB / 0.6101 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006133/0.4976, allocations: 5.31 MB / 0.6152 GB, free: 5.324 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.4995, allocations: 151.9 kB / 0.6154 GB, free: 5.176 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002618/0.4998, allocations: 83.98 kB / 0.6155 GB, free: 5.094 MB / 478.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.000622/0.5004, allocations: 319.7 kB / 0.6158 GB, free: 4.773 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005318/0.501, allocations: 229.1 kB / 0.616 GB, free: 4.547 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007147/0.5081, allocations: 3.189 MB / 0.6191 GB, free: 1.336 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.699e-05/0.5082, allocations: 11.95 kB / 0.6191 GB, free: 1.324 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.5082, allocations: 0 / 0.6191 GB, free: 1.324 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.5093, allocations: 0.5059 MB / 0.6196 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004486/0.5098, allocations: 60 kB / 0.6197 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/0.5113, allocations: 147.8 kB / 0.6198 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004363/0.5118, allocations: 213.6 kB / 0.62 GB, free: 396 kB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008535/0.5203, allocations: 3.446 MB / 0.6234 GB, free: 12.92 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007878/0.5282, allocations: 4.212 MB / 0.6275 GB, free: 8.68 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002234/0.5305, allocations: 1.183 MB / 0.6286 GB, free: 7.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002015/0.5325, allocations: 1.08 MB / 0.6297 GB, free: 6.43 MB / 494.1 MB Notification: Performance of Backend: time 4.41e-07/0.5325, allocations: 0 / 0.6297 GB, free: 6.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01127/0.5438, allocations: 5.099 MB / 0.6347 GB, free: 1.43 MB / 494.1 MB Notification: Performance of SimCode: time 0.008067/0.5519, allocations: 5.196 MB / 0.6398 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of Templates: time 0.07868/0.6306, allocations: 50.1 MB / 0.6887 GB, free: 10.23 MB / 0.545 GB 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)