Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 111.9 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.001419/0.001419, allocations: 193.5 kB / 18.67 MB, free: 4.434 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.299/1.299, 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.1709/0.1709, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001331/0.001331, allocations: 63.91 kB / 432.5 MB, free: 15.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.09099, allocations: 55.25 MB / 487.8 MB, free: 8.461 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.006535/0.09756, allocations: 5.437 MB / 493.2 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003292/0.1009, allocations: 2.296 MB / 495.5 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000331/0.1012, allocations: 31.81 kB / 495.5 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008431/0.1021, allocations: 266.2 kB / 495.8 MB, free: 400 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000654/0.1028, allocations: 346 kB / 496.1 MB, free: 52 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009073/0.1037, allocations: 0.5069 MB / 496.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009524/0.1046, allocations: 1.038 MB / 497.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007792/0.1054, allocations: 0.6152 MB / 498.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004716/0.1059, allocations: 410.4 kB / 498.7 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004468/0.1064, allocations: 406.1 kB / 499.1 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.1065, allocations: 80 kB / 499.2 MB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004944/0.107, allocations: 355.3 kB / 499.5 MB, free: 12.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.1072, allocations: 219.3 kB / 499.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003035/0.1075, allocations: 378 kB / 0.4884 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.1086, allocations: 1.098 MB / 0.4895 GB, free: 10.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.1086, allocations: 0 / 0.4895 GB, free: 10.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1086, allocations: 0 / 0.4895 GB, free: 10.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.1086, allocations: 0 / 0.4895 GB, free: 10.96 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001969/0.1106, allocations: 1.118 MB / 0.4906 GB, free: 9.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.1106, allocations: 11.89 kB / 0.4906 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000854/0.1115, allocations: 167.7 kB / 0.4907 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009389/0.1125, allocations: 0.6163 MB / 0.4913 GB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.407e-05/0.1125, allocations: 53.62 kB / 0.4914 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.1126, allocations: 64.28 kB / 0.4914 GB, free: 8.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.1138, allocations: 0.7525 MB / 0.4922 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.1139, allocations: 3.938 kB / 0.4922 GB, free: 8.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-05/0.1139, allocations: 28 kB / 0.4922 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.708e-05/0.114, allocations: 29.3 kB / 0.4922 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.1152, allocations: 0.6336 MB / 0.4929 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003643/0.1188, allocations: 2.891 MB / 0.4957 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.1201, allocations: 0.6994 MB / 0.4964 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004362/0.1206, allocations: 223 kB / 0.4966 GB, free: 3.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.292e-05/0.1206, allocations: 16.42 kB / 0.4966 GB, free: 3.371 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.1207, allocations: 39 kB / 0.4966 GB, free: 3.324 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.516e-06/0.1207, allocations: 96 / 0.4966 GB, free: 3.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001471/0.1222, allocations: 0.698 MB / 0.4973 GB, free: 2.621 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.1222, allocations: 115.2 kB / 0.4974 GB, free: 2.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007527/0.123, allocations: 0.5861 MB / 0.498 GB, free: 1.887 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.247e-05/0.1231, allocations: 41.83 kB / 0.498 GB, free: 1.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.1233, allocations: 348.5 kB / 0.4984 GB, free: 1.492 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.1235, allocations: 177.4 kB / 0.4985 GB, free: 1.316 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.1236, allocations: 98.25 kB / 0.4986 GB, free: 1.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1238, allocations: 378.8 kB / 0.499 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000468/0.1243, allocations: 219 kB / 0.4992 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005232/0.1248, allocations: 344.4 kB / 0.4995 GB, free: 236 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000977/0.1258, allocations: 0.5529 MB / 0.5001 GB, free: 15.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1258, allocations: 3.938 kB / 0.5001 GB, free: 15.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001694/0.1275, allocations: 0.7807 MB / 0.5008 GB, free: 14.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1275, allocations: 4 kB / 0.5008 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1276, allocations: 4 kB / 0.5008 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004076/0.128, allocations: 121.1 kB / 0.5009 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005687/0.1286, allocations: 135.8 kB / 0.5011 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003032/0.1316, allocations: 2.428 MB / 0.5034 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.1321, allocations: 79.41 kB / 0.5035 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.1321, allocations: 23.94 kB / 0.5035 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006333/0.1328, allocations: 369.1 kB / 0.5039 GB, free: 11.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004864/0.1332, allocations: 332.5 kB / 0.5042 GB, free: 11.17 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008975/0.1342, allocations: 0.5296 MB / 0.5047 GB, free: 10.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.954e-06/0.1342, allocations: 3.938 kB / 0.5047 GB, free: 10.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001312/0.1355, allocations: 0.6987 MB / 0.5054 GB, free: 9.879 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.1355, allocations: 11.91 kB / 0.5054 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1355, allocations: 4 kB / 0.5054 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002539/0.1358, allocations: 93.2 kB / 0.5055 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.1363, allocations: 135.8 kB / 0.5057 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.1384, allocations: 2.221 MB / 0.5078 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000421/0.1388, allocations: 67.55 kB / 0.5079 GB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.823e-05/0.1389, allocations: 24.06 kB / 0.5079 GB, free: 7.184 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001927/0.1391, allocations: 212.1 kB / 0.5081 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.1392, allocations: 71.09 kB / 0.5082 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.1404, allocations: 0.5693 MB / 0.5087 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1404, allocations: 4 kB / 0.5087 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.1404, allocations: 0 / 0.5087 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.1404, allocations: 3.984 kB / 0.5087 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.1425, allocations: 1.318 MB / 0.51 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1425, allocations: 0 / 0.51 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005559/0.1431, allocations: 111.8 kB / 0.5101 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1431, allocations: 0 / 0.5101 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.679e-05/0.1431, allocations: 12 kB / 0.5101 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.1431, allocations: 4 kB / 0.5102 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1431, allocations: 0 / 0.5102 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.1446, allocations: 0.9141 MB / 0.511 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/0.1448, allocations: 192.1 kB / 0.5112 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.273e-05/0.1449, allocations: 12 kB / 0.5112 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.1453, allocations: 36.34 kB / 0.5113 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.194e-05/0.1454, allocations: 40.31 kB / 0.5113 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.009e-05/0.1454, allocations: 16 kB / 0.5113 GB, free: 3.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000544/0.146, allocations: 431 kB / 0.5117 GB, free: 3.148 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.146, allocations: 0 / 0.5117 GB, free: 3.148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008033/0.1468, allocations: 259.3 kB / 0.512 GB, free: 2.895 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000134/0.1469, allocations: 107.2 kB / 0.5121 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002056/0.149, allocations: 1.099 MB / 0.5132 GB, free: 1.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.149, allocations: 0 / 0.5132 GB, free: 1.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004686/0.1495, allocations: 258.8 kB / 0.5134 GB, free: 1.406 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007096/0.1502, allocations: 147.2 kB / 0.5135 GB, free: 1.266 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.1529, allocations: 1.556 MB / 0.5151 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000504/0.1534, allocations: 0.9418 MB / 0.516 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.1536, allocations: 43.44 kB / 0.516 GB, free: 14.65 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1536, allocations: 0 / 0.516 GB, free: 14.65 MB / 414.1 MB Notification: Performance of Templates: time 0.01245/0.166, allocations: 9.991 MB / 0.5258 GB, free: 4.641 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)