Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001481/0.001481, allocations: 182.8 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.641/1.641, allocations: 194.3 MB / 208.4 MB, free: 6.699 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001926/0.001926, allocations: 120.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2534/0.2534, allocations: 37.9 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.408e-05/5.41e-05, allocations: 0 / 397.6 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3083, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3609/0.6693, allocations: 97.79 MB / 0.5358 GB, free: 88.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003419/0.6697, allocations: 94.66 kB / 0.5359 GB, free: 88.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05734/0.727, allocations: 24.27 MB / 0.5596 GB, free: 69.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.7271, allocations: 0 / 0.5596 GB, free: 69.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.619e-05/0.7271, allocations: 20 kB / 0.5596 GB, free: 69.2 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001548/0.7287, allocations: 0.8859 MB / 0.5605 GB, free: 68.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.7288, allocations: 8.031 kB / 0.5605 GB, free: 68.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.985e-05/0.7289, allocations: 102.4 kB / 0.5606 GB, free: 68.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/0.73, allocations: 194.9 kB / 0.5608 GB, free: 67.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006934/0.7307, allocations: 0.4979 MB / 0.5612 GB, free: 67.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.7308, allocations: 45.27 kB / 0.5613 GB, free: 67.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.813e-05/0.7309, allocations: 55.98 kB / 0.5613 GB, free: 67.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009245/0.7318, allocations: 0.6906 MB / 0.562 GB, free: 66.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.7318, allocations: 0 / 0.562 GB, free: 66.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-05/0.7319, allocations: 27.97 kB / 0.562 GB, free: 66.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-05/0.732, allocations: 37.3 kB / 0.5621 GB, free: 66.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008247/0.7328, allocations: 0.6102 MB / 0.5627 GB, free: 65.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003205/0.736, allocations: 2.712 MB / 0.5653 GB, free: 63.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000788/0.7368, allocations: 499 kB / 0.5658 GB, free: 62.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003917/0.7373, allocations: 303 kB / 0.5661 GB, free: 62.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.606e-05/0.7373, allocations: 12.42 kB / 0.5661 GB, free: 62.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004742/0.7378, allocations: 377.9 kB / 0.5665 GB, free: 61.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 1.964e-06/0.7378, allocations: 3.938 kB / 0.5665 GB, free: 61.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.002115/0.7399, allocations: 1.53 MB / 0.568 GB, free: 60.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.74, allocations: 111.4 kB / 0.5681 GB, free: 60.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/0.7403, allocations: 367.2 kB / 0.5684 GB, free: 59.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.122e-05/0.7404, allocations: 41.73 kB / 0.5685 GB, free: 59.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.7405, allocations: 296.5 kB / 0.5687 GB, free: 59.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.7406, allocations: 189.2 kB / 0.5689 GB, free: 59.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.982e-05/0.7407, allocations: 12 kB / 0.5689 GB, free: 59.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.894e-05/0.7407, allocations: 370.7 kB / 0.5693 GB, free: 58.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003134/0.7411, allocations: 229.3 kB / 0.5695 GB, free: 58.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/0.7414, allocations: 341.7 kB / 0.5698 GB, free: 58.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/0.7418, allocations: 292.9 kB / 0.5701 GB, free: 57.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.7418, allocations: 4 kB / 0.5701 GB, free: 57.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001324/0.7431, allocations: 0.8684 MB / 0.571 GB, free: 57.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002261/0.7434, allocations: 0.9912 MB / 0.5719 GB, free: 56.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.7434, allocations: 8 kB / 0.5719 GB, free: 56.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005556/0.744, allocations: 165.6 kB / 0.5721 GB, free: 55.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004488/0.7444, allocations: 127.8 kB / 0.5722 GB, free: 55.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/0.7458, allocations: 2.109 MB / 0.5743 GB, free: 53.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004762/0.7463, allocations: 67.92 kB / 0.5743 GB, free: 53.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.752e-05/0.7464, allocations: 28.16 kB / 0.5744 GB, free: 53.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.274e-06/0.7464, allocations: 4 kB / 0.5744 GB, free: 53.36 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001139/0.7475, allocations: 0.7579 MB / 0.5751 GB, free: 52.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.7475, allocations: 8.281 kB / 0.5751 GB, free: 52.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004145/0.7479, allocations: 153.6 kB / 0.5753 GB, free: 52.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000427/0.7484, allocations: 115.9 kB / 0.5754 GB, free: 52.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/0.7508, allocations: 3.54 MB / 0.5788 GB, free: 48.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004429/0.7512, allocations: 59.92 kB / 0.5789 GB, free: 48.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.7513, allocations: 20 kB / 0.5789 GB, free: 48.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001347/0.7514, allocations: 152.6 kB / 0.5791 GB, free: 48.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.425e-05/0.7515, allocations: 59.33 kB / 0.5791 GB, free: 48.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.7526, allocations: 0.7129 MB / 0.5798 GB, free: 47.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.7527, allocations: 12.03 kB / 0.5798 GB, free: 47.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.7527, allocations: 4 kB / 0.5798 GB, free: 47.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.7527, allocations: 3.984 kB / 0.5798 GB, free: 47.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001898/0.7546, allocations: 1.55 MB / 0.5813 GB, free: 45.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.7546, allocations: 4 kB / 0.5813 GB, free: 45.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005683/0.7552, allocations: 135.8 kB / 0.5815 GB, free: 45.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001991/0.7554, allocations: 69.83 kB / 0.5815 GB, free: 45.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/0.7554, allocations: 12 kB / 0.5816 GB, free: 45.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.7568, allocations: 2.686 MB / 0.5842 GB, free: 42.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.7568, allocations: 8.016 kB / 0.5842 GB, free: 42.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.7581, allocations: 1.228 MB / 0.5854 GB, free: 41.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002523/0.7584, allocations: 180.4 kB / 0.5856 GB, free: 41.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.873e-05/0.7585, allocations: 16 kB / 0.5856 GB, free: 41.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004691/0.7589, allocations: 67.92 kB / 0.5856 GB, free: 41.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.7591, allocations: 60.38 kB / 0.5857 GB, free: 41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/0.7591, allocations: 16.09 kB / 0.5857 GB, free: 40.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003042/0.7594, allocations: 301.1 kB / 0.586 GB, free: 40.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.7594, allocations: 0 / 0.586 GB, free: 40.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009084/0.7604, allocations: 268 kB / 0.5862 GB, free: 40.43 MB / 378.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 (61): * Single equations (assignments): 56 * 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.001658/0.762, allocations: 2.285 MB / 0.5885 GB, free: 38.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.764, allocations: 1.443 MB / 0.5899 GB, free: 36.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.764, allocations: 0 / 0.5899 GB, free: 36.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006286/0.7647, allocations: 0.5562 MB / 0.5904 GB, free: 35.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005643/0.7652, allocations: 93.86 kB / 0.5905 GB, free: 35.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.7674, allocations: 1.301 MB / 0.5918 GB, free: 34.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.7677, allocations: 0.9473 MB / 0.5927 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005668/0.7683, allocations: 180.4 kB / 0.5929 GB, free: 33.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.7686, allocations: 223.3 kB / 0.5931 GB, free: 33.16 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.7686, allocations: 4 kB / 0.5931 GB, free: 33.15 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.7954, allocations: 14.45 MB / 0.6072 GB, free: 18.7 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/0.7957, allocations: 183.8 kB / 0.6074 GB, free: 18.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.368/3.164, allocations: 0 / 0.6074 GB, free: 18.47 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)