Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 108.3 kB / 17.7 MB, free: 5.496 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.001342/0.001342, allocations: 187.1 kB / 18.62 MB, free: 4.578 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.228/1.228, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1638/0.1638, allocations: 37.98 MB / 309.8 MB, free: 5.977 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.00204/0.00204, allocations: 63.91 kB / 432.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1055, allocations: 55.24 MB / 487.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006487/0.112, allocations: 5.476 MB / 493.2 MB, free: 2.871 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003332/0.1154, allocations: 2.308 MB / 495.5 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003777/0.1158, allocations: 27.81 kB / 495.5 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008363/0.1167, allocations: 274.2 kB / 495.8 MB, free: 260 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007244/0.1174, allocations: 354 kB / 496.1 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009387/0.1183, allocations: 0.4952 MB / 496.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009605/0.1193, allocations: 1.057 MB / 497.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007685/0.1201, allocations: 0.627 MB / 498.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004641/0.1206, allocations: 402.4 kB / 498.7 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004257/0.121, allocations: 402.1 kB / 499.1 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.221e-05/0.1211, allocations: 80 kB / 499.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005337/0.1216, allocations: 355.3 kB / 499.5 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002044/0.1219, allocations: 219.3 kB / 499.7 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003217/0.1222, allocations: 401.8 kB / 0.4884 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.1232, allocations: 1.094 MB / 0.4895 GB, free: 10.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1233, allocations: 0 / 0.4895 GB, free: 10.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1233, allocations: 0 / 0.4895 GB, free: 10.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.1233, allocations: 4 kB / 0.4895 GB, free: 10.79 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.001899/0.1252, allocations: 1.141 MB / 0.4906 GB, free: 9.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.1252, allocations: 15.83 kB / 0.4906 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008213/0.126, allocations: 159.8 kB / 0.4908 GB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008562/0.1269, allocations: 0.6163 MB / 0.4914 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.516e-05/0.127, allocations: 45.69 kB / 0.4914 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.1271, allocations: 68.36 kB / 0.4915 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.1283, allocations: 0.772 MB / 0.4922 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.1283, allocations: 7.844 kB / 0.4922 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.835e-05/0.1284, allocations: 28 kB / 0.4923 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.571e-05/0.1284, allocations: 25.31 kB / 0.4923 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.1297, allocations: 0.657 MB / 0.4929 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003664/0.1333, allocations: 2.903 MB / 0.4958 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.1348, allocations: 0.7311 MB / 0.4965 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005016/0.1353, allocations: 251 kB / 0.4967 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.1354, allocations: 8.375 kB / 0.4967 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.1354, allocations: 39 kB / 0.4968 GB, free: 3.027 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 4.399e-06/0.1354, allocations: 4.078 kB / 0.4968 GB, free: 3.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.001643/0.137, allocations: 0.752 MB / 0.4975 GB, free: 2.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/0.1371, allocations: 115.3 kB / 0.4976 GB, free: 2.125 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007183/0.1379, allocations: 0.59 MB / 0.4982 GB, free: 1.527 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.95e-05/0.1379, allocations: 37.7 kB / 0.4982 GB, free: 1.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.1382, allocations: 348.4 kB / 0.4986 GB, free: 1.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.1383, allocations: 181.3 kB / 0.4987 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.1385, allocations: 110.2 kB / 0.4988 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1386, allocations: 378.8 kB / 0.4992 GB, free: 476 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005142/0.1391, allocations: 231.3 kB / 0.4994 GB, free: 240 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005833/0.1397, allocations: 353.6 kB / 0.4998 GB, free: 15.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.1408, allocations: 0.5899 MB / 0.5003 GB, free: 15.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.1408, allocations: 4 kB / 0.5003 GB, free: 15.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001731/0.1425, allocations: 0.8148 MB / 0.5011 GB, free: 14.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.1426, allocations: 8 kB / 0.5011 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1426, allocations: 4 kB / 0.5011 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003936/0.143, allocations: 113.2 kB / 0.5012 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/0.1435, allocations: 135.8 kB / 0.5014 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002762/0.1463, allocations: 2.424 MB / 0.5037 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004784/0.1468, allocations: 95.33 kB / 0.5038 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.1469, allocations: 23.98 kB / 0.5039 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000671/0.1475, allocations: 389.2 kB / 0.5042 GB, free: 11.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005255/0.1481, allocations: 337.6 kB / 0.5045 GB, free: 10.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000968/0.1491, allocations: 0.5627 MB / 0.5051 GB, free: 10.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.299e-06/0.1491, allocations: 0 / 0.5051 GB, free: 10.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.00138/0.1505, allocations: 0.7371 MB / 0.5058 GB, free: 9.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1505, allocations: 12 kB / 0.5058 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1505, allocations: 7.938 kB / 0.5058 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002579/0.1508, allocations: 92.8 kB / 0.5059 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000542/0.1513, allocations: 135.8 kB / 0.5061 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001996/0.1533, allocations: 2.221 MB / 0.5082 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004589/0.1538, allocations: 67.5 kB / 0.5083 GB, free: 6.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.1538, allocations: 27.98 kB / 0.5083 GB, free: 6.605 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 (61): * Single equations (assignments): 60 * 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.0002046/0.154, allocations: 212.1 kB / 0.5085 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1542, allocations: 75.22 kB / 0.5086 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.1554, allocations: 0.6005 MB / 0.5092 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1555, allocations: 8 kB / 0.5092 GB, free: 5.699 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1555, allocations: 7.984 kB / 0.5092 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1555, allocations: 0 / 0.5092 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.1576, allocations: 1.353 MB / 0.5105 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1576, allocations: 4 kB / 0.5105 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005719/0.1582, allocations: 115.8 kB / 0.5106 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.1582, allocations: 4 kB / 0.5106 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.721e-05/0.1582, allocations: 11.98 kB / 0.5106 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1583, allocations: 4 kB / 0.5106 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1583, allocations: 0 / 0.5106 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/0.16, allocations: 0.9609 MB / 0.5116 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/0.1602, allocations: 192.2 kB / 0.5118 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.965e-05/0.1603, allocations: 12.39 kB / 0.5118 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.1607, allocations: 47.89 kB / 0.5118 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.71e-05/0.1608, allocations: 40.38 kB / 0.5119 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.1608, allocations: 15.94 kB / 0.5119 GB, free: 2.848 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000583/0.1614, allocations: 423 kB / 0.5123 GB, free: 2.438 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1614, allocations: 0 / 0.5123 GB, free: 2.438 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008621/0.1623, allocations: 275.1 kB / 0.5125 GB, free: 2.168 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 (51): * Single equations (assignments): 50 * 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.0001212/0.1624, allocations: 111.3 kB / 0.5127 GB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002063/0.1645, allocations: 1.14 MB / 0.5138 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1645, allocations: 4.125 kB / 0.5138 GB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005229/0.165, allocations: 274.3 kB / 0.514 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007069/0.1657, allocations: 150.8 kB / 0.5142 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.1684, allocations: 1.568 MB / 0.5157 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.1689, allocations: 0.9458 MB / 0.5166 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.169, allocations: 51.42 kB / 0.5167 GB, free: 13.83 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1691, allocations: 0 / 0.5167 GB, free: 13.83 MB / 414.1 MB Notification: Performance of Templates: time 0.01202/0.1811, allocations: 9.995 MB / 0.5264 GB, free: 3.816 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1)