Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008973/0.0008971, allocations: 173.1 kB / 16.76 MB, free: 5.055 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.213/1.213, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007374/0.0007374, allocations: 89.08 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1691/0.1691, allocations: 38.08 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003674, allocations: 15.98 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2726, allocations: 56.32 MB / 480.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1086/0.3813, allocations: 96.48 MB / 0.5632 GB, free: 5.883 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001626/0.3829, allocations: 0.8701 MB / 0.5641 GB, free: 5.016 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04065/0.4236, allocations: 16.89 MB / 0.5806 GB, free: 3.961 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4236, allocations: 4 kB / 0.5806 GB, free: 3.957 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.385e-05/0.4237, allocations: 12 kB / 0.5806 GB, free: 3.945 MB / 410.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.001467/0.4251, allocations: 0.7251 MB / 0.5813 GB, free: 3.164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.4252, allocations: 12.03 kB / 0.5813 GB, free: 3.152 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009252/0.4261, allocations: 124.3 kB / 0.5814 GB, free: 3.031 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006441/0.4268, allocations: 391.7 kB / 0.5818 GB, free: 2.609 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.4268, allocations: 12.81 kB / 0.5818 GB, free: 2.598 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.361e-05/0.4269, allocations: 28.36 kB / 0.5818 GB, free: 2.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009507/0.4279, allocations: 467.3 kB / 0.5823 GB, free: 2.082 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.4279, allocations: 4.188 kB / 0.5823 GB, free: 2.078 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.994e-05/0.428, allocations: 11.94 kB / 0.5823 GB, free: 2.066 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.925e-05/0.428, allocations: 24.36 kB / 0.5823 GB, free: 2.043 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.4293, allocations: 0.5598 MB / 0.5829 GB, free: 1.484 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.4315, allocations: 1.744 MB / 0.5846 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.4326, allocations: 437.7 kB / 0.585 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.433, allocations: 166.1 kB / 0.5851 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.893e-05/0.433, allocations: 4.234 kB / 0.5851 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005625/0.4336, allocations: 315.1 kB / 0.5854 GB, free: 14.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 2.865e-06/0.4336, allocations: 0 / 0.5854 GB, free: 14.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.001344/0.435, allocations: 0.5997 MB / 0.586 GB, free: 14.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.4351, allocations: 298.7 kB / 0.5863 GB, free: 13.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004676/0.4356, allocations: 364.5 kB / 0.5867 GB, free: 13.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.4356, allocations: 37.7 kB / 0.5867 GB, free: 13.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.4358, allocations: 200.4 kB / 0.5869 GB, free: 13.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.387e-05/0.4359, allocations: 102.5 kB / 0.587 GB, free: 13 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.229e-05/0.4359, allocations: 12 kB / 0.587 GB, free: 12.99 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4361, allocations: 342.8 kB / 0.5873 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/0.4364, allocations: 167.9 kB / 0.5875 GB, free: 12.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004491/0.4369, allocations: 293 kB / 0.5878 GB, free: 12.13 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008736/0.4378, allocations: 0.5054 MB / 0.5883 GB, free: 11.56 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.4378, allocations: 0 / 0.5883 GB, free: 11.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001109/0.4389, allocations: 0.5575 MB / 0.5888 GB, free: 10.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.439, allocations: 36.2 kB / 0.5888 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.439, allocations: 4 kB / 0.5888 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.439, allocations: 7.938 kB / 0.5888 GB, free: 10.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.4394, allocations: 95.88 kB / 0.5889 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.4394, allocations: 7.938 kB / 0.5889 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000335/0.4398, allocations: 59.69 kB / 0.589 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.4398, allocations: 20 kB / 0.589 GB, free: 10.76 MB / 426.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 (43): * Single equations (assignments): 42 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002784/0.4401, allocations: 189.7 kB / 0.5892 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.168e-05/0.4402, allocations: 47.47 kB / 0.5893 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.4412, allocations: 492.5 kB / 0.5897 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.4413, allocations: 4 kB / 0.5897 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.4413, allocations: 4 kB / 0.5897 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.4413, allocations: 3.984 kB / 0.5897 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000999/0.4423, allocations: 1.105 MB / 0.5908 GB, free: 8.832 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4423, allocations: 0 / 0.5908 GB, free: 8.832 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002944/0.4426, allocations: 79.89 kB / 0.5909 GB, free: 8.754 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.4426, allocations: 4 kB / 0.5909 GB, free: 8.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.754e-05/0.4427, allocations: 15.98 kB / 0.5909 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.4427, allocations: 4 kB / 0.5909 GB, free: 8.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4427, allocations: 4.188 kB / 0.5909 GB, free: 8.727 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.4438, allocations: 0.5541 MB / 0.5915 GB, free: 8.125 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.4439, allocations: 128.6 kB / 0.5916 GB, free: 7.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.11e-05/0.444, allocations: 11.94 kB / 0.5916 GB, free: 7.969 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.4442, allocations: 35.97 kB / 0.5916 GB, free: 7.934 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.4443, allocations: 51.81 kB / 0.5917 GB, free: 7.883 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-05/0.4444, allocations: 19.98 kB / 0.5917 GB, free: 7.863 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002903/0.4447, allocations: 263 kB / 0.5919 GB, free: 7.609 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4447, allocations: 0 / 0.5919 GB, free: 7.609 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004696/0.4451, allocations: 103.8 kB / 0.592 GB, free: 7.508 MB / 426.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.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * 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.001078/0.4462, allocations: 482.7 kB / 0.5925 GB, free: 7.098 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.4473, allocations: 475.9 kB / 0.593 GB, free: 6.621 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.4473, allocations: 0 / 0.593 GB, free: 6.621 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004876/0.4478, allocations: 235.7 kB / 0.5932 GB, free: 6.391 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005469/0.4483, allocations: 73.53 kB / 0.5933 GB, free: 6.316 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.4498, allocations: 0.9047 MB / 0.5941 GB, free: 5.355 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000424/0.4502, allocations: 0.8128 MB / 0.5949 GB, free: 4.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.4504, allocations: 51.41 kB / 0.595 GB, free: 4.469 MB / 426.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4504, allocations: 0 / 0.595 GB, free: 4.469 MB / 426.7 MB Notification: Performance of Templates: time 0.009468/0.4599, allocations: 5.526 MB / 0.6004 GB, free: 14.93 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)