Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_latest_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.001715/0.001715, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.928/1.928, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008753/0.0008753, allocations: 96.59 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1924/0.1924, allocations: 38 MB / 348 MB, free: 7.758 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.999e-05/2.001e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 56.33 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4451/0.5663, allocations: 104.7 MB / 0.5583 GB, free: 6.055 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/0.5667, allocations: 83.95 kB / 0.5584 GB, free: 5.973 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07453/0.6413, allocations: 28.1 MB / 0.5858 GB, free: 9.652 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.6414, allocations: 0 / 0.5858 GB, free: 9.652 MB / 427.1 MB Notification: Performance of Transformations before backend: time 8.077e-05/0.6415, allocations: 23.98 kB / 0.5859 GB, free: 9.629 MB / 427.1 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.002255/0.6437, allocations: 1.007 MB / 0.5868 GB, free: 8.574 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.06e-05/0.6438, allocations: 8.031 kB / 0.5868 GB, free: 8.566 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/0.6452, allocations: 218.6 kB / 0.5871 GB, free: 8.352 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.6465, allocations: 0.6089 MB / 0.5876 GB, free: 7.699 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.3e-05/0.6466, allocations: 24 kB / 0.5877 GB, free: 7.676 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.6467, allocations: 47.89 kB / 0.5877 GB, free: 7.629 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001125/0.6478, allocations: 0.5578 MB / 0.5883 GB, free: 7.074 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.6491, allocations: 0.731 MB / 0.589 GB, free: 6.301 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.6491, allocations: 3.938 kB / 0.589 GB, free: 6.297 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.235e-05/0.6492, allocations: 4 kB / 0.589 GB, free: 6.293 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.9e-05/0.6493, allocations: 45.3 kB / 0.589 GB, free: 6.25 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005201/0.6545, allocations: 3.141 MB / 0.5921 GB, free: 2.996 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.6558, allocations: 0.8267 MB / 0.5929 GB, free: 2.09 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003968/0.6562, allocations: 256.8 kB / 0.5931 GB, free: 1.836 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-05/0.6563, allocations: 12.53 kB / 0.5932 GB, free: 1.824 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.6564, allocations: 43.12 kB / 0.5932 GB, free: 1.773 MB / 427.1 MB Notification: Performance of pre-optimization done (n=59): time 4.238e-06/0.6564, allocations: 0 / 0.5932 GB, free: 1.773 MB / 427.1 MB Notification: Performance of matching and sorting (n=63): time 0.003481/0.6599, allocations: 1.82 MB / 0.595 GB, free: 15.86 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.8e-05/0.66, allocations: 111.4 kB / 0.5951 GB, free: 15.73 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005601/0.6605, allocations: 406.2 kB / 0.5955 GB, free: 15.33 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 4.461e-05/0.6606, allocations: 29.73 kB / 0.5955 GB, free: 15.29 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003111/0.6609, allocations: 375.8 kB / 0.5959 GB, free: 14.92 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.6611, allocations: 208.9 kB / 0.5961 GB, free: 14.71 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.6611, allocations: 0 / 0.5961 GB, free: 14.71 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0002415/0.6614, allocations: 378.8 kB / 0.5964 GB, free: 14.33 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.6617, allocations: 201.5 kB / 0.5966 GB, free: 14.14 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004842/0.6622, allocations: 350.1 kB / 0.5969 GB, free: 13.73 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/0.6627, allocations: 262 kB / 0.5972 GB, free: 13.48 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.6627, allocations: 4 kB / 0.5972 GB, free: 13.48 MB / 443.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001161/0.6638, allocations: 0.6783 MB / 0.5979 GB, free: 12.79 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007961/0.6646, allocations: 1.492 MB / 0.5993 GB, free: 11.18 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.6647, allocations: 4 kB / 0.5993 GB, free: 11.18 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.6649, allocations: 60.81 kB / 0.5994 GB, free: 11.11 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008197/0.6658, allocations: 187.7 kB / 0.5996 GB, free: 10.93 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001749/0.6675, allocations: 1.541 MB / 0.6011 GB, free: 9.273 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000539/0.6681, allocations: 43.95 kB / 0.6011 GB, free: 9.23 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.798e-05/0.6682, allocations: 35.92 kB / 0.6011 GB, free: 9.195 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.6682, allocations: 8.062 kB / 0.6011 GB, free: 9.188 MB / 443.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001178/0.6694, allocations: 0.5721 MB / 0.6017 GB, free: 8.609 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.6694, allocations: 4.5 kB / 0.6017 GB, free: 8.605 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002196/0.6696, allocations: 64.81 kB / 0.6018 GB, free: 8.539 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007236/0.6704, allocations: 175.7 kB / 0.6019 GB, free: 8.367 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.6721, allocations: 1.549 MB / 0.6034 GB, free: 6.703 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005489/0.6727, allocations: 44.02 kB / 0.6035 GB, free: 6.66 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.6727, allocations: 20 kB / 0.6035 GB, free: 6.641 MB / 443.1 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.0002578/0.673, allocations: 122.7 kB / 0.6036 GB, free: 6.516 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001196/0.6742, allocations: 0.5809 MB / 0.6042 GB, free: 5.922 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.6744, allocations: 67.16 kB / 0.6043 GB, free: 5.855 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/0.6757, allocations: 0.6278 MB / 0.6049 GB, free: 5.223 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.6757, allocations: 8 kB / 0.6049 GB, free: 5.215 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.6757, allocations: 0 / 0.6049 GB, free: 5.215 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.51e-05/0.6758, allocations: 7.984 kB / 0.6049 GB, free: 5.207 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003957/0.6797, allocations: 1.922 MB / 0.6068 GB, free: 3.164 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.6797, allocations: 7.984 kB / 0.6068 GB, free: 3.156 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006126/0.6804, allocations: 132.3 kB / 0.6069 GB, free: 3.027 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002094/0.6806, allocations: 60.81 kB / 0.607 GB, free: 2.965 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.666e-05/0.6806, allocations: 11.98 kB / 0.607 GB, free: 2.953 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/0.6822, allocations: 1.525 MB / 0.6085 GB, free: 1.309 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/0.6822, allocations: 8 kB / 0.6085 GB, free: 1.301 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002016/0.6842, allocations: 1.436 MB / 0.6099 GB, free: 15.61 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003196/0.6846, allocations: 192.3 kB / 0.61 GB, free: 15.4 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.268e-05/0.6846, allocations: 15.94 kB / 0.6101 GB, free: 15.39 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004887/0.6851, allocations: 47.91 kB / 0.6101 GB, free: 15.34 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.6853, allocations: 67.81 kB / 0.6102 GB, free: 15.27 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.106e-05/0.6854, allocations: 27.98 kB / 0.6102 GB, free: 15.25 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0004539/0.6858, allocations: 310.9 kB / 0.6105 GB, free: 14.95 MB / 459.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6858, allocations: 4 kB / 0.6105 GB, free: 14.94 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.001187/0.687, allocations: 227.9 kB / 0.6107 GB, free: 14.72 MB / 459.1 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.003545/0.6906, allocations: 3.786 MB / 0.6144 GB, free: 10.73 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.002208/0.6928, allocations: 1.07 MB / 0.6155 GB, free: 9.641 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.6928, allocations: 0.5 kB / 0.6155 GB, free: 9.641 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007717/0.6936, allocations: 445.2 kB / 0.6159 GB, free: 9.195 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009078/0.6945, allocations: 135.5 kB / 0.616 GB, free: 9.062 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/0.6977, allocations: 1.419 MB / 0.6174 GB, free: 7.52 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007868/0.6985, allocations: 1.002 MB / 0.6184 GB, free: 6.488 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0007631/0.6993, allocations: 195 kB / 0.6186 GB, free: 6.293 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/0.6997, allocations: 279.3 kB / 0.6188 GB, free: 6.02 MB / 459.1 MB Notification: Performance of SimCode: time 1.884e-06/0.6997, allocations: 0 / 0.6188 GB, free: 6.02 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04307/0.7428, allocations: 14.02 MB / 0.6325 GB, free: 8 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002563/0.7431, allocations: 152.6 kB / 0.6327 GB, free: 7.805 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.379/3.123, allocations: 0 / 0.6327 GB, free: 7.805 MB / 475.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat does not exist to compare? outputFormat=mat