Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002422/0.002426, allocations: 356.2 kB / 16.57 MB, free: 5.59 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.464/3.464, allocations: 388.9 MB / 406.2 MB, free: 11.99 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.003246/0.003245, allocations: 235.8 kB / 451.6 MB, free: 14.58 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.6123/0.6123, allocations: 76.01 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004668/0.000467, allocations: 20 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06557/0.06606, allocations: 53.23 MB / 0.6736 GB, free: 60.83 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.00348/0.06959, allocations: 3.559 MB / 0.6771 GB, free: 57.25 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002473/0.0721, allocations: 1.932 MB / 0.679 GB, free: 55.31 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.07231, allocations: 19.81 kB / 0.679 GB, free: 55.29 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.07258, allocations: 63.59 kB / 0.679 GB, free: 55.23 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004963/0.0731, allocations: 218.8 kB / 0.6793 GB, free: 55.01 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004581/0.07357, allocations: 195.3 kB / 0.6794 GB, free: 54.82 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004471/0.07404, allocations: 0.5298 MB / 0.68 GB, free: 54.29 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005781/0.07463, allocations: 350.9 kB / 0.6803 GB, free: 53.92 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003033/0.07495, allocations: 175.3 kB / 0.6805 GB, free: 53.75 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002213/0.07519, allocations: 203.3 kB / 0.6807 GB, free: 53.55 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 4.507e-05/0.07525, allocations: 23.94 kB / 0.6807 GB, free: 53.53 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004075/0.07567, allocations: 223.4 kB / 0.6809 GB, free: 53.31 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 9.962e-05/0.07578, allocations: 99.69 kB / 0.681 GB, free: 53.21 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 7.84e-05/0.07588, allocations: 93.45 kB / 0.6811 GB, free: 53.11 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005097/0.0764, allocations: 486.9 kB / 0.6815 GB, free: 52.64 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.095e-06/0.07642, allocations: 0 / 0.6815 GB, free: 52.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.458e-06/0.07643, allocations: 0 / 0.6815 GB, free: 52.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.771e-06/0.07644, allocations: 0 / 0.6815 GB, free: 52.64 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009285/0.07738, allocations: 0.7389 MB / 0.6823 GB, free: 51.83 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.949e-05/0.07742, allocations: 8.031 kB / 0.6823 GB, free: 51.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.07844, allocations: 119.4 kB / 0.6824 GB, free: 51.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000503/0.07896, allocations: 394.6 kB / 0.6828 GB, free: 51.28 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.079, allocations: 20.44 kB / 0.6828 GB, free: 51.26 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.291e-05/0.07907, allocations: 20 kB / 0.6828 GB, free: 51.24 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008678/0.07994, allocations: 470.7 kB / 0.6832 GB, free: 50.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.07999, allocations: 0 / 0.6832 GB, free: 50.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.092e-05/0.08004, allocations: 11.94 kB / 0.6833 GB, free: 50.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.515e-05/0.08009, allocations: 28.41 kB / 0.6833 GB, free: 50.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.08115, allocations: 0.5286 MB / 0.6838 GB, free: 50.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001996/0.08316, allocations: 1.713 MB / 0.6855 GB, free: 48.38 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.08424, allocations: 409 kB / 0.6859 GB, free: 47.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/0.08463, allocations: 150.3 kB / 0.686 GB, free: 47.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.08468, allocations: 16 kB / 0.686 GB, free: 47.79 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005271/0.08522, allocations: 306.8 kB / 0.6863 GB, free: 47.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=31): time 2.937e-06/0.08524, allocations: 0 / 0.6863 GB, free: 47.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=31): time 0.001384/0.08663, allocations: 0.5757 MB / 0.6869 GB, free: 46.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/0.08673, allocations: 294.7 kB / 0.6872 GB, free: 46.51 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/0.08712, allocations: 324.5 kB / 0.6875 GB, free: 46.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/0.08717, allocations: 37.7 kB / 0.6875 GB, free: 46.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.08728, allocations: 188.3 kB / 0.6877 GB, free: 45.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.909e-05/0.08737, allocations: 106.6 kB / 0.6878 GB, free: 45.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.396e-05/0.08741, allocations: 8 kB / 0.6878 GB, free: 45.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.224e-05/0.08749, allocations: 350.8 kB / 0.6881 GB, free: 45.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004967/0.088, allocations: 168.3 kB / 0.6883 GB, free: 45.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004659/0.08848, allocations: 303.7 kB / 0.6886 GB, free: 44.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004707/0.08896, allocations: 256 kB / 0.6888 GB, free: 44.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.124e-06/0.08898, allocations: 4 kB / 0.6888 GB, free: 44.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001244/0.09024, allocations: 0.6296 MB / 0.6894 GB, free: 44.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.518e-05/0.0903, allocations: 67.41 kB / 0.6895 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.861e-06/0.09032, allocations: 4 kB / 0.6895 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.09035, allocations: 8.297 kB / 0.6895 GB, free: 43.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003723/0.09073, allocations: 99.88 kB / 0.6896 GB, free: 43.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.09078, allocations: 7.938 kB / 0.6896 GB, free: 43.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/0.09114, allocations: 63.5 kB / 0.6897 GB, free: 43.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.0912, allocations: 27.95 kB / 0.6897 GB, free: 43.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001912/0.0914, allocations: 189.7 kB / 0.6899 GB, free: 43.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-05/0.09148, allocations: 39.56 kB / 0.6899 GB, free: 43.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.242e-05/0.09158, allocations: 47.17 kB / 0.69 GB, free: 43.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.884e-05/0.09162, allocations: 4 kB / 0.69 GB, free: 43.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.804e-06/0.09164, allocations: 7.938 kB / 0.69 GB, free: 43.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.817e-06/0.09165, allocations: 3.984 kB / 0.69 GB, free: 43.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008179/0.09249, allocations: 1.038 MB / 0.691 GB, free: 42.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.286e-06/0.09251, allocations: 4 kB / 0.691 GB, free: 42.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002694/0.09279, allocations: 68.08 kB / 0.6911 GB, free: 42.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.359e-06/0.09281, allocations: 4 kB / 0.6911 GB, free: 42.28 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.09284, allocations: 19.94 kB / 0.6911 GB, free: 42.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.849e-06/0.09286, allocations: 8 kB / 0.6911 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.408e-06/0.09287, allocations: 3.938 kB / 0.6911 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.09388, allocations: 0.4884 MB / 0.6916 GB, free: 41.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.09404, allocations: 148.6 kB / 0.6917 GB, free: 41.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.889e-05/0.09413, allocations: 19.98 kB / 0.6917 GB, free: 41.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.09438, allocations: 35.94 kB / 0.6918 GB, free: 41.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.376e-05/0.09449, allocations: 43.88 kB / 0.6918 GB, free: 41.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.589e-05/0.09455, allocations: 8 kB / 0.6918 GB, free: 41.45 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002449/0.09481, allocations: 231 kB / 0.692 GB, free: 41.22 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.09482, allocations: 0 / 0.692 GB, free: 41.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005032/0.09533, allocations: 95.84 kB / 0.6921 GB, free: 41.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001392/0.09674, allocations: 490.1 kB / 0.6926 GB, free: 40.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000986/0.09774, allocations: 0.5379 MB / 0.6931 GB, free: 40.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.5e-06/0.09776, allocations: 0 / 0.6931 GB, free: 40.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005314/0.0983, allocations: 220.5 kB / 0.6933 GB, free: 39.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005005/0.09882, allocations: 57.05 kB / 0.6934 GB, free: 39.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.1, allocations: 0.7898 MB / 0.6942 GB, free: 39.02 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.1003, allocations: 0.8154 MB / 0.695 GB, free: 38.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002881/0.1006, allocations: 86.78 kB / 0.695 GB, free: 38.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.1007, allocations: 43.42 kB / 0.6951 GB, free: 38.06 MB / 442.7 MB Notification: Performance of SimCode: time 1.388e-06/0.1007, allocations: 0 / 0.6951 GB, free: 38.06 MB / 442.7 MB Notification: Performance of Templates: time 0.009556/0.1103, allocations: 4.473 MB / 0.6995 GB, free: 33.58 MB / 442.7 MB