Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001626/0.00163, allocations: 184.4 kB / 15.77 MB, free: 6.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.04/2.04, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 94.84 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2859/0.2859, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006689/0.000669, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1091, allocations: 56.33 MB / 479 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.009523/0.1187, allocations: 5.606 MB / 484.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006909/0.1256, allocations: 2.726 MB / 487.4 MB, free: 9.668 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001002/0.1267, allocations: 35.81 kB / 487.4 MB, free: 9.633 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006195/0.1273, allocations: 123 kB / 487.5 MB, free: 9.512 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001828/0.1292, allocations: 398.7 kB / 487.9 MB, free: 9.121 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.1311, allocations: 438.5 kB / 488.3 MB, free: 8.695 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001666/0.1328, allocations: 0.6526 MB / 489 MB, free: 8.039 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001758/0.1346, allocations: 0.6979 MB / 489.7 MB, free: 7.297 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008817/0.1355, allocations: 350.5 kB / 490 MB, free: 6.953 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005919/0.1361, allocations: 310.5 kB / 490.3 MB, free: 6.648 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.1362, allocations: 24 kB / 490.4 MB, free: 6.625 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000899/0.1371, allocations: 255.5 kB / 490.6 MB, free: 6.375 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002785/0.1374, allocations: 179.4 kB / 490.8 MB, free: 6.199 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002487/0.1377, allocations: 169.2 kB / 491 MB, free: 6.027 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001648/0.1393, allocations: 0.9079 MB / 491.9 MB, free: 5.117 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1394, allocations: 4 kB / 491.9 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1394, allocations: 0 / 491.9 MB, free: 5.113 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.827e-05/0.1394, allocations: 0 / 491.9 MB, free: 5.113 MB / 330.7 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.003232/0.1427, allocations: 1.075 MB / 492.9 MB, free: 3.988 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1427, allocations: 8.031 kB / 492.9 MB, free: 3.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002136/0.1449, allocations: 222.6 kB / 493.2 MB, free: 3.762 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001703/0.1466, allocations: 0.5881 MB / 493.8 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.023e-05/0.1467, allocations: 61.3 kB / 493.8 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/0.1469, allocations: 64 kB / 493.9 MB, free: 3.008 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002517/0.1494, allocations: 0.8818 MB / 494.8 MB, free: 2.082 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.844e-05/0.1495, allocations: 3.906 kB / 494.8 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.1496, allocations: 28 kB / 494.8 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.319e-05/0.1497, allocations: 49.19 kB / 494.8 MB, free: 2.004 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00259/0.1523, allocations: 0.7975 MB / 495.6 MB, free: 1.207 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008032/0.1604, allocations: 3.276 MB / 498.9 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003049/0.1635, allocations: 0.9882 MB / 499.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.273e-05/0.1636, allocations: 12.61 kB / 499.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/0.1637, allocations: 43.12 kB / 500 MB, free: 12.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 3.577e-06/0.1637, allocations: 0 / 500 MB, free: 12.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.008508/0.1722, allocations: 2.608 MB / 0.4908 GB, free: 9.973 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.052e-05/0.1723, allocations: 111.4 kB / 0.4909 GB, free: 9.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00137/0.1737, allocations: 0.586 MB / 0.4915 GB, free: 9.246 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001484/0.1739, allocations: 37.7 kB / 0.4915 GB, free: 9.203 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003559/0.1743, allocations: 394.7 kB / 0.4919 GB, free: 8.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002969/0.1746, allocations: 212.8 kB / 0.4921 GB, free: 8.605 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.218e-05/0.1747, allocations: 16 kB / 0.4921 GB, free: 8.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1748, allocations: 334.8 kB / 0.4924 GB, free: 8.254 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.1759, allocations: 277.8 kB / 0.4927 GB, free: 7.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.1771, allocations: 425.7 kB / 0.4931 GB, free: 7.508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.1783, allocations: 326 kB / 0.4934 GB, free: 7.188 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.1783, allocations: 7.953 kB / 0.4934 GB, free: 7.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002822/0.1811, allocations: 0.8038 MB / 0.4942 GB, free: 6.363 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008148/0.182, allocations: 1.488 MB / 0.4956 GB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.182, allocations: 4 kB / 0.4956 GB, free: 4.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004344/0.1825, allocations: 68.75 kB / 0.4957 GB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/0.184, allocations: 183.7 kB / 0.4959 GB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002601/0.1866, allocations: 1.685 MB / 0.4975 GB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.1877, allocations: 55.95 kB / 0.4976 GB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.1878, allocations: 24 kB / 0.4976 GB, free: 2.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.1879, allocations: 8 kB / 0.4976 GB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002674/0.1906, allocations: 0.7364 MB / 0.4983 GB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.1906, allocations: 4 kB / 0.4983 GB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003124/0.1909, allocations: 60.77 kB / 0.4984 GB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/0.1924, allocations: 175.8 kB / 0.4986 GB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/0.1948, allocations: 1.709 MB / 0.5002 GB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008041/0.1956, allocations: 31.98 kB / 0.5003 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.1958, allocations: 31.98 kB / 0.5003 GB, free: 15.7 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006635/0.1964, allocations: 324.9 kB / 0.5006 GB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002272/0.1967, allocations: 71.16 kB / 0.5007 GB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00278/0.1995, allocations: 0.8036 MB / 0.5015 GB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.1995, allocations: 4 kB / 0.5015 GB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1995, allocations: 7.938 kB / 0.5015 GB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.1995, allocations: 3.984 kB / 0.5015 GB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007109/0.2067, allocations: 2.177 MB / 0.5036 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.2067, allocations: 11.94 kB / 0.5036 GB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.2079, allocations: 136.3 kB / 0.5037 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000334/0.2083, allocations: 56.81 kB / 0.5038 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.037e-05/0.2084, allocations: 27.98 kB / 0.5038 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002192/0.2106, allocations: 1.658 MB / 0.5054 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.36e-05/0.2106, allocations: 11.94 kB / 0.5054 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004314/0.2149, allocations: 1.662 MB / 0.5071 GB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004791/0.2155, allocations: 204.1 kB / 0.5073 GB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.2156, allocations: 23.98 kB / 0.5073 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008658/0.2165, allocations: 55.95 kB / 0.5073 GB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002371/0.2168, allocations: 75.77 kB / 0.5074 GB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.553e-05/0.2168, allocations: 24 kB / 0.5074 GB, free: 7.781 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001055/0.2179, allocations: 415 kB / 0.5078 GB, free: 7.383 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2179, allocations: 0 / 0.5078 GB, free: 7.383 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001568/0.2195, allocations: 252 kB / 0.5081 GB, free: 7.137 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002448/0.2198, allocations: 139.7 kB / 0.5082 GB, free: 6.992 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004164/0.2239, allocations: 1.29 MB / 0.5095 GB, free: 5.676 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/0.224, allocations: 4 kB / 0.5095 GB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001654/0.2257, allocations: 495.6 kB / 0.5099 GB, free: 5.176 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/0.227, allocations: 154 kB / 0.5101 GB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004806/0.2318, allocations: 2.061 MB / 0.5121 GB, free: 2.852 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008807/0.2328, allocations: 1.002 MB / 0.5131 GB, free: 1.824 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004435/0.2332, allocations: 59.42 kB / 0.5131 GB, free: 1.766 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.2332, allocations: 0 / 0.5131 GB, free: 1.766 MB / 362.7 MB Notification: Performance of Templates: time 0.371/0.6042, allocations: 12.02 MB / 0.5249 GB, free: 47.7 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)