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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009731/0.0009731, allocations: 171.9 kB / 16.07 MB, free: 5.727 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.212/1.212, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007478/0.0007479, allocations: 98.97 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1635/0.1635, allocations: 38.08 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003057/0.0003057, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2535, allocations: 56.32 MB / 479.6 MB, free: 9.25 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.004357/0.2579, allocations: 4.902 MB / 484.5 MB, free: 6.027 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002616/0.2605, allocations: 2.184 MB / 486.7 MB, free: 4.469 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003177/0.2609, allocations: 30.03 kB / 486.7 MB, free: 4.457 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003465/0.2612, allocations: 96.34 kB / 486.8 MB, free: 4.406 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006263/0.2619, allocations: 322.8 kB / 487.1 MB, free: 4.23 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006821/0.2626, allocations: 314.2 kB / 487.5 MB, free: 4.078 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007858/0.2634, allocations: 0.8894 MB / 488.3 MB, free: 3.668 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007639/0.2641, allocations: 0.6247 MB / 489 MB, free: 3.258 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003361/0.2645, allocations: 261.5 kB / 489.2 MB, free: 3.148 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.2648, allocations: 292.2 kB / 489.5 MB, free: 3.023 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.883e-05/0.2649, allocations: 23.59 kB / 489.5 MB, free: 3.023 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005224/0.2654, allocations: 359.5 kB / 489.9 MB, free: 2.902 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.2656, allocations: 136.3 kB / 490 MB, free: 2.844 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002085/0.2658, allocations: 291.1 kB / 490.3 MB, free: 2.645 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007088/0.2665, allocations: 0.6949 MB / 491 MB, free: 2.477 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2665, allocations: 0 / 491 MB, free: 2.477 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2665, allocations: 0 / 491 MB, free: 2.477 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.2665, allocations: 1.219 kB / 491 MB, free: 2.477 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.001458/0.268, allocations: 0.9289 MB / 491.9 MB, free: 1.809 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.268, allocations: 9.281 kB / 491.9 MB, free: 1.809 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007238/0.2688, allocations: 142.7 kB / 492.1 MB, free: 1.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006678/0.2695, allocations: 0.5093 MB / 492.6 MB, free: 1.402 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/0.2695, allocations: 41.2 kB / 492.6 MB, free: 1.383 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.337e-05/0.2696, allocations: 54.42 kB / 492.7 MB, free: 1.363 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.2707, allocations: 0.6899 MB / 493.4 MB, free: 1.027 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.2707, allocations: 9.594 kB / 493.4 MB, free: 1.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.139e-05/0.2708, allocations: 21.02 kB / 493.4 MB, free: 1.004 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-05/0.2708, allocations: 28.94 kB / 493.4 MB, free: 1 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.2721, allocations: 0.6325 MB / 494.1 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003181/0.2752, allocations: 2.713 MB / 496.8 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.2765, allocations: 0.6403 MB / 497.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004771/0.277, allocations: 225.9 kB / 497.6 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.765e-05/0.2771, allocations: 5.141 kB / 497.6 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006088/0.2777, allocations: 314.3 kB / 497.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 3.336e-06/0.2777, allocations: 0 / 497.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=41): time 0.001739/0.2795, allocations: 0.7974 MB / 498.7 MB, free: 13.99 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.2795, allocations: 138.4 kB / 498.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007037/0.2803, allocations: 0.4907 MB / 499.4 MB, free: 13.6 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.257e-05/0.2803, allocations: 36.95 kB / 499.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.2805, allocations: 306.2 kB / 499.7 MB, free: 13.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.2807, allocations: 143.8 kB / 499.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.696e-05/0.2807, allocations: 14.19 kB / 499.9 MB, free: 13.16 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.2808, allocations: 363.1 kB / 0.4885 GB, free: 12.81 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004628/0.2813, allocations: 198.6 kB / 0.4887 GB, free: 12.72 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005204/0.2818, allocations: 326.5 kB / 0.489 GB, free: 12.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009576/0.2828, allocations: 0.5436 MB / 0.4895 GB, free: 12.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2828, allocations: 1.406 kB / 0.4895 GB, free: 12.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001684/0.2845, allocations: 0.8345 MB / 0.4903 GB, free: 11.67 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.2846, allocations: 214 kB / 0.4905 GB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.2847, allocations: 4.281 kB / 0.4905 GB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000513/0.2852, allocations: 163.4 kB / 0.4907 GB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/0.2855, allocations: 103 kB / 0.4908 GB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002995/0.2886, allocations: 2.471 MB / 0.4932 GB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.289, allocations: 82.48 kB / 0.4933 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.2891, allocations: 22.98 kB / 0.4933 GB, free: 9.203 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/0.2891, allocations: 5.781 kB / 0.4933 GB, free: 9.203 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00127/0.2904, allocations: 0.6409 MB / 0.4939 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.2904, allocations: 3.5 kB / 0.4939 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003285/0.2907, allocations: 132.2 kB / 0.4941 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003639/0.2911, allocations: 97.44 kB / 0.4942 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.2934, allocations: 2.238 MB / 0.4963 GB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004544/0.2939, allocations: 76.11 kB / 0.4964 GB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.2939, allocations: 18.53 kB / 0.4964 GB, free: 6.766 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.00037/0.2943, allocations: 301.1 kB / 0.4967 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.282e-05/0.2944, allocations: 53.41 kB / 0.4968 GB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.2956, allocations: 0.5388 MB / 0.4973 GB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.2956, allocations: 4.312 kB / 0.4973 GB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2956, allocations: 1.156 kB / 0.4973 GB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.2956, allocations: 9.047 kB / 0.4973 GB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.2974, allocations: 1.204 MB / 0.4985 GB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2975, allocations: 4 kB / 0.4985 GB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004417/0.2979, allocations: 99.84 kB / 0.4986 GB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.365e-05/0.298, allocations: 27 kB / 0.4986 GB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.2981, allocations: 10.72 kB / 0.4986 GB, free: 5.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008714/0.2989, allocations: 1.351 MB / 0.4999 GB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2989, allocations: 0 / 0.4999 GB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.3006, allocations: 0.8871 MB / 0.5008 GB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001953/0.3008, allocations: 177 kB / 0.501 GB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.754e-05/0.3009, allocations: 14.73 kB / 0.501 GB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003843/0.3013, allocations: 46.11 kB / 0.501 GB, free: 3.152 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.769e-05/0.3014, allocations: 42.47 kB / 0.5011 GB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.3014, allocations: 8.594 kB / 0.5011 GB, free: 3.125 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004994/0.3019, allocations: 356.1 kB / 0.5014 GB, free: 2.914 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.533e-06/0.3019, allocations: 0 / 0.5014 GB, free: 2.914 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008808/0.3028, allocations: 256.2 kB / 0.5017 GB, free: 2.852 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.000134/0.303, allocations: 116.9 kB / 0.5018 GB, free: 2.746 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.305, allocations: 1.165 MB / 0.5029 GB, free: 1.852 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.305, allocations: 4.375 kB / 0.5029 GB, free: 1.848 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005831/0.3056, allocations: 358.4 kB / 0.5033 GB, free: 1.484 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006569/0.3062, allocations: 121.5 kB / 0.5034 GB, free: 1.371 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/0.3083, allocations: 1.515 MB / 0.5049 GB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.3087, allocations: 0.902 MB / 0.5057 GB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.3089, allocations: 35.44 kB / 0.5058 GB, free: 14.85 MB / 346.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3089, allocations: 0 / 0.5058 GB, free: 14.85 MB / 346.7 MB Notification: Performance of Templates: time 0.01068/0.3196, allocations: 9.544 MB / 0.5151 GB, free: 5.297 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)