Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_latest_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.002138/0.002138, 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.827/1.827, 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.001188/0.001188, allocations: 92.22 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.2064/0.2064, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.349e-05/2.363e-05, allocations: 0 / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1391, allocations: 56.33 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5696/0.7087, allocations: 102.6 MB / 0.5563 GB, free: 8.137 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003431/0.7092, allocations: 87.94 kB / 0.5564 GB, free: 8.051 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06002/0.7692, allocations: 22.25 MB / 0.5781 GB, free: 1.641 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.7693, allocations: 0 / 0.5781 GB, free: 1.641 MB / 411.1 MB Notification: Performance of Transformations before backend: time 8.883e-05/0.7694, allocations: 20 kB / 0.5781 GB, free: 1.621 MB / 411.1 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.001947/0.7713, allocations: 0.9404 MB / 0.579 GB, free: 0.6328 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.7714, allocations: 8.031 kB / 0.579 GB, free: 0.625 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009973/0.7724, allocations: 174.8 kB / 0.5792 GB, free: 464 kB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.7736, allocations: 0.5933 MB / 0.5798 GB, free: 15.82 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.363e-05/0.7736, allocations: 20 kB / 0.5798 GB, free: 15.8 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.7737, allocations: 39.91 kB / 0.5798 GB, free: 15.76 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008965/0.7746, allocations: 458.5 kB / 0.5803 GB, free: 15.31 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.7757, allocations: 0.6209 MB / 0.5809 GB, free: 14.65 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/0.7758, allocations: 3.938 kB / 0.5809 GB, free: 14.64 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.512e-05/0.7758, allocations: 7.953 kB / 0.5809 GB, free: 14.64 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.741e-05/0.7759, allocations: 29.31 kB / 0.5809 GB, free: 14.61 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004354/0.7803, allocations: 2.838 MB / 0.5837 GB, free: 11.66 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.7813, allocations: 0.6165 MB / 0.5843 GB, free: 11.01 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.7816, allocations: 183.1 kB / 0.5845 GB, free: 10.82 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.868e-05/0.7817, allocations: 4.438 kB / 0.5845 GB, free: 10.82 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.7817, allocations: 39 kB / 0.5845 GB, free: 10.77 MB / 427.1 MB Notification: Performance of pre-optimization done (n=50): time 2.635e-06/0.7818, allocations: 4 kB / 0.5845 GB, free: 10.77 MB / 427.1 MB Notification: Performance of matching and sorting (n=50): time 0.0008204/0.7826, allocations: 429.3 kB / 0.5849 GB, free: 10.35 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.82e-05/0.7827, allocations: 107.2 kB / 0.585 GB, free: 10.22 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004797/0.7832, allocations: 398.8 kB / 0.5854 GB, free: 9.824 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.7832, allocations: 29.64 kB / 0.5854 GB, free: 9.789 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000295/0.7835, allocations: 352.1 kB / 0.5858 GB, free: 9.438 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/0.7837, allocations: 169.4 kB / 0.5859 GB, free: 9.27 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.7837, allocations: 0 / 0.5859 GB, free: 9.27 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.7839, allocations: 378.8 kB / 0.5863 GB, free: 8.891 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000269/0.7842, allocations: 153.5 kB / 0.5864 GB, free: 8.738 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003672/0.7846, allocations: 297.3 kB / 0.5867 GB, free: 8.398 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003251/0.7849, allocations: 198.1 kB / 0.5869 GB, free: 8.203 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.7849, allocations: 0 / 0.5869 GB, free: 8.203 MB / 427.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001279/0.7862, allocations: 0.6432 MB / 0.5875 GB, free: 7.551 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006946/0.7869, allocations: 1.393 MB / 0.5889 GB, free: 6.047 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.7869, allocations: 7.953 kB / 0.5889 GB, free: 6.039 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003922/0.7873, allocations: 108.8 kB / 0.589 GB, free: 5.93 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005579/0.7879, allocations: 135.8 kB / 0.5891 GB, free: 5.797 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007165/0.7886, allocations: 0.7202 MB / 0.5898 GB, free: 5.051 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/0.7891, allocations: 59.56 kB / 0.5899 GB, free: 4.992 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.352e-05/0.7891, allocations: 20 kB / 0.5899 GB, free: 4.973 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.7891, allocations: 5.156 kB / 0.5899 GB, free: 4.969 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001057/0.7902, allocations: 0.5056 MB / 0.5904 GB, free: 4.461 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.7902, allocations: 4.469 kB / 0.5904 GB, free: 4.457 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002623/0.7905, allocations: 96.8 kB / 0.5905 GB, free: 4.359 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000544/0.7911, allocations: 139.7 kB / 0.5906 GB, free: 4.223 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/0.7933, allocations: 1.975 MB / 0.5926 GB, free: 2.133 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004656/0.7938, allocations: 51.72 kB / 0.5926 GB, free: 2.082 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/0.7939, allocations: 24 kB / 0.5926 GB, free: 2.059 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerPlant.primaryControl.addFF.y:VARIABLE() "Connector of Real output signal" type: Real 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.0002765/0.7942, allocations: 118.7 kB / 0.5928 GB, free: 1.938 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007263/0.7949, allocations: 427.2 kB / 0.5932 GB, free: 1.512 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.795, allocations: 63.44 kB / 0.5932 GB, free: 1.449 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008578/0.7959, allocations: 466.1 kB / 0.5937 GB, free: 0.9844 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.7959, allocations: 11.92 kB / 0.5937 GB, free: 0.9727 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.7959, allocations: 0 / 0.5937 GB, free: 0.9727 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.7959, allocations: 7.984 kB / 0.5937 GB, free: 0.9648 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/0.7977, allocations: 1.096 MB / 0.5948 GB, free: 15.82 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.7977, allocations: 0 / 0.5948 GB, free: 15.82 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005866/0.7983, allocations: 119.8 kB / 0.5949 GB, free: 15.7 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.7983, allocations: 0 / 0.5949 GB, free: 15.7 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.993e-05/0.7984, allocations: 11.98 kB / 0.5949 GB, free: 15.69 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.7984, allocations: 4 kB / 0.5949 GB, free: 15.69 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.7984, allocations: 0 / 0.5949 GB, free: 15.69 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.7995, allocations: 0.7704 MB / 0.5956 GB, free: 14.89 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002417/0.7997, allocations: 184.3 kB / 0.5958 GB, free: 14.69 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.989e-05/0.7998, allocations: 7.938 kB / 0.5958 GB, free: 14.68 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.8002, allocations: 31.97 kB / 0.5959 GB, free: 14.65 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.801e-05/0.8003, allocations: 48.41 kB / 0.5959 GB, free: 14.6 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.8003, allocations: 8 kB / 0.5959 GB, free: 14.59 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0003862/0.8007, allocations: 306.9 kB / 0.5962 GB, free: 14.3 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8007, allocations: 0 / 0.5962 GB, free: 14.3 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.0009784/0.8017, allocations: 255 kB / 0.5964 GB, free: 14.05 MB / 443.1 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.00152/0.8032, allocations: 1.403 MB / 0.5978 GB, free: 12.61 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.8051, allocations: 0.8484 MB / 0.5986 GB, free: 11.76 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.8051, allocations: 4.125 kB / 0.5986 GB, free: 11.76 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003785/0.8055, allocations: 209.6 kB / 0.5988 GB, free: 11.55 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007416/0.8062, allocations: 114.1 kB / 0.599 GB, free: 11.44 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.8094, allocations: 1.274 MB / 0.6002 GB, free: 10.12 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006969/0.8102, allocations: 0.9622 MB / 0.6011 GB, free: 9.129 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0006437/0.8108, allocations: 146.6 kB / 0.6013 GB, free: 8.984 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003611/0.8112, allocations: 243.6 kB / 0.6015 GB, free: 8.746 MB / 443.1 MB Notification: Performance of SimCode: time 1.252e-06/0.8112, allocations: 0 / 0.6015 GB, free: 8.746 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0454/0.8566, allocations: 12.89 MB / 0.6141 GB, free: 11.86 MB / 459.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002563/0.8569, allocations: 147.8 kB / 0.6142 GB, free: 11.66 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.457/3.314, allocations: 0 / 0.6142 GB, free: 11.66 MB / 459.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat does not exist to compare? outputFormat=mat