Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00258/0.002585, allocations: 364.9 kB / 17.21 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.635/3.635, allocations: 388.9 MB / 406.8 MB, free: 11.97 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003548/0.003548, allocations: 229.6 kB / 452.2 MB, free: 14.59 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.7329/0.7329, allocations: 76.02 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004425/0.0004426, allocations: 8 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09008/0.09054, allocations: 53.23 MB / 0.6742 GB, free: 60.82 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4399/0.5305, allocations: 95.92 MB / 0.7679 GB, free: 81.69 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/0.5308, allocations: 92.34 kB / 0.768 GB, free: 81.69 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06686/0.5977, allocations: 18.53 MB / 0.7861 GB, free: 77.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5977, allocations: 4 kB / 0.7861 GB, free: 77.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.342e-05/0.5978, allocations: 15.5 kB / 0.7861 GB, free: 77.59 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002381/0.6002, allocations: 0.9196 MB / 0.787 GB, free: 76.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.6002, allocations: 7.75 kB / 0.787 GB, free: 76.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001422/0.6017, allocations: 160.2 kB / 0.7871 GB, free: 76.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.6029, allocations: 0.4958 MB / 0.7876 GB, free: 76.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.13e-05/0.6029, allocations: 36.48 kB / 0.7877 GB, free: 76.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.603, allocations: 51.56 kB / 0.7877 GB, free: 76.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.6047, allocations: 0.6517 MB / 0.7884 GB, free: 76.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.6048, allocations: 0 / 0.7884 GB, free: 76.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-05/0.6049, allocations: 18.09 kB / 0.7884 GB, free: 76.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.824e-05/0.6049, allocations: 28.17 kB / 0.7884 GB, free: 76.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.6068, allocations: 0.6004 MB / 0.789 GB, free: 76.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00466/0.6115, allocations: 2.515 MB / 0.7914 GB, free: 74.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/0.6134, allocations: 0.6156 MB / 0.792 GB, free: 74.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007202/0.6141, allocations: 216.6 kB / 0.7922 GB, free: 74.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.005e-05/0.6142, allocations: 7.719 kB / 0.7923 GB, free: 74.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008638/0.6151, allocations: 303.8 kB / 0.7925 GB, free: 74.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 2.965e-06/0.6151, allocations: 0 / 0.7925 GB, free: 74.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.002666/0.6177, allocations: 0.7799 MB / 0.7933 GB, free: 73.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.6178, allocations: 132.4 kB / 0.7934 GB, free: 73.74 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009017/0.6187, allocations: 465.3 kB / 0.7939 GB, free: 73.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.698e-05/0.6188, allocations: 36.23 kB / 0.7939 GB, free: 73.53 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/0.619, allocations: 287.5 kB / 0.7942 GB, free: 73.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.6192, allocations: 140.5 kB / 0.7943 GB, free: 73.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.846e-05/0.6192, allocations: 12.28 kB / 0.7943 GB, free: 73.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.6194, allocations: 366.4 kB / 0.7947 GB, free: 72.92 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007155/0.6201, allocations: 196.4 kB / 0.7949 GB, free: 72.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007959/0.6209, allocations: 300.5 kB / 0.7952 GB, free: 72.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007776/0.6217, allocations: 258 kB / 0.7954 GB, free: 72.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.6217, allocations: 0 / 0.7954 GB, free: 72.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002642/0.6244, allocations: 0.7724 MB / 0.7962 GB, free: 72.42 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.6245, allocations: 207 kB / 0.7964 GB, free: 72.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.6245, allocations: 3.875 kB / 0.7964 GB, free: 72.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007755/0.6253, allocations: 154.1 kB / 0.7965 GB, free: 72.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006628/0.626, allocations: 92.81 kB / 0.7966 GB, free: 72.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004008/0.63, allocations: 2.391 MB / 0.7989 GB, free: 70.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008586/0.6309, allocations: 80.67 kB / 0.799 GB, free: 70.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.266e-05/0.631, allocations: 18.77 kB / 0.799 GB, free: 70.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/0.631, allocations: 5.969 kB / 0.799 GB, free: 70.54 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001946/0.633, allocations: 0.6055 MB / 0.7996 GB, free: 70.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.633, allocations: 2.75 kB / 0.7996 GB, free: 70.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005113/0.6335, allocations: 114.3 kB / 0.7997 GB, free: 70.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006388/0.6342, allocations: 91.41 kB / 0.7998 GB, free: 70.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/0.6371, allocations: 2.161 MB / 0.8019 GB, free: 68.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008146/0.6379, allocations: 70.7 kB / 0.802 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.904e-05/0.638, allocations: 17.72 kB / 0.802 GB, free: 68.79 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: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0004567/0.6384, allocations: 292.2 kB / 0.8023 GB, free: 68.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.6386, allocations: 53.38 kB / 0.8023 GB, free: 68.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001762/0.6403, allocations: 0.5192 MB / 0.8028 GB, free: 68.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.6404, allocations: 6 kB / 0.8029 GB, free: 68.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.6404, allocations: 10.92 kB / 0.8029 GB, free: 68.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.6404, allocations: 0 / 0.8029 GB, free: 68.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.6433, allocations: 1.14 MB / 0.804 GB, free: 67.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.6433, allocations: 2.438 kB / 0.804 GB, free: 67.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008231/0.6441, allocations: 93.86 kB / 0.8041 GB, free: 67.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001599/0.6443, allocations: 31.58 kB / 0.8041 GB, free: 67.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.773e-05/0.6444, allocations: 7.594 kB / 0.8041 GB, free: 67.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.6454, allocations: 1.36 MB / 0.8054 GB, free: 66.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.6455, allocations: 0 / 0.8054 GB, free: 66.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00258/0.6481, allocations: 0.8542 MB / 0.8063 GB, free: 66.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00028/0.6484, allocations: 175.9 kB / 0.8064 GB, free: 66.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.6485, allocations: 13.25 kB / 0.8064 GB, free: 66.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007345/0.6492, allocations: 46.64 kB / 0.8065 GB, free: 66.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.6494, allocations: 43.14 kB / 0.8065 GB, free: 66.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.171e-05/0.6495, allocations: 18.53 kB / 0.8066 GB, free: 66.06 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007517/0.6502, allocations: 329.3 kB / 0.8069 GB, free: 65.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6502, allocations: 0 / 0.8069 GB, free: 65.93 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0012/0.6514, allocations: 255.2 kB / 0.8071 GB, free: 65.89 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 35 * 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.0002132/0.6517, allocations: 115.8 kB / 0.8072 GB, free: 65.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003014/0.6547, allocations: 1.13 MB / 0.8083 GB, free: 65.28 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.6547, allocations: 3.938 kB / 0.8083 GB, free: 65.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009866/0.6557, allocations: 365.2 kB / 0.8087 GB, free: 65.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.6568, allocations: 99.3 kB / 0.8088 GB, free: 65.08 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002924/0.6598, allocations: 1.399 MB / 0.8101 GB, free: 64.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.6602, allocations: 0.8993 MB / 0.811 GB, free: 63.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006668/0.6609, allocations: 102.4 kB / 0.8111 GB, free: 63.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.6611, allocations: 38.56 kB / 0.8112 GB, free: 63.36 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6611, allocations: 0 / 0.8112 GB, free: 63.36 MB / 442.7 MB Notification: Performance of Templates: time 0.01878/0.6799, allocations: 6.944 MB / 0.8179 GB, free: 59.52 MB / 442.7 MB