Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_cpp_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.0008979/0.0008981, allocations: 174.6 kB / 16.07 MB, free: 5.723 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.353/1.353, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.000772/0.0007719, allocations: 92.84 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1795/0.1795, allocations: 38.06 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003693/0.0003695, allocations: 12 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2758, allocations: 56.33 MB / 479.7 MB, free: 9.094 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005332/0.2812, allocations: 4.908 MB / 484.6 MB, free: 5.852 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003615/0.2849, allocations: 2.176 MB / 486.8 MB, free: 4.301 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006464/0.2855, allocations: 31.03 kB / 486.9 MB, free: 4.289 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005805/0.2861, allocations: 96.72 kB / 486.9 MB, free: 4.238 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008912/0.287, allocations: 317.5 kB / 487.3 MB, free: 4.066 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009186/0.288, allocations: 326 kB / 487.6 MB, free: 3.902 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00109/0.2891, allocations: 0.8862 MB / 488.5 MB, free: 3.496 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009297/0.29, allocations: 0.6277 MB / 489.1 MB, free: 3.082 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004413/0.2905, allocations: 261.4 kB / 489.3 MB, free: 2.973 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000403/0.2909, allocations: 293.7 kB / 489.6 MB, free: 2.848 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.232e-05/0.291, allocations: 23.38 kB / 489.7 MB, free: 2.848 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006522/0.2916, allocations: 362.3 kB / 490 MB, free: 2.723 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.2918, allocations: 135.4 kB / 490.1 MB, free: 2.664 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002611/0.2921, allocations: 288.8 kB / 490.4 MB, free: 2.469 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008228/0.2929, allocations: 0.6897 MB / 491.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.2929, allocations: 0.875 kB / 491.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2929, allocations: 0 / 491.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.2929, allocations: 0 / 491.1 MB, free: 2.305 MB / 314.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.001727/0.2947, allocations: 0.9271 MB / 492 MB, free: 1.641 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.2947, allocations: 9.453 kB / 492 MB, free: 1.641 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.2948, allocations: 96.41 kB / 492.1 MB, free: 1.566 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007883/0.2956, allocations: 142.5 kB / 492.3 MB, free: 1.527 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008446/0.2965, allocations: 0.5188 MB / 492.8 MB, free: 1.148 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.868e-05/0.2965, allocations: 34.53 kB / 492.8 MB, free: 1.137 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.514e-05/0.2966, allocations: 51.08 kB / 492.9 MB, free: 1.121 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.2981, allocations: 0.6888 MB / 493.6 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.2981, allocations: 6.078 kB / 493.6 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/0.2982, allocations: 25.56 kB / 493.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-05/0.2982, allocations: 24.22 kB / 493.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.2996, allocations: 0.6283 MB / 494.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003776/0.3034, allocations: 2.714 MB / 497 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001445/0.3049, allocations: 0.6389 MB / 497.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005172/0.3054, allocations: 226 kB / 497.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.143e-05/0.3054, allocations: 4.797 kB / 497.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006991/0.3061, allocations: 319.5 kB / 498.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 2.876e-06/0.3062, allocations: 0 / 498.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=41): time 0.00193/0.3081, allocations: 0.796 MB / 498.9 MB, free: 13.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.881e-05/0.3082, allocations: 139.8 kB / 499.1 MB, free: 13.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000761/0.309, allocations: 0.4901 MB / 499.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/0.309, allocations: 36.39 kB / 499.6 MB, free: 13.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002571/0.3093, allocations: 314.4 kB / 499.9 MB, free: 13.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.3094, allocations: 134 kB / 0.4883 GB, free: 12.96 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/0.3094, allocations: 9.5 kB / 0.4883 GB, free: 12.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3096, allocations: 368.3 kB / 0.4887 GB, free: 12.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005131/0.3101, allocations: 202.1 kB / 0.4889 GB, free: 12.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005585/0.3107, allocations: 322.3 kB / 0.4892 GB, free: 12.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.3117, allocations: 0.5473 MB / 0.4897 GB, free: 11.89 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.3117, allocations: 1.312 kB / 0.4897 GB, free: 11.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001809/0.3136, allocations: 0.8271 MB / 0.4905 GB, free: 11.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.3137, allocations: 209.7 kB / 0.4907 GB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3137, allocations: 4.125 kB / 0.4907 GB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005822/0.3143, allocations: 175.4 kB / 0.4909 GB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/0.3147, allocations: 90.7 kB / 0.491 GB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/0.3179, allocations: 2.479 MB / 0.4934 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/0.3186, allocations: 86.77 kB / 0.4935 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-05/0.3186, allocations: 21.97 kB / 0.4935 GB, free: 8.984 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.497e-06/0.3186, allocations: 4.312 kB / 0.4935 GB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001437/0.3201, allocations: 0.6451 MB / 0.4941 GB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.3201, allocations: 2.625 kB / 0.4941 GB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003611/0.3205, allocations: 128.2 kB / 0.4943 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003748/0.3208, allocations: 94.23 kB / 0.4944 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002392/0.3233, allocations: 2.244 MB / 0.4965 GB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004922/0.3238, allocations: 72.41 kB / 0.4966 GB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.3238, allocations: 27.08 kB / 0.4966 GB, free: 6.539 MB / 330.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 () * Number of clocked 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.0004096/0.3242, allocations: 293.4 kB / 0.4969 GB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.439e-05/0.3243, allocations: 53.69 kB / 0.497 GB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001227/0.3256, allocations: 0.5416 MB / 0.4975 GB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.3256, allocations: 8.484 kB / 0.4975 GB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3256, allocations: 2.125 kB / 0.4975 GB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.3256, allocations: 1.219 kB / 0.4975 GB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.3276, allocations: 1.2 MB / 0.4987 GB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.3276, allocations: 3.984 kB / 0.4987 GB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004473/0.328, allocations: 96.06 kB / 0.4988 GB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000106/0.3281, allocations: 27.31 kB / 0.4988 GB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/0.3282, allocations: 14.89 kB / 0.4988 GB, free: 5.035 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008929/0.3291, allocations: 1.354 MB / 0.5001 GB, free: 3.645 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3291, allocations: 0 / 0.5001 GB, free: 3.645 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.3308, allocations: 0.8912 MB / 0.501 GB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.331, allocations: 176.8 kB / 0.5012 GB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.355e-05/0.3311, allocations: 7.844 kB / 0.5012 GB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004085/0.3315, allocations: 51.88 kB / 0.5012 GB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.3316, allocations: 35.52 kB / 0.5013 GB, free: 2.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.3317, allocations: 13.84 kB / 0.5013 GB, free: 2.906 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005556/0.3322, allocations: 359.4 kB / 0.5016 GB, free: 2.691 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3322, allocations: 0 / 0.5016 GB, free: 2.691 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009767/0.3332, allocations: 256.2 kB / 0.5019 GB, free: 2.629 MB / 330.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) * Number of clocked states: 0 () * 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.001982/0.3352, allocations: 1.447 MB / 0.5033 GB, free: 1.449 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.3373, allocations: 1.169 MB / 0.5044 GB, free: 236 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3373, allocations: 256 / 0.5044 GB, free: 236 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006074/0.338, allocations: 362.3 kB / 0.5048 GB, free: 15.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007297/0.3387, allocations: 112.9 kB / 0.5049 GB, free: 15.76 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007423/0.3461, allocations: 3.973 MB / 0.5088 GB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.3467, allocations: 0.902 MB / 0.5096 GB, free: 10.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.347, allocations: 199.4 kB / 0.5098 GB, free: 10.55 MB / 346.7 MB Notification: Performance of SimCode: time 6.41e-07/0.347, allocations: 0 / 0.5098 GB, free: 10.55 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.587/3.934, allocations: 11.16 MB / 0.5207 GB, free: 15.37 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)