Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",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.001892/0.001892, 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.88/1.88, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.0009142/0.0009143, allocations: 89.45 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1779/0.1779, allocations: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.889e-05/1.88e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1227, allocations: 56.32 MB / 467 MB, free: 6.473 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4897/0.6125, allocations: 103.2 MB / 0.5568 GB, free: 7.582 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.6128, allocations: 83.95 kB / 0.5569 GB, free: 7.5 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06426/0.6771, allocations: 24.94 MB / 0.5813 GB, free: 14.35 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6772, allocations: 0 / 0.5813 GB, free: 14.35 MB / 427.1 MB Notification: Performance of Transformations before backend: time 6.888e-05/0.6772, allocations: 20 kB / 0.5813 GB, free: 14.33 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001999/0.6793, allocations: 0.9208 MB / 0.5822 GB, free: 13.36 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.147e-05/0.6793, allocations: 12.03 kB / 0.5822 GB, free: 13.34 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.6806, allocations: 194.9 kB / 0.5824 GB, free: 13.15 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009243/0.6816, allocations: 0.5311 MB / 0.5829 GB, free: 12.58 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.6816, allocations: 24 kB / 0.5829 GB, free: 12.56 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.807e-05/0.6817, allocations: 39.97 kB / 0.583 GB, free: 12.52 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009336/0.6827, allocations: 0.4985 MB / 0.5834 GB, free: 12.02 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.6838, allocations: 0.6512 MB / 0.5841 GB, free: 11.33 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.6838, allocations: 7.906 kB / 0.5841 GB, free: 11.32 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.359e-05/0.6839, allocations: 0 / 0.5841 GB, free: 11.32 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/0.684, allocations: 45.28 kB / 0.5841 GB, free: 11.28 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00387/0.6878, allocations: 2.82 MB / 0.5869 GB, free: 8.352 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008131/0.6887, allocations: 492 kB / 0.5873 GB, free: 7.852 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000418/0.6891, allocations: 295 kB / 0.5876 GB, free: 7.559 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.136e-05/0.6892, allocations: 8.422 kB / 0.5876 GB, free: 7.551 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005206/0.6897, allocations: 357.2 kB / 0.588 GB, free: 7.184 MB / 427.1 MB Notification: Performance of pre-optimization done (n=56): time 2.244e-06/0.6897, allocations: 0 / 0.588 GB, free: 7.184 MB / 427.1 MB Notification: Performance of matching and sorting (n=58): time 0.002405/0.6921, allocations: 1.482 MB / 0.5894 GB, free: 5.641 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.6922, allocations: 115.4 kB / 0.5895 GB, free: 5.504 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.6926, allocations: 345.3 kB / 0.5899 GB, free: 5.16 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.6927, allocations: 25.7 kB / 0.5899 GB, free: 5.129 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000221/0.6929, allocations: 320.3 kB / 0.5902 GB, free: 4.812 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.6931, allocations: 193.2 kB / 0.5904 GB, free: 4.621 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-05/0.6931, allocations: 3.938 kB / 0.5904 GB, free: 4.617 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.6932, allocations: 370.7 kB / 0.5907 GB, free: 4.246 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.6936, allocations: 221.5 kB / 0.5909 GB, free: 4.031 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004006/0.694, allocations: 342.8 kB / 0.5913 GB, free: 3.652 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000381/0.6944, allocations: 274 kB / 0.5915 GB, free: 3.383 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.6944, allocations: 3.984 kB / 0.5915 GB, free: 3.379 MB / 427.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001485/0.6959, allocations: 0.816 MB / 0.5923 GB, free: 2.551 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004345/0.6963, allocations: 1.165 MB / 0.5935 GB, free: 1.289 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.6963, allocations: 4 kB / 0.5935 GB, free: 1.285 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005837/0.6969, allocations: 182.6 kB / 0.5937 GB, free: 1.102 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005012/0.6974, allocations: 123.8 kB / 0.5938 GB, free: 0.9805 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002104/0.6995, allocations: 2.153 MB / 0.5959 GB, free: 14.69 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005737/0.7001, allocations: 63.98 kB / 0.5959 GB, free: 14.62 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.7002, allocations: 24 kB / 0.596 GB, free: 14.6 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.538e-06/0.7002, allocations: 7.938 kB / 0.596 GB, free: 14.59 MB / 443.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00123/0.7014, allocations: 0.6979 MB / 0.5966 GB, free: 13.89 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.7015, allocations: 0 / 0.5966 GB, free: 13.89 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004634/0.7019, allocations: 169.5 kB / 0.5968 GB, free: 13.72 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/0.7024, allocations: 124 kB / 0.5969 GB, free: 13.6 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003114/0.7056, allocations: 3.517 MB / 0.6004 GB, free: 9.859 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005491/0.7061, allocations: 55.98 kB / 0.6004 GB, free: 9.805 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.567e-05/0.7062, allocations: 23.95 kB / 0.6004 GB, free: 9.781 MB / 443.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hydroPlant.primaryControl.addFF.y:VARIABLE() "Connector of Real output signal" type: Real hydroPlant.add.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002634/0.7064, allocations: 124.8 kB / 0.6006 GB, free: 9.652 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001027/0.7075, allocations: 0.6093 MB / 0.6012 GB, free: 9.027 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.651e-05/0.7076, allocations: 59.38 kB / 0.6012 GB, free: 8.969 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.7088, allocations: 0.6784 MB / 0.6019 GB, free: 8.277 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.7088, allocations: 8 kB / 0.6019 GB, free: 8.27 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.7088, allocations: 0 / 0.6019 GB, free: 8.27 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.7088, allocations: 7.938 kB / 0.6019 GB, free: 8.262 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/0.711, allocations: 1.453 MB / 0.6033 GB, free: 6.738 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.711, allocations: 0 / 0.6033 GB, free: 6.738 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006147/0.7116, allocations: 144 kB / 0.6034 GB, free: 6.598 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002281/0.7119, allocations: 61.67 kB / 0.6035 GB, free: 6.531 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/0.7119, allocations: 4 kB / 0.6035 GB, free: 6.527 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001863/0.7138, allocations: 2.583 MB / 0.606 GB, free: 3.711 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.7138, allocations: 4.031 kB / 0.606 GB, free: 3.707 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.7154, allocations: 1.2 MB / 0.6072 GB, free: 2.422 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002476/0.7156, allocations: 180.4 kB / 0.6074 GB, free: 2.227 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.416e-05/0.7157, allocations: 7.953 kB / 0.6074 GB, free: 2.219 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004635/0.7162, allocations: 67.86 kB / 0.6074 GB, free: 2.152 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.7163, allocations: 52.48 kB / 0.6075 GB, free: 2.098 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-05/0.7164, allocations: 16 kB / 0.6075 GB, free: 2.082 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0003175/0.7167, allocations: 271 kB / 0.6078 GB, free: 1.82 MB / 443.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7167, allocations: 3.938 kB / 0.6078 GB, free: 1.816 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.001002/0.7177, allocations: 236.1 kB / 0.608 GB, free: 1.586 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002034/0.7198, allocations: 2.246 MB / 0.6102 GB, free: 15.26 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.00249/0.7223, allocations: 1.507 MB / 0.6117 GB, free: 13.7 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.7223, allocations: 0 / 0.6117 GB, free: 13.7 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000694/0.723, allocations: 0.5365 MB / 0.6122 GB, free: 13.14 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006338/0.7236, allocations: 106.8 kB / 0.6123 GB, free: 13.04 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.7261, allocations: 1.262 MB / 0.6135 GB, free: 11.72 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005901/0.7267, allocations: 0.9553 MB / 0.6145 GB, free: 10.73 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0005865/0.7273, allocations: 180.4 kB / 0.6146 GB, free: 10.56 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003308/0.7276, allocations: 231.4 kB / 0.6148 GB, free: 10.33 MB / 459.1 MB Notification: Performance of SimCode: time 9.31e-07/0.7276, allocations: 0 / 0.6148 GB, free: 10.33 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03649/0.7641, allocations: 13.9 MB / 0.6284 GB, free: 12.43 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/0.7644, allocations: 147.7 kB / 0.6286 GB, free: 12.23 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.39/3.155, allocations: 0 / 0.6286 GB, free: 12.23 MB / 475.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)