Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",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.001518/0.001518, allocations: 184.7 kB / 13.19 MB, free: 2.125 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.968/1.968, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001091/0.001091, allocations: 88.52 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2722/0.2722, allocations: 37.96 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.594e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1214, allocations: 56.31 MB / 473.2 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4891/0.6106, allocations: 103.3 MB / 0.563 GB, free: 276 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000371/0.611, allocations: 83.95 kB / 0.5631 GB, free: 192 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09719/0.7082, allocations: 22.38 MB / 0.5849 GB, free: 9.637 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.7083, allocations: 0 / 0.5849 GB, free: 9.637 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.297e-05/0.7084, allocations: 23.94 kB / 0.585 GB, free: 9.613 MB / 426.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.002989/0.7114, allocations: 0.9443 MB / 0.5859 GB, free: 8.625 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.809e-05/0.7115, allocations: 12.03 kB / 0.5859 GB, free: 8.613 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003274/0.7118, allocations: 106.5 kB / 0.586 GB, free: 8.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001698/0.7136, allocations: 178.8 kB / 0.5862 GB, free: 8.324 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001784/0.7154, allocations: 0.5817 MB / 0.5867 GB, free: 7.699 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.302e-05/0.7155, allocations: 45.31 kB / 0.5868 GB, free: 7.656 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.7156, allocations: 67.91 kB / 0.5868 GB, free: 7.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/0.7175, allocations: 0.7097 MB / 0.5875 GB, free: 6.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.36e-05/0.7176, allocations: 0 / 0.5875 GB, free: 6.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/0.7177, allocations: 27.95 kB / 0.5876 GB, free: 6.812 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.786e-05/0.7178, allocations: 33.31 kB / 0.5876 GB, free: 6.781 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.7195, allocations: 0.5634 MB / 0.5881 GB, free: 6.219 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006932/0.7264, allocations: 2.938 MB / 0.591 GB, free: 3.156 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001941/0.7284, allocations: 0.6261 MB / 0.5916 GB, free: 2.488 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/0.729, allocations: 195.1 kB / 0.5918 GB, free: 2.293 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.511e-05/0.7291, allocations: 8.422 kB / 0.5918 GB, free: 2.285 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.7291, allocations: 39 kB / 0.5919 GB, free: 2.238 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.456e-06/0.7291, allocations: 0 / 0.5919 GB, free: 2.238 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001374/0.7305, allocations: 453.2 kB / 0.5923 GB, free: 1.793 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.398e-05/0.7306, allocations: 115.3 kB / 0.5924 GB, free: 1.656 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009945/0.7316, allocations: 0.4917 MB / 0.5929 GB, free: 1.156 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.019e-05/0.7317, allocations: 37.7 kB / 0.5929 GB, free: 1.113 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/0.7321, allocations: 371.5 kB / 0.5933 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/0.7323, allocations: 177.4 kB / 0.5934 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/0.7324, allocations: 16 kB / 0.5935 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.7325, allocations: 330.8 kB / 0.5938 GB, free: 228 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005056/0.7331, allocations: 169.1 kB / 0.5939 GB, free: 60 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006788/0.7338, allocations: 300.6 kB / 0.5942 GB, free: 15.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005977/0.7344, allocations: 217.5 kB / 0.5944 GB, free: 15.49 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.7344, allocations: 4 kB / 0.5944 GB, free: 15.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002069/0.7365, allocations: 0.6369 MB / 0.5951 GB, free: 14.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006903/0.7372, allocations: 1.403 MB / 0.5964 GB, free: 13.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.7372, allocations: 4 kB / 0.5964 GB, free: 13.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006563/0.7379, allocations: 116.7 kB / 0.5965 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.739, allocations: 131.9 kB / 0.5967 GB, free: 13.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009163/0.7399, allocations: 0.7051 MB / 0.5974 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009628/0.7409, allocations: 79.41 kB / 0.5974 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.97e-05/0.741, allocations: 24.08 kB / 0.5974 GB, free: 12.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.741, allocations: 7.938 kB / 0.5975 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001718/0.7427, allocations: 0.5574 MB / 0.598 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.7428, allocations: 8.422 kB / 0.598 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000442/0.7432, allocations: 96.86 kB / 0.5981 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.7443, allocations: 135.8 kB / 0.5982 GB, free: 11.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.7475, allocations: 1.991 MB / 0.6002 GB, free: 9.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000607/0.7482, allocations: 55.64 kB / 0.6002 GB, free: 9.266 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.143e-05/0.7482, allocations: 20 kB / 0.6002 GB, free: 9.246 MB / 442.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 () * 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.0002705/0.7485, allocations: 140.8 kB / 0.6004 GB, free: 9.102 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002321/0.7488, allocations: 67.16 kB / 0.6004 GB, free: 9.035 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001491/0.7503, allocations: 0.4912 MB / 0.6009 GB, free: 8.535 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.7503, allocations: 8 kB / 0.6009 GB, free: 8.527 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.7503, allocations: 0 / 0.6009 GB, free: 8.527 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.7503, allocations: 7.984 kB / 0.6009 GB, free: 8.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002865/0.7532, allocations: 1.209 MB / 0.6021 GB, free: 7.254 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.7533, allocations: 0 / 0.6021 GB, free: 7.254 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.7544, allocations: 115.8 kB / 0.6022 GB, free: 7.141 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.461e-05/0.7545, allocations: 4 kB / 0.6022 GB, free: 7.137 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.284e-05/0.7546, allocations: 16 kB / 0.6022 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.7546, allocations: 0 / 0.6022 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.7546, allocations: 0 / 0.6022 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.7566, allocations: 0.8055 MB / 0.603 GB, free: 6.297 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004029/0.757, allocations: 188.2 kB / 0.6032 GB, free: 6.094 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.7571, allocations: 15.94 kB / 0.6032 GB, free: 6.078 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007358/0.7579, allocations: 43.97 kB / 0.6033 GB, free: 6.035 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.7581, allocations: 40.38 kB / 0.6033 GB, free: 5.992 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.132e-05/0.7581, allocations: 15.95 kB / 0.6033 GB, free: 5.977 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008071/0.7589, allocations: 395.2 kB / 0.6037 GB, free: 5.594 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.524e-06/0.759, allocations: 112 / 0.6037 GB, free: 5.594 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001278/0.7602, allocations: 275.1 kB / 0.604 GB, free: 5.324 MB / 442.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 () * 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.002489/0.7628, allocations: 1.439 MB / 0.6054 GB, free: 3.855 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002458/0.7653, allocations: 0.836 MB / 0.6062 GB, free: 3.008 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.7653, allocations: 480 / 0.6062 GB, free: 3.008 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006596/0.766, allocations: 218.5 kB / 0.6064 GB, free: 2.797 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.7671, allocations: 138.8 kB / 0.6065 GB, free: 2.664 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004844/0.772, allocations: 1.364 MB / 0.6079 GB, free: 1.238 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008019/0.7729, allocations: 0.9538 MB / 0.6088 GB, free: 264 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007266/0.7736, allocations: 259.3 kB / 0.609 GB, free: 4 kB / 442.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7736, allocations: 0 / 0.609 GB, free: 4 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.91/3.684, allocations: 12.56 MB / 0.6213 GB, free: 3.434 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)