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.0008974/0.0008974, allocations: 175.2 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.234/1.234, allocations: 205.4 MB / 222.2 MB, free: 9.012 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.0007812/0.0007811, allocations: 84.97 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1595/0.1595, allocations: 38.07 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.000331, allocations: 12 kB / 423.3 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2122, allocations: 56.32 MB / 479.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3): time 0.005038/0.2172, allocations: 5.787 MB / 485.4 MB, free: 5.367 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003627/0.2209, allocations: 2.798 MB / 488.2 MB, free: 3.371 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005615/0.2215, allocations: 35.38 kB / 488.2 MB, free: 3.359 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004277/0.2219, allocations: 128.3 kB / 488.4 MB, free: 3.289 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009767/0.2229, allocations: 447.5 kB / 488.8 MB, free: 3.055 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.224, allocations: 460.2 kB / 489.3 MB, free: 2.828 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.2252, allocations: 1.204 MB / 490.5 MB, free: 2.297 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.2263, allocations: 0.8324 MB / 491.3 MB, free: 1.766 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004591/0.2268, allocations: 356.8 kB / 491.6 MB, free: 1.609 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004494/0.2272, allocations: 385.7 kB / 492 MB, free: 1.449 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.533e-05/0.2273, allocations: 31.8 kB / 492 MB, free: 1.445 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009011/0.2282, allocations: 0.5477 MB / 492.6 MB, free: 1.254 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.2284, allocations: 197.8 kB / 492.8 MB, free: 1.176 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002669/0.2287, allocations: 361.2 kB / 493.1 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009882/0.2297, allocations: 0.9191 MB / 494.1 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2297, allocations: 1.375 kB / 494.1 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2297, allocations: 0 / 494.1 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.2297, allocations: 0 / 494.1 MB, free: 0.7148 MB / 314.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.001776/0.2315, allocations: 1.064 MB / 495.1 MB, free: 15.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.2316, allocations: 9.844 kB / 495.1 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.2327, allocations: 205.8 kB / 495.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009597/0.2337, allocations: 0.6132 MB / 495.9 MB, free: 15.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.53e-05/0.2338, allocations: 48.38 kB / 496 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.2339, allocations: 81.64 kB / 496.1 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.2355, allocations: 0.8864 MB / 497 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.2355, allocations: 4.938 kB / 497 MB, free: 15.03 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.054e-05/0.2356, allocations: 31.89 kB / 497 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.994e-05/0.2357, allocations: 39.5 kB / 497 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.2372, allocations: 0.7994 MB / 497.8 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004581/0.2418, allocations: 3.287 MB / 0.4894 GB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.2435, allocations: 0.9917 MB / 0.4903 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005756/0.244, allocations: 316.6 kB / 0.4906 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/0.2441, allocations: 11.2 kB / 0.4907 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.2442, allocations: 37.97 kB / 0.4907 GB, free: 11.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=59): time 2.575e-06/0.2442, allocations: 0 / 0.4907 GB, free: 11.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=63): time 0.004904/0.2491, allocations: 2.613 MB / 0.4932 GB, free: 9.793 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.21e-05/0.2492, allocations: 111.1 kB / 0.4933 GB, free: 9.668 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007901/0.25, allocations: 0.5861 MB / 0.4939 GB, free: 9.316 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.376e-05/0.25, allocations: 40.08 kB / 0.494 GB, free: 9.273 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002481/0.2503, allocations: 362.9 kB / 0.4943 GB, free: 8.957 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.2504, allocations: 224.1 kB / 0.4945 GB, free: 8.762 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.2505, allocations: 14.97 kB / 0.4945 GB, free: 8.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.2506, allocations: 379.5 kB / 0.4949 GB, free: 8.387 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005693/0.2512, allocations: 283.2 kB / 0.4952 GB, free: 8.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000659/0.2519, allocations: 428.6 kB / 0.4956 GB, free: 7.941 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.2531, allocations: 0.7054 MB / 0.4963 GB, free: 7.504 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2531, allocations: 1.375 kB / 0.4963 GB, free: 7.504 MB / 330.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001614/0.2548, allocations: 0.86 MB / 0.4971 GB, free: 7.066 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/0.2549, allocations: 211.9 kB / 0.4973 GB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.2549, allocations: 4.125 kB / 0.4973 GB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002453/0.2552, allocations: 65.8 kB / 0.4974 GB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007051/0.2559, allocations: 182.6 kB / 0.4975 GB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.2574, allocations: 1.621 MB / 0.4991 GB, free: 5.176 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004902/0.2579, allocations: 61.52 kB / 0.4992 GB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.081e-05/0.2579, allocations: 26.41 kB / 0.4992 GB, free: 5.141 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-06/0.258, allocations: 4.031 kB / 0.4992 GB, free: 5.141 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001408/0.2594, allocations: 0.7332 MB / 0.4999 GB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.2594, allocations: 4.156 kB / 0.4999 GB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001937/0.2596, allocations: 62.09 kB / 0.5 GB, free: 4.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006779/0.2603, allocations: 177.9 kB / 0.5002 GB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.2616, allocations: 1.62 MB / 0.5017 GB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004599/0.2621, allocations: 56.08 kB / 0.5018 GB, free: 3.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.2621, allocations: 23.5 kB / 0.5018 GB, free: 3.117 MB / 330.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.0004306/0.2626, allocations: 330.9 kB / 0.5021 GB, free: 2.824 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.2627, allocations: 82.98 kB / 0.5022 GB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001579/0.2643, allocations: 0.7919 MB / 0.503 GB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.2643, allocations: 8 kB / 0.503 GB, free: 1.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2643, allocations: 0 / 0.503 GB, free: 1.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.2643, allocations: 7.922 kB / 0.503 GB, free: 1.922 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003763/0.2681, allocations: 2.186 MB / 0.5051 GB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.2681, allocations: 8.031 kB / 0.5052 GB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005466/0.2687, allocations: 139.7 kB / 0.5053 GB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001814/0.2689, allocations: 56.81 kB / 0.5053 GB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.053e-05/0.2689, allocations: 20 kB / 0.5054 GB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.2702, allocations: 1.584 MB / 0.5069 GB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.2702, allocations: 12 kB / 0.5069 GB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002142/0.2724, allocations: 1.361 MB / 0.5082 GB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002643/0.2726, allocations: 208 kB / 0.5084 GB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.685e-05/0.2727, allocations: 31.98 kB / 0.5085 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004422/0.2732, allocations: 55.95 kB / 0.5085 GB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.2733, allocations: 75.67 kB / 0.5086 GB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.2734, allocations: 24 kB / 0.5086 GB, free: 11.78 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005775/0.2739, allocations: 419 kB / 0.509 GB, free: 11.38 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.274, allocations: 0 / 0.509 GB, free: 11.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000983/0.2749, allocations: 252 kB / 0.5093 GB, free: 11.13 MB / 346.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.0001402/0.2751, allocations: 127.1 kB / 0.5094 GB, free: 11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002214/0.2773, allocations: 1.275 MB / 0.5106 GB, free: 9.699 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2773, allocations: 4 kB / 0.5106 GB, free: 9.695 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008285/0.2782, allocations: 499.8 kB / 0.5111 GB, free: 9.195 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.2794, allocations: 159 kB / 0.5113 GB, free: 9.039 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002643/0.2821, allocations: 2.064 MB / 0.5133 GB, free: 6.855 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005159/0.2826, allocations: 0.9861 MB / 0.5142 GB, free: 5.844 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.2828, allocations: 59.42 kB / 0.5143 GB, free: 5.785 MB / 346.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2828, allocations: 3.938 kB / 0.5143 GB, free: 5.781 MB / 346.7 MB Notification: Performance of Templates: time 0.01364/0.2965, allocations: 12.44 MB / 0.5264 GB, free: 9.34 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)