Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",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.001251/0.001251, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.522/1.522, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008782/0.0008782, allocations: 78.67 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1686/0.1686, allocations: 37.99 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.632e-05/3.655e-05, allocations: 4 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1167, allocations: 56.32 MB / 474.2 MB, free: 4.699 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4236/0.5403, allocations: 101.9 MB / 0.5625 GB, free: 1.145 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.5406, allocations: 89.38 kB / 0.5626 GB, free: 1.102 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05544/0.5961, allocations: 19.3 MB / 0.5815 GB, free: 1.047 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5962, allocations: 0 / 0.5815 GB, free: 1.047 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.821e-05/0.5962, allocations: 16 kB / 0.5815 GB, free: 1.031 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002104/0.5984, allocations: 0.8625 MB / 0.5823 GB, free: 164 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.5984, allocations: 8.031 kB / 0.5823 GB, free: 156 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002181/0.5986, allocations: 95.75 kB / 0.5824 GB, free: 80 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/0.5999, allocations: 155 kB / 0.5826 GB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.6011, allocations: 0.5073 MB / 0.5831 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/0.6012, allocations: 40.92 kB / 0.5831 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001682/0.6014, allocations: 52.5 kB / 0.5832 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.6026, allocations: 0.6125 MB / 0.5837 GB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.6027, allocations: 0 / 0.5837 GB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.742e-05/0.6027, allocations: 31.5 kB / 0.5838 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-05/0.6028, allocations: 31.92 kB / 0.5838 GB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.6038, allocations: 0.5007 MB / 0.5843 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004469/0.6083, allocations: 2.745 MB / 0.587 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.6093, allocations: 0.5404 MB / 0.5875 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002864/0.6096, allocations: 159.9 kB / 0.5877 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.756e-05/0.6097, allocations: 4.422 kB / 0.5877 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004671/0.6102, allocations: 269.7 kB / 0.5879 GB, free: 11.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.577e-06/0.6102, allocations: 0 / 0.5879 GB, free: 11.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.0009609/0.6112, allocations: 413.4 kB / 0.5883 GB, free: 11.15 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.6113, allocations: 136.5 kB / 0.5884 GB, free: 10.99 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005618/0.6118, allocations: 418.4 kB / 0.5888 GB, free: 10.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.839e-05/0.6119, allocations: 33.39 kB / 0.5889 GB, free: 10.63 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.6122, allocations: 313.9 kB / 0.5892 GB, free: 10.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.6123, allocations: 143.1 kB / 0.5893 GB, free: 10.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.6124, allocations: 7.75 kB / 0.5893 GB, free: 10.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.6126, allocations: 365.4 kB / 0.5897 GB, free: 9.945 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.6128, allocations: 141.7 kB / 0.5898 GB, free: 9.863 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000359/0.6132, allocations: 262.7 kB / 0.5901 GB, free: 9.621 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003591/0.6136, allocations: 203.9 kB / 0.5902 GB, free: 9.473 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.6136, allocations: 0 / 0.5902 GB, free: 9.473 MB / 394.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001355/0.615, allocations: 0.6678 MB / 0.5909 GB, free: 8.941 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000649/0.6156, allocations: 1.335 MB / 0.5922 GB, free: 7.523 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.6156, allocations: 4 kB / 0.5922 GB, free: 7.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005338/0.6162, allocations: 135.8 kB / 0.5923 GB, free: 7.418 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004201/0.6166, allocations: 99.12 kB / 0.5924 GB, free: 7.324 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007967/0.6174, allocations: 0.7583 MB / 0.5932 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005717/0.618, allocations: 86.17 kB / 0.5933 GB, free: 6.574 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.675e-05/0.6181, allocations: 19.31 kB / 0.5933 GB, free: 6.559 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.6181, allocations: 14.42 kB / 0.5933 GB, free: 6.547 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001037/0.6191, allocations: 0.5477 MB / 0.5938 GB, free: 6.148 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.6192, allocations: 4 kB / 0.5938 GB, free: 6.145 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003346/0.6195, allocations: 124.5 kB / 0.5939 GB, free: 6.051 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/0.6199, allocations: 95.25 kB / 0.594 GB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002515/0.6224, allocations: 2.236 MB / 0.5962 GB, free: 4.023 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005383/0.623, allocations: 70.36 kB / 0.5963 GB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-05/0.6231, allocations: 18.94 kB / 0.5963 GB, free: 3.945 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001913/0.6233, allocations: 146.3 kB / 0.5964 GB, free: 3.809 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.6234, allocations: 59.33 kB / 0.5965 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008579/0.6243, allocations: 426.2 kB / 0.5969 GB, free: 3.461 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.6243, allocations: 8 kB / 0.5969 GB, free: 3.453 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.6243, allocations: 0 / 0.5969 GB, free: 3.453 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.6243, allocations: 0 / 0.5969 GB, free: 3.453 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.626, allocations: 1.085 MB / 0.598 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.626, allocations: 0 / 0.598 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/0.6265, allocations: 95.69 kB / 0.5981 GB, free: 2.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000136/0.6267, allocations: 32.3 kB / 0.5981 GB, free: 2.473 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-05/0.6267, allocations: 7.938 kB / 0.5981 GB, free: 2.469 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.6279, allocations: 1.345 MB / 0.5994 GB, free: 1.074 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6279, allocations: 0 / 0.5994 GB, free: 1.074 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.6291, allocations: 0.742 MB / 0.6001 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.6294, allocations: 169.3 kB / 0.6003 GB, free: 340 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.6296, allocations: 10.31 kB / 0.6003 GB, free: 336 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.63, allocations: 50.08 kB / 0.6004 GB, free: 292 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.6302, allocations: 39.7 kB / 0.6004 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/0.6302, allocations: 15.62 kB / 0.6004 GB, free: 244 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005387/0.6307, allocations: 333.9 kB / 0.6007 GB, free: 15.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6308, allocations: 0 / 0.6007 GB, free: 15.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001058/0.6318, allocations: 256.8 kB / 0.601 GB, free: 15.76 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001604/0.6334, allocations: 1.447 MB / 0.6024 GB, free: 14.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.635, allocations: 0.8613 MB / 0.6032 GB, free: 13.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.6351, allocations: 4.312 kB / 0.6032 GB, free: 13.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004487/0.6355, allocations: 304 kB / 0.6035 GB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006728/0.6362, allocations: 111.2 kB / 0.6036 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.6387, allocations: 1.051 MB / 0.6047 GB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006144/0.6393, allocations: 0.9144 MB / 0.6055 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005937/0.6399, allocations: 138.3 kB / 0.6057 GB, free: 11.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.6403, allocations: 202.1 kB / 0.6059 GB, free: 11.36 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.6403, allocations: 0 / 0.6059 GB, free: 11.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03354/0.6738, allocations: 13.06 MB / 0.6186 GB, free: 14.34 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002054/0.6741, allocations: 187.4 kB / 0.6188 GB, free: 14.12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/3.157, allocations: 0 / 0.6188 GB, free: 14.12 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat does not exist to compare? outputFormat=mat