Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001544/0.001544, allocations: 186 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.972/1.972, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 91.86 kB / 267.1 MB, free: 9.293 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2689/0.2689, allocations: 37.98 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.254e-05/3.269e-05, allocations: 8 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1191, allocations: 56.31 MB / 473.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4849/0.6041, allocations: 101.9 MB / 0.5615 GB, free: 1.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003305/0.6044, allocations: 83.95 kB / 0.5616 GB, free: 1.758 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08329/0.6878, allocations: 19.29 MB / 0.5805 GB, free: 14.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.6878, allocations: 0 / 0.5805 GB, free: 14.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.504e-05/0.6879, allocations: 16 kB / 0.5805 GB, free: 14.29 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002416/0.6903, allocations: 0.8654 MB / 0.5813 GB, free: 13.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.6904, allocations: 8.031 kB / 0.5813 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001622/0.692, allocations: 155 kB / 0.5815 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.6935, allocations: 0.5015 MB / 0.582 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.307e-05/0.6936, allocations: 37 kB / 0.582 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/0.6938, allocations: 63.83 kB / 0.5821 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.6955, allocations: 0.6124 MB / 0.5827 GB, free: 11.92 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.757e-05/0.6955, allocations: 4 kB / 0.5827 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.975e-05/0.6956, allocations: 20 kB / 0.5827 GB, free: 11.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.856e-05/0.6957, allocations: 32.94 kB / 0.5827 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/0.6972, allocations: 0.5036 MB / 0.5832 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006342/0.7036, allocations: 2.751 MB / 0.5859 GB, free: 8.465 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.7053, allocations: 0.5311 MB / 0.5864 GB, free: 7.898 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004579/0.7058, allocations: 166.4 kB / 0.5866 GB, free: 7.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.155e-05/0.7059, allocations: 8.312 kB / 0.5866 GB, free: 7.723 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006562/0.7065, allocations: 251.7 kB / 0.5868 GB, free: 7.457 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 3.407e-06/0.7066, allocations: 4 kB / 0.5868 GB, free: 7.453 MB / 426.7 MB Notification: Performance of matching and sorting (n=41): time 0.0013/0.7079, allocations: 414.4 kB / 0.5872 GB, free: 7.039 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.708, allocations: 140.5 kB / 0.5873 GB, free: 6.871 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008154/0.7088, allocations: 420 kB / 0.5877 GB, free: 6.453 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.187e-05/0.7089, allocations: 29.7 kB / 0.5878 GB, free: 6.418 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003399/0.7093, allocations: 350.5 kB / 0.5881 GB, free: 6.074 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.7095, allocations: 138 kB / 0.5882 GB, free: 5.938 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.28e-05/0.7095, allocations: 12 kB / 0.5883 GB, free: 5.926 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.7097, allocations: 326.8 kB / 0.5886 GB, free: 5.598 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004348/0.7101, allocations: 149 kB / 0.5887 GB, free: 5.453 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005613/0.7107, allocations: 259.3 kB / 0.589 GB, free: 5.148 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005309/0.7113, allocations: 205.5 kB / 0.5891 GB, free: 4.941 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.7113, allocations: 0 / 0.5891 GB, free: 4.941 MB / 426.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001998/0.7133, allocations: 0.6283 MB / 0.5898 GB, free: 4.297 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006645/0.714, allocations: 1.339 MB / 0.5911 GB, free: 2.852 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.714, allocations: 4 kB / 0.5911 GB, free: 2.848 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007729/0.7148, allocations: 136.8 kB / 0.5912 GB, free: 2.711 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007371/0.7155, allocations: 99.83 kB / 0.5913 GB, free: 2.613 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.7166, allocations: 0.7604 MB / 0.592 GB, free: 1.828 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009277/0.7176, allocations: 91.53 kB / 0.5921 GB, free: 1.738 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.014e-05/0.7177, allocations: 20 kB / 0.5921 GB, free: 1.719 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.7177, allocations: 4 kB / 0.5922 GB, free: 1.715 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001773/0.7195, allocations: 0.5488 MB / 0.5927 GB, free: 1.156 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.7195, allocations: 7.938 kB / 0.5927 GB, free: 1.148 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005555/0.7201, allocations: 120 kB / 0.5928 GB, free: 1.031 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000717/0.7208, allocations: 99.81 kB / 0.5929 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003773/0.7246, allocations: 2.191 MB / 0.595 GB, free: 14.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006302/0.7253, allocations: 59.56 kB / 0.5951 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.345e-05/0.7254, allocations: 20 kB / 0.5951 GB, free: 14.53 MB / 442.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 () * 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.0002435/0.7256, allocations: 140.7 kB / 0.5953 GB, free: 14.39 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.7258, allocations: 59.34 kB / 0.5953 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.7271, allocations: 427.4 kB / 0.5957 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.7271, allocations: 7.984 kB / 0.5957 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.7272, allocations: 3.984 kB / 0.5957 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.7272, allocations: 0 / 0.5957 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002462/0.7297, allocations: 1.077 MB / 0.5968 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.7297, allocations: 7.938 kB / 0.5968 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009174/0.7306, allocations: 95.88 kB / 0.5969 GB, free: 12.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001698/0.7308, allocations: 28.8 kB / 0.5969 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.828e-05/0.7309, allocations: 16 kB / 0.5969 GB, free: 12.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/0.7323, allocations: 1.343 MB / 0.5982 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/0.7323, allocations: 4.031 kB / 0.5982 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/0.7342, allocations: 0.7355 MB / 0.599 GB, free: 10.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003696/0.7346, allocations: 172.3 kB / 0.5991 GB, free: 10.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.7347, allocations: 15.98 kB / 0.5991 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007498/0.7354, allocations: 47.95 kB / 0.5992 GB, free: 10.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.7356, allocations: 39.89 kB / 0.5992 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.301e-05/0.7357, allocations: 12 kB / 0.5992 GB, free: 10.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00064/0.7363, allocations: 333.6 kB / 0.5996 GB, free: 9.723 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7363, allocations: 0 / 0.5996 GB, free: 9.723 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001193/0.7375, allocations: 247.5 kB / 0.5998 GB, free: 9.48 MB / 442.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) * 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.0002592/0.7378, allocations: 135.3 kB / 0.5999 GB, free: 9.336 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002342/0.7402, allocations: 0.8418 MB / 0.6007 GB, free: 8.457 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.7402, allocations: 4.312 kB / 0.6007 GB, free: 8.453 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007507/0.741, allocations: 298.4 kB / 0.601 GB, free: 8.148 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009704/0.742, allocations: 106 kB / 0.6011 GB, free: 8.043 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.7448, allocations: 0.9517 MB / 0.6021 GB, free: 7.059 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006791/0.7456, allocations: 0.9061 MB / 0.6029 GB, free: 6.125 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002862/0.7459, allocations: 39.42 kB / 0.603 GB, free: 6.086 MB / 442.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7459, allocations: 3.938 kB / 0.603 GB, free: 6.082 MB / 442.7 MB Notification: Performance of Templates: time 0.02091/0.7668, allocations: 9.119 MB / 0.6119 GB, free: 12.95 MB / 458.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)