Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001566/0.001569, allocations: 183.9 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.049/2.049, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 98.75 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.255/0.255, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004567/0.0004568, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1062, allocations: 56.31 MB / 479 MB, free: 2.051 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5162/0.6224, allocations: 103.4 MB / 0.5688 GB, free: 12.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/0.6228, allocations: 93.05 kB / 0.5689 GB, free: 12.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1002/0.7231, allocations: 22.47 MB / 0.5908 GB, free: 9.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.7231, allocations: 0 / 0.5908 GB, free: 9.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.023e-05/0.7232, allocations: 19.94 kB / 0.5908 GB, free: 9.961 MB / 394.7 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.003094/0.7263, allocations: 1.054 MB / 0.5919 GB, free: 8.914 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.7264, allocations: 8.031 kB / 0.5919 GB, free: 8.906 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001642/0.728, allocations: 174.8 kB / 0.592 GB, free: 8.734 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001825/0.7299, allocations: 0.6113 MB / 0.5926 GB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.272e-05/0.73, allocations: 50.73 kB / 0.5927 GB, free: 8.156 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001693/0.7302, allocations: 67.95 kB / 0.5927 GB, free: 8.109 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0021/0.7323, allocations: 0.7452 MB / 0.5935 GB, free: 7.547 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.303e-05/0.7323, allocations: 0 / 0.5935 GB, free: 7.547 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.924e-05/0.7324, allocations: 29.86 kB / 0.5935 GB, free: 7.535 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.768e-05/0.7325, allocations: 33.25 kB / 0.5935 GB, free: 7.504 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/0.7345, allocations: 0.6323 MB / 0.5941 GB, free: 7.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006968/0.7415, allocations: 2.946 MB / 0.597 GB, free: 4.633 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002575/0.7442, allocations: 0.738 MB / 0.5977 GB, free: 4.047 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.158e-05/0.7443, allocations: 8.312 kB / 0.5978 GB, free: 4.043 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.7443, allocations: 38.81 kB / 0.5978 GB, free: 4 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 3.616e-06/0.7443, allocations: 0 / 0.5978 GB, free: 4 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002729/0.7471, allocations: 0.7182 MB / 0.5985 GB, free: 3.465 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/0.7472, allocations: 111.2 kB / 0.5986 GB, free: 3.332 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.7485, allocations: 0.5184 MB / 0.5991 GB, free: 2.914 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.7486, allocations: 37.27 kB / 0.5991 GB, free: 2.879 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002987/0.7489, allocations: 370.5 kB / 0.5995 GB, free: 2.617 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/0.7492, allocations: 179.1 kB / 0.5997 GB, free: 2.465 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.342e-05/0.7492, allocations: 10.81 kB / 0.5997 GB, free: 2.461 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.7494, allocations: 332.8 kB / 0.6 GB, free: 2.137 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008052/0.7502, allocations: 217.1 kB / 0.6002 GB, free: 1.992 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009182/0.7511, allocations: 349 kB / 0.6005 GB, free: 1.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008729/0.752, allocations: 250.5 kB / 0.6008 GB, free: 1.523 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.752, allocations: 0 / 0.6008 GB, free: 1.523 MB / 394.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002716/0.7548, allocations: 0.7439 MB / 0.6015 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006188/0.7554, allocations: 1.405 MB / 0.6029 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.7555, allocations: 7.984 kB / 0.6029 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007883/0.7563, allocations: 136.7 kB / 0.603 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.7574, allocations: 138.8 kB / 0.6031 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.7585, allocations: 0.7434 MB / 0.6039 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000945/0.7595, allocations: 85.03 kB / 0.6039 GB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.626e-05/0.7596, allocations: 23.56 kB / 0.604 GB, free: 14.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.7596, allocations: 4 kB / 0.604 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002082/0.7617, allocations: 0.6125 MB / 0.6046 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.7618, allocations: 7.938 kB / 0.6046 GB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004301/0.7622, allocations: 103.9 kB / 0.6047 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.7633, allocations: 135 kB / 0.6048 GB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003095/0.7664, allocations: 2.032 MB / 0.6068 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006307/0.7671, allocations: 50.58 kB / 0.6068 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.795e-05/0.7672, allocations: 23.69 kB / 0.6069 GB, free: 11.95 MB / 410.7 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 (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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0006032/0.7678, allocations: 312.2 kB / 0.6072 GB, free: 11.69 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002145/0.768, allocations: 63.25 kB / 0.6072 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.77, allocations: 0.5704 MB / 0.6078 GB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.7701, allocations: 8 kB / 0.6078 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.7701, allocations: 4 kB / 0.6078 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.7701, allocations: 0 / 0.6078 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003339/0.7735, allocations: 1.293 MB / 0.609 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.7735, allocations: 7.938 kB / 0.6091 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.7746, allocations: 111.2 kB / 0.6092 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/0.7747, allocations: 4 kB / 0.6092 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.059e-05/0.7747, allocations: 17.8 kB / 0.6092 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/0.7747, allocations: 4 kB / 0.6092 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7748, allocations: 0 / 0.6092 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002775/0.7775, allocations: 0.929 MB / 0.6101 GB, free: 9.371 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004091/0.778, allocations: 195.5 kB / 0.6103 GB, free: 9.191 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.7781, allocations: 10.81 kB / 0.6103 GB, free: 9.188 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006895/0.7788, allocations: 46.91 kB / 0.6103 GB, free: 9.148 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.779, allocations: 35.38 kB / 0.6104 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.388e-05/0.7791, allocations: 20.11 kB / 0.6104 GB, free: 9.102 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00107/0.7802, allocations: 427.4 kB / 0.6108 GB, free: 8.777 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7802, allocations: 0 / 0.6108 GB, free: 8.777 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001314/0.7815, allocations: 275.2 kB / 0.6111 GB, free: 8.508 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002397/0.7818, allocations: 123.2 kB / 0.6112 GB, free: 8.375 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003248/0.785, allocations: 0.9413 MB / 0.6121 GB, free: 7.422 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.7851, allocations: 4.125 kB / 0.6121 GB, free: 7.418 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000918/0.786, allocations: 262.9 kB / 0.6124 GB, free: 7.164 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.7871, allocations: 122.8 kB / 0.6125 GB, free: 7.047 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004896/0.792, allocations: 1.855 MB / 0.6143 GB, free: 5.145 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007184/0.7928, allocations: 0.9576 MB / 0.6152 GB, free: 4.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/0.7932, allocations: 51.42 kB / 0.6153 GB, free: 4.109 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7932, allocations: 0 / 0.6153 GB, free: 4.109 MB / 410.7 MB Notification: Performance of Templates: time 0.02193/0.8151, allocations: 9.353 MB / 0.6244 GB, free: 10.75 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)