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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002114/0.002114, allocations: 180.1 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.255/2.255, allocations: 205.3 MB / 213.7 MB, free: 1.684 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.00111, allocations: 86.17 kB / 261.7 MB, free: 1.629 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2762/0.2762, allocations: 37.99 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.208e-05/2.207e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.499/0.613, allocations: 104.7 MB / 0.5576 GB, free: 7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003526/0.6134, allocations: 84.27 kB / 0.5577 GB, free: 6.957 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1185/0.732, allocations: 28.1 MB / 0.5851 GB, free: 15.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.732, allocations: 0 / 0.5851 GB, free: 15.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001299/0.7322, allocations: 20 kB / 0.5851 GB, free: 15.88 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.004683/0.7369, allocations: 1.008 MB / 0.5861 GB, free: 14.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.037e-05/0.737, allocations: 12.03 kB / 0.5861 GB, free: 14.87 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003709/0.7407, allocations: 210.6 kB / 0.5863 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003041/0.7438, allocations: 0.6193 MB / 0.5869 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.124e-05/0.744, allocations: 20 kB / 0.587 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003211/0.7443, allocations: 47.22 kB / 0.587 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003074/0.7474, allocations: 0.5566 MB / 0.5875 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003324/0.7508, allocations: 0.7314 MB / 0.5883 GB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.67e-05/0.7509, allocations: 7.938 kB / 0.5883 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.7511, allocations: 3.984 kB / 0.5883 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002515/0.7513, allocations: 40.73 kB / 0.5883 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01114/0.7625, allocations: 3.14 MB / 0.5914 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/0.7644, allocations: 0.8344 MB / 0.5922 GB, free: 9.801 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005903/0.765, allocations: 248.6 kB / 0.5924 GB, free: 9.645 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.069e-05/0.7652, allocations: 12.12 kB / 0.5924 GB, free: 9.637 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/0.7652, allocations: 34.5 kB / 0.5925 GB, free: 9.598 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 3.416e-06/0.7652, allocations: 4 kB / 0.5925 GB, free: 9.594 MB / 394.7 MB Notification: Performance of matching and sorting (n=63): time 0.00487/0.7701, allocations: 1.83 MB / 0.5943 GB, free: 8.059 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.188e-05/0.7702, allocations: 111.4 kB / 0.5944 GB, free: 7.926 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007481/0.771, allocations: 407.5 kB / 0.5948 GB, free: 7.613 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.979e-05/0.7711, allocations: 25.7 kB / 0.5948 GB, free: 7.582 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003368/0.7715, allocations: 399.8 kB / 0.5952 GB, free: 7.277 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002675/0.7717, allocations: 212.5 kB / 0.5954 GB, free: 7.094 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.597e-05/0.7718, allocations: 4.031 kB / 0.5954 GB, free: 7.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.772, allocations: 332.9 kB / 0.5957 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00057/0.7726, allocations: 207.7 kB / 0.5959 GB, free: 6.648 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007364/0.7733, allocations: 353.5 kB / 0.5962 GB, free: 6.344 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006499/0.774, allocations: 257.2 kB / 0.5965 GB, free: 6.184 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.774, allocations: 0 / 0.5965 GB, free: 6.184 MB / 394.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001813/0.7758, allocations: 0.6459 MB / 0.5971 GB, free: 5.699 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006864/0.7765, allocations: 1.488 MB / 0.5986 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.7766, allocations: 11.98 kB / 0.5986 GB, free: 4.113 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004208/0.777, allocations: 59 kB / 0.5986 GB, free: 4.062 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001562/0.7786, allocations: 183 kB / 0.5988 GB, free: 3.887 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.7807, allocations: 1.543 MB / 0.6003 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.7818, allocations: 48.02 kB / 0.6003 GB, free: 2.297 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-05/0.7819, allocations: 29.42 kB / 0.6004 GB, free: 2.273 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.7819, allocations: 5.875 kB / 0.6004 GB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001728/0.7837, allocations: 0.5738 MB / 0.6009 GB, free: 1.797 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.7837, allocations: 4 kB / 0.6009 GB, free: 1.793 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000301/0.784, allocations: 52.81 kB / 0.601 GB, free: 1.738 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.7854, allocations: 188.2 kB / 0.6012 GB, free: 1.555 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002152/0.7876, allocations: 1.556 MB / 0.6027 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006885/0.7883, allocations: 35.88 kB / 0.6027 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.606e-05/0.7884, allocations: 20 kB / 0.6028 GB, free: 15.83 MB / 410.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 () * 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.000264/0.7887, allocations: 120.9 kB / 0.6029 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001745/0.7904, allocations: 0.5771 MB / 0.6034 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.7906, allocations: 67.16 kB / 0.6035 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001838/0.7925, allocations: 0.6277 MB / 0.6041 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.7925, allocations: 8.031 kB / 0.6041 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.7925, allocations: 8 kB / 0.6041 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.7926, allocations: 7.984 kB / 0.6041 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006105/0.7987, allocations: 1.923 MB / 0.606 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/0.7987, allocations: 8.125 kB / 0.606 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.8, allocations: 135.8 kB / 0.6061 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003389/0.8003, allocations: 56.81 kB / 0.6062 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.947e-05/0.8004, allocations: 8 kB / 0.6062 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/0.8024, allocations: 1.525 MB / 0.6077 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.291e-05/0.8025, allocations: 8.062 kB / 0.6077 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002882/0.8054, allocations: 1.438 MB / 0.6091 GB, free: 8.797 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004324/0.8059, allocations: 196.2 kB / 0.6093 GB, free: 8.586 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.806, allocations: 11.94 kB / 0.6093 GB, free: 8.574 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008678/0.8069, allocations: 51.91 kB / 0.6094 GB, free: 8.523 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.8071, allocations: 71.81 kB / 0.6094 GB, free: 8.453 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-05/0.8072, allocations: 27.98 kB / 0.6095 GB, free: 8.426 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005742/0.8077, allocations: 310.9 kB / 0.6097 GB, free: 8.125 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-07/0.8078, allocations: 0 / 0.6097 GB, free: 8.125 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001597/0.8094, allocations: 227.9 kB / 0.61 GB, free: 7.902 MB / 410.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 () * 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.003953/0.8133, allocations: 3.777 MB / 0.6137 GB, free: 3.914 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002797/0.8162, allocations: 1.07 MB / 0.6147 GB, free: 2.828 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.8162, allocations: 0 / 0.6147 GB, free: 2.828 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.8174, allocations: 420.5 kB / 0.6151 GB, free: 2.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.8188, allocations: 146.1 kB / 0.6152 GB, free: 2.266 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004894/0.8237, allocations: 1.475 MB / 0.6167 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008995/0.8246, allocations: 0.9976 MB / 0.6177 GB, free: 15.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008269/0.8255, allocations: 291.3 kB / 0.6179 GB, free: 15.35 MB / 426.7 MB Notification: Performance of SimCode: time 1.303e-06/0.8255, allocations: 0 / 0.6179 GB, free: 15.35 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.846/3.672, allocations: 15.26 MB / 0.6328 GB, free: 80 kB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1)