Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_cpp_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.001949/0.001949, allocations: 186.1 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.2 MB / 218.9 MB, free: 9.195 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.001102/0.001102, allocations: 92.42 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2873/0.2873, allocations: 37.96 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.699e-05/3.708e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 56.32 MB / 473.2 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4912/0.5954, allocations: 103.9 MB / 0.5635 GB, free: 15.78 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003378/0.5958, allocations: 87.95 kB / 0.5636 GB, free: 15.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.103/0.6988, allocations: 25.09 MB / 0.5881 GB, free: 6.391 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6988, allocations: 0 / 0.5881 GB, free: 6.391 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.117e-05/0.6989, allocations: 16 kB / 0.5881 GB, free: 6.375 MB / 426.7 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.002627/0.7015, allocations: 0.9286 MB / 0.589 GB, free: 5.395 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.7016, allocations: 11.97 kB / 0.5891 GB, free: 5.383 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002282/0.7018, allocations: 102.5 kB / 0.5892 GB, free: 5.273 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002107/0.704, allocations: 194.9 kB / 0.5893 GB, free: 5.082 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001516/0.7055, allocations: 0.5368 MB / 0.5899 GB, free: 4.504 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.188e-05/0.7056, allocations: 41.31 kB / 0.5899 GB, free: 4.461 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.7058, allocations: 56 kB / 0.59 GB, free: 4.406 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/0.7077, allocations: 0.7241 MB / 0.5907 GB, free: 3.645 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.177e-05/0.7078, allocations: 15.8 kB / 0.5907 GB, free: 3.629 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.7079, allocations: 24 kB / 0.5907 GB, free: 3.605 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001645/0.7081, allocations: 37.28 kB / 0.5907 GB, free: 3.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/0.7099, allocations: 0.6259 MB / 0.5914 GB, free: 2.945 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007151/0.7171, allocations: 2.95 MB / 0.5942 GB, free: 15.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.7187, allocations: 495 kB / 0.5947 GB, free: 15.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008287/0.7195, allocations: 318.9 kB / 0.595 GB, free: 15.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.708e-05/0.7196, allocations: 12.42 kB / 0.595 GB, free: 15.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009298/0.7206, allocations: 378.3 kB / 0.5954 GB, free: 14.65 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 3.356e-06/0.7206, allocations: 0 / 0.5954 GB, free: 14.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.004356/0.725, allocations: 1.565 MB / 0.5969 GB, free: 13.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.394e-05/0.7251, allocations: 115.4 kB / 0.597 GB, free: 12.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007751/0.7259, allocations: 407.8 kB / 0.5974 GB, free: 12.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.622e-05/0.726, allocations: 37.7 kB / 0.5974 GB, free: 12.44 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003223/0.7263, allocations: 343.1 kB / 0.5978 GB, free: 12.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00025/0.7266, allocations: 197.1 kB / 0.598 GB, free: 11.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.914e-05/0.7266, allocations: 12 kB / 0.598 GB, free: 11.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.7268, allocations: 334.8 kB / 0.5983 GB, free: 11.56 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006786/0.7275, allocations: 241.5 kB / 0.5985 GB, free: 11.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007931/0.7283, allocations: 352.2 kB / 0.5989 GB, free: 10.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008001/0.7291, allocations: 312.8 kB / 0.5992 GB, free: 10.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.7292, allocations: 4 kB / 0.5992 GB, free: 10.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002788/0.732, allocations: 0.861 MB / 0.6 GB, free: 9.742 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005374/0.7325, allocations: 1.168 MB / 0.6011 GB, free: 8.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.7325, allocations: 4 kB / 0.6011 GB, free: 8.477 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.7336, allocations: 181.6 kB / 0.6013 GB, free: 8.293 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009915/0.7346, allocations: 123.8 kB / 0.6014 GB, free: 8.172 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.7373, allocations: 2.134 MB / 0.6035 GB, free: 5.879 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.7385, allocations: 79.94 kB / 0.6036 GB, free: 5.801 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-05/0.7386, allocations: 20 kB / 0.6036 GB, free: 5.781 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.7386, allocations: 11.84 kB / 0.6036 GB, free: 5.77 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002494/0.7411, allocations: 0.7893 MB / 0.6044 GB, free: 4.965 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.7411, allocations: 7.938 kB / 0.6044 GB, free: 4.957 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007789/0.7419, allocations: 157.6 kB / 0.6046 GB, free: 4.797 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000978/0.7429, allocations: 128 kB / 0.6047 GB, free: 4.672 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003954/0.7469, allocations: 2.236 MB / 0.6069 GB, free: 2.305 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008458/0.7478, allocations: 51.95 kB / 0.6069 GB, free: 2.254 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.252e-05/0.7479, allocations: 23.98 kB / 0.6069 GB, free: 2.23 MB / 442.7 MB 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 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002826/0.7482, allocations: 144.9 kB / 0.6071 GB, free: 2.082 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/0.7484, allocations: 55.34 kB / 0.6071 GB, free: 2.027 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002264/0.7507, allocations: 0.7329 MB / 0.6078 GB, free: 1.285 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.7507, allocations: 8 kB / 0.6078 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.7507, allocations: 4 kB / 0.6079 GB, free: 1.273 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.7508, allocations: 3.984 kB / 0.6079 GB, free: 1.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004143/0.7549, allocations: 1.581 MB / 0.6094 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.755, allocations: 4 kB / 0.6094 GB, free: 15.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.7563, allocations: 139.8 kB / 0.6095 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003898/0.7567, allocations: 73.84 kB / 0.6096 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.927e-05/0.7568, allocations: 12 kB / 0.6096 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003019/0.7598, allocations: 2.686 MB / 0.6122 GB, free: 12.42 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.7599, allocations: 144 / 0.6122 GB, free: 12.42 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/0.763, allocations: 1.251 MB / 0.6135 GB, free: 11.08 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004567/0.7635, allocations: 192.3 kB / 0.6136 GB, free: 10.88 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.7637, allocations: 23.95 kB / 0.6137 GB, free: 10.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009382/0.7646, allocations: 67.92 kB / 0.6137 GB, free: 10.79 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.7648, allocations: 52.48 kB / 0.6138 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.157e-05/0.7649, allocations: 20 kB / 0.6138 GB, free: 10.71 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006275/0.7655, allocations: 321.6 kB / 0.6141 GB, free: 10.41 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7656, allocations: 0 / 0.6141 GB, free: 10.41 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001339/0.7669, allocations: 259.9 kB / 0.6144 GB, free: 10.15 MB / 458.7 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.0037/0.7706, allocations: 2.305 MB / 0.6166 GB, free: 7.766 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003616/0.7743, allocations: 1.415 MB / 0.618 GB, free: 6.281 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.7743, allocations: 0 / 0.618 GB, free: 6.281 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001264/0.7756, allocations: 0.5524 MB / 0.6185 GB, free: 5.699 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.7767, allocations: 127 kB / 0.6187 GB, free: 5.574 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003918/0.7806, allocations: 1.365 MB / 0.62 GB, free: 4.148 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007943/0.7814, allocations: 0.9584 MB / 0.6209 GB, free: 3.16 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006059/0.782, allocations: 235.5 kB / 0.6211 GB, free: 2.93 MB / 458.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7821, allocations: 0 / 0.6211 GB, free: 2.93 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.276/4.058, allocations: 16.36 MB / 0.6371 GB, free: 2.547 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)