Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.001323/0.001324, allocations: 177.1 kB / 13.64 MB, free: 1.676 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.67/1.67, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009477/0.0009476, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.175/0.175, allocations: 37.98 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.211e-05/3.213e-05, allocations: 4 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 56.33 MB / 474.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4083/0.5199, allocations: 103.5 MB / 0.5641 GB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.5202, allocations: 94.55 kB / 0.5642 GB, free: 15.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0591/0.5793, allocations: 22.56 MB / 0.5863 GB, free: 12.65 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.5794, allocations: 4 kB / 0.5863 GB, free: 12.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.526e-05/0.5795, allocations: 16 kB / 0.5863 GB, free: 12.63 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.001807/0.5813, allocations: 0.9597 MB / 0.5872 GB, free: 11.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.5813, allocations: 8.031 kB / 0.5872 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.5815, allocations: 103.2 kB / 0.5873 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009732/0.5825, allocations: 186 kB / 0.5875 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.5836, allocations: 0.5804 MB / 0.5881 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.674e-05/0.5836, allocations: 54.42 kB / 0.5881 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.5837, allocations: 58.81 kB / 0.5882 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.5849, allocations: 0.702 MB / 0.5889 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.5849, allocations: 7.922 kB / 0.5889 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.211e-05/0.585, allocations: 29.7 kB / 0.5889 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.035e-05/0.5851, allocations: 28.81 kB / 0.5889 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009185/0.586, allocations: 0.5631 MB / 0.5895 GB, free: 9.895 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004195/0.5902, allocations: 2.979 MB / 0.5924 GB, free: 7.426 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.5914, allocations: 0.6467 MB / 0.593 GB, free: 6.93 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003074/0.5917, allocations: 201.6 kB / 0.5932 GB, free: 6.805 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.935e-05/0.5918, allocations: 12.47 kB / 0.5932 GB, free: 6.793 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.5919, allocations: 42.06 kB / 0.5933 GB, free: 6.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 3.206e-06/0.5919, allocations: 0 / 0.5933 GB, free: 6.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008659/0.5927, allocations: 465.4 kB / 0.5937 GB, free: 6.414 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/0.5928, allocations: 111.2 kB / 0.5938 GB, free: 6.281 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005947/0.5934, allocations: 0.4943 MB / 0.5943 GB, free: 5.887 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/0.5935, allocations: 39.23 kB / 0.5943 GB, free: 5.852 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002466/0.5937, allocations: 352 kB / 0.5947 GB, free: 5.625 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.5939, allocations: 181.7 kB / 0.5948 GB, free: 5.469 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.5e-05/0.5939, allocations: 6.875 kB / 0.5948 GB, free: 5.469 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.5941, allocations: 384.7 kB / 0.5952 GB, free: 5.113 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.5944, allocations: 172.6 kB / 0.5954 GB, free: 5.016 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003754/0.5948, allocations: 311.2 kB / 0.5957 GB, free: 4.742 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.5951, allocations: 211 kB / 0.5959 GB, free: 4.605 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.5951, allocations: 4 kB / 0.5959 GB, free: 4.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001286/0.5964, allocations: 0.7012 MB / 0.5966 GB, free: 4.066 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005648/0.597, allocations: 1.396 MB / 0.5979 GB, free: 2.586 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.597, allocations: 4 kB / 0.5979 GB, free: 2.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000415/0.5974, allocations: 114.9 kB / 0.598 GB, free: 2.496 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005981/0.598, allocations: 139.2 kB / 0.5982 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00061/0.5987, allocations: 0.7103 MB / 0.5989 GB, free: 1.715 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/0.5992, allocations: 94.64 kB / 0.599 GB, free: 1.633 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.5993, allocations: 23.23 kB / 0.599 GB, free: 1.613 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.5993, allocations: 6.5 kB / 0.599 GB, free: 1.609 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009906/0.6003, allocations: 0.5719 MB / 0.5995 GB, free: 1.215 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.6003, allocations: 8.422 kB / 0.5995 GB, free: 1.207 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002735/0.6006, allocations: 101.2 kB / 0.5996 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005539/0.6011, allocations: 138.8 kB / 0.5998 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.6033, allocations: 2.016 MB / 0.6017 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005353/0.6038, allocations: 88.77 kB / 0.6018 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.985e-05/0.6039, allocations: 23.31 kB / 0.6019 GB, free: 15.09 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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.0001749/0.6041, allocations: 139.5 kB / 0.602 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.6042, allocations: 67.16 kB / 0.602 GB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009288/0.6051, allocations: 0.4925 MB / 0.6025 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.6051, allocations: 8 kB / 0.6025 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.6051, allocations: 3.938 kB / 0.6025 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.6052, allocations: 3.984 kB / 0.6025 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.6068, allocations: 1.236 MB / 0.6038 GB, free: 13.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.6069, allocations: 3.984 kB / 0.6038 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006046/0.6075, allocations: 122.9 kB / 0.6039 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.6075, allocations: 4 kB / 0.6039 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/0.6075, allocations: 10.94 kB / 0.6039 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.6075, allocations: 3.938 kB / 0.6039 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.6076, allocations: 4 kB / 0.6039 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.6087, allocations: 0.8245 MB / 0.6047 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002505/0.6089, allocations: 194.5 kB / 0.6049 GB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.407e-05/0.609, allocations: 12.44 kB / 0.6049 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004123/0.6094, allocations: 53.64 kB / 0.6049 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.6096, allocations: 38.06 kB / 0.605 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-05/0.6096, allocations: 15.14 kB / 0.605 GB, free: 12.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004903/0.6101, allocations: 395.2 kB / 0.6054 GB, free: 12.24 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.493e-06/0.6101, allocations: 4.031 kB / 0.6054 GB, free: 12.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009068/0.611, allocations: 283.1 kB / 0.6057 GB, free: 11.96 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * 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.001645/0.6127, allocations: 1.454 MB / 0.6071 GB, free: 10.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.6143, allocations: 0.8715 MB / 0.6079 GB, free: 9.586 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6143, allocations: 0 / 0.6079 GB, free: 9.586 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003634/0.6147, allocations: 226.5 kB / 0.6081 GB, free: 9.363 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006722/0.6153, allocations: 135.9 kB / 0.6083 GB, free: 9.227 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003081/0.6184, allocations: 1.339 MB / 0.6096 GB, free: 7.836 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006446/0.6191, allocations: 0.9629 MB / 0.6105 GB, free: 6.844 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006595/0.6198, allocations: 166.9 kB / 0.6107 GB, free: 6.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003778/0.6202, allocations: 255.3 kB / 0.6109 GB, free: 6.434 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6202, allocations: 0 / 0.6109 GB, free: 6.434 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03398/0.6542, allocations: 14.75 MB / 0.6253 GB, free: 7.707 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/0.6544, allocations: 188.2 kB / 0.6255 GB, free: 7.484 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.435/3.089, allocations: 0 / 0.6255 GB, free: 7.484 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat does not exist to compare? outputFormat=mat