Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001273, allocations: 109.3 kB / 17.69 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.00125/0.00125, allocations: 188.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.262/1.262, 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.1649/0.1649, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001365/0.001366, allocations: 75.89 kB / 432.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08007/0.08145, allocations: 55.24 MB / 487.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.006544/0.08803, allocations: 5.924 MB / 493.6 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003765/0.09182, allocations: 2.774 MB / 496.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003919/0.09223, allocations: 27.88 kB / 496.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00101/0.09327, allocations: 393.8 kB / 496.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000844/0.09413, allocations: 473.6 kB / 497.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009767/0.09512, allocations: 0.5536 MB / 497.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001073/0.0962, allocations: 1.202 MB / 499 MB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008296/0.09704, allocations: 0.713 MB / 499.8 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004985/0.09755, allocations: 458.1 kB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004826/0.09805, allocations: 473.9 kB / 0.4889 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.85e-05/0.09815, allocations: 88 kB / 0.489 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007153/0.09887, allocations: 0.5262 MB / 0.4895 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.09911, allocations: 263.2 kB / 0.4898 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003515/0.09947, allocations: 437.6 kB / 0.4902 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.1006, allocations: 1.246 MB / 0.4914 GB, free: 8.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1006, allocations: 0 / 0.4914 GB, free: 8.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1006, allocations: 4 kB / 0.4914 GB, free: 8.793 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.1006, allocations: 0 / 0.4914 GB, free: 8.793 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.001974/0.1026, allocations: 1.208 MB / 0.4926 GB, free: 7.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.1026, allocations: 15.89 kB / 0.4926 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.1038, allocations: 195.7 kB / 0.4928 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009069/0.1047, allocations: 0.6436 MB / 0.4934 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.288e-05/0.1048, allocations: 49.69 kB / 0.4935 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.1049, allocations: 80.27 kB / 0.4936 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.1063, allocations: 0.8743 MB / 0.4944 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.1063, allocations: 3.938 kB / 0.4944 GB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.7e-05/0.1064, allocations: 31.98 kB / 0.4944 GB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.343e-05/0.1064, allocations: 45.23 kB / 0.4945 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.1079, allocations: 0.778 MB / 0.4952 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004173/0.1121, allocations: 3.229 MB / 0.4984 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.1137, allocations: 0.9612 MB / 0.4993 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005422/0.1142, allocations: 319.3 kB / 0.4996 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.584e-05/0.1143, allocations: 8.562 kB / 0.4996 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.1143, allocations: 39.12 kB / 0.4997 GB, free: 15.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.174e-06/0.1143, allocations: 0 / 0.4997 GB, free: 15.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=63): time 0.004667/0.119, allocations: 2.54 MB / 0.5022 GB, free: 13.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.1191, allocations: 115.4 kB / 0.5023 GB, free: 13.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007219/0.1198, allocations: 0.5861 MB / 0.5028 GB, free: 12.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.1199, allocations: 37.7 kB / 0.5029 GB, free: 12.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002415/0.1201, allocations: 372.2 kB / 0.5032 GB, free: 12.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.1203, allocations: 220.8 kB / 0.5034 GB, free: 11.97 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.1205, allocations: 114.7 kB / 0.5036 GB, free: 11.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1206, allocations: 390.8 kB / 0.5039 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005561/0.1212, allocations: 276.6 kB / 0.5042 GB, free: 11.19 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000625/0.1218, allocations: 409.8 kB / 0.5046 GB, free: 10.74 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/0.123, allocations: 0.7044 MB / 0.5053 GB, free: 9.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.123, allocations: 0 / 0.5053 GB, free: 9.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00152/0.1246, allocations: 0.8345 MB / 0.5061 GB, free: 9.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.1246, allocations: 4 kB / 0.5061 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1246, allocations: 4 kB / 0.5061 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.1249, allocations: 64.81 kB / 0.5062 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006908/0.1256, allocations: 180 kB / 0.5063 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/0.1272, allocations: 1.802 MB / 0.5081 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004525/0.1276, allocations: 52.02 kB / 0.5081 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.795e-05/0.1277, allocations: 27.94 kB / 0.5082 GB, free: 6.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007089/0.1284, allocations: 446 kB / 0.5086 GB, free: 6.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005768/0.129, allocations: 401.8 kB / 0.509 GB, free: 5.977 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001072/0.1301, allocations: 0.6733 MB / 0.5096 GB, free: 5.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.195e-06/0.1301, allocations: 0 / 0.5096 GB, free: 5.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization_lambda0): time 0.001418/0.1315, allocations: 0.7998 MB / 0.5104 GB, free: 4.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.1315, allocations: 11.98 kB / 0.5104 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.1315, allocations: 8 kB / 0.5104 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001923/0.1317, allocations: 64.75 kB / 0.5105 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.1324, allocations: 175.6 kB / 0.5107 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/0.1339, allocations: 1.814 MB / 0.5124 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004393/0.1343, allocations: 51.94 kB / 0.5125 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.1344, allocations: 23.98 kB / 0.5125 GB, free: 2.16 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (80): * Single equations (assignments): 79 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000181/0.1345, allocations: 228 kB / 0.5127 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.1347, allocations: 71.16 kB / 0.5128 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001567/0.1362, allocations: 0.7724 MB / 0.5135 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.1362, allocations: 8 kB / 0.5136 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1363, allocations: 0 / 0.5136 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.1363, allocations: 3.984 kB / 0.5136 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003674/0.14, allocations: 2.135 MB / 0.5156 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.14, allocations: 8.094 kB / 0.5156 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005413/0.1405, allocations: 135.7 kB / 0.5158 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001817/0.1407, allocations: 56.81 kB / 0.5158 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.141e-05/0.1408, allocations: 20 kB / 0.5159 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/0.1421, allocations: 1.76 MB / 0.5176 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.1421, allocations: 11.94 kB / 0.5176 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002065/0.1442, allocations: 1.327 MB / 0.5189 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002278/0.1445, allocations: 204.1 kB / 0.5191 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.347e-05/0.1445, allocations: 24 kB / 0.5191 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004631/0.145, allocations: 47.95 kB / 0.5191 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.1451, allocations: 79.61 kB / 0.5192 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.922e-05/0.1452, allocations: 27.94 kB / 0.5192 GB, free: 10.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005579/0.1457, allocations: 423 kB / 0.5196 GB, free: 10.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1458, allocations: 4 kB / 0.5197 GB, free: 10.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009448/0.1467, allocations: 252 kB / 0.5199 GB, free: 10.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (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 (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000136/0.1469, allocations: 123.9 kB / 0.52 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002207/0.1491, allocations: 1.274 MB / 0.5213 GB, free: 8.758 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.1491, allocations: 3.938 kB / 0.5213 GB, free: 8.754 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008007/0.1499, allocations: 491.7 kB / 0.5217 GB, free: 8.262 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008532/0.1508, allocations: 166.8 kB / 0.5219 GB, free: 8.098 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.1533, allocations: 1.744 MB / 0.5236 GB, free: 6.234 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005284/0.1538, allocations: 0.9899 MB / 0.5246 GB, free: 5.219 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/0.154, allocations: 59.42 kB / 0.5246 GB, free: 5.16 MB / 414.1 MB Notification: Performance of SimCode: time 4.2e-07/0.154, allocations: 0 / 0.5246 GB, free: 5.16 MB / 414.1 MB Notification: Performance of Templates: time 0.1973/0.3513, allocations: 12.53 MB / 0.5368 GB, free: 48.04 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)