Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 113.4 kB / 17.07 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001893/0.001893, allocations: 195 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1792/0.1792, allocations: 38.04 MB / 329.9 MB, free: 8.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 63.91 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3536, allocations: 58.06 MB / 0.5036 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.006092/0.3597, allocations: 4.243 MB / 0.5077 GB, free: 4.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003269/0.363, allocations: 2.515 MB / 0.5102 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002508/0.3633, allocations: 11.25 kB / 0.5102 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001054/0.3643, allocations: 341.9 kB / 0.5105 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008032/0.3652, allocations: 337.2 kB / 0.5109 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009474/0.3661, allocations: 383.6 kB / 0.5112 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006308/0.3668, allocations: 0.6187 MB / 0.5118 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003677/0.3671, allocations: 234.9 kB / 0.5121 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004313/0.3676, allocations: 273.5 kB / 0.5123 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003064/0.3679, allocations: 252.2 kB / 0.5126 GB, free: 1.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.225e-05/0.368, allocations: 38.34 kB / 0.5126 GB, free: 1.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009102/0.3689, allocations: 0.5391 MB / 0.5131 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.369, allocations: 132.7 kB / 0.5132 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.3692, allocations: 196.5 kB / 0.5134 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009015/0.3701, allocations: 0.6966 MB / 0.5141 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3701, allocations: 0 / 0.5141 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3701, allocations: 5.406 kB / 0.5141 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.3702, allocations: 0 / 0.5141 GB, free: 0.8164 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001164/0.3713, allocations: 0.7892 MB / 0.5149 GB, free: 180 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.3714, allocations: 13.86 kB / 0.5149 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.481e-05/0.3714, allocations: 57.58 kB / 0.515 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001069/0.3725, allocations: 118.4 kB / 0.5151 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006252/0.3732, allocations: 423.5 kB / 0.5155 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.3732, allocations: 23.69 kB / 0.5155 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.439e-05/0.3733, allocations: 32.36 kB / 0.5155 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008661/0.3741, allocations: 450.8 kB / 0.516 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.3741, allocations: 1.797 kB / 0.516 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.857e-05/0.3742, allocations: 16.03 kB / 0.516 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.8e-05/0.3742, allocations: 18.23 kB / 0.516 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.3753, allocations: 485.3 kB / 0.5165 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/0.3776, allocations: 1.787 MB / 0.5182 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.3787, allocations: 380.3 kB / 0.5186 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003659/0.3791, allocations: 143.2 kB / 0.5187 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.3791, allocations: 5.875 kB / 0.5187 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005438/0.3796, allocations: 291.2 kB / 0.519 GB, free: 13.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 3.917e-06/0.3797, allocations: 5.484 kB / 0.519 GB, free: 13.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=30): time 0.001412/0.3811, allocations: 0.5194 MB / 0.5195 GB, free: 13.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.3812, allocations: 241 kB / 0.5197 GB, free: 13.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/0.3816, allocations: 355.9 kB / 0.5201 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/0.3817, allocations: 38.92 kB / 0.5201 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.3819, allocations: 209.6 kB / 0.5203 GB, free: 12.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.857e-05/0.382, allocations: 105.6 kB / 0.5204 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.3821, allocations: 69.8 kB / 0.5205 GB, free: 12.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3823, allocations: 347 kB / 0.5208 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003724/0.3826, allocations: 138.4 kB / 0.5209 GB, free: 12.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004775/0.3831, allocations: 274 kB / 0.5212 GB, free: 12.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008603/0.384, allocations: 463 kB / 0.5216 GB, free: 11.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.384, allocations: 4 kB / 0.5216 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001159/0.3852, allocations: 0.5312 MB / 0.5222 GB, free: 11.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/0.3852, allocations: 35.06 kB / 0.5222 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.3852, allocations: 4.344 kB / 0.5222 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3853, allocations: 6.406 kB / 0.5222 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003539/0.3856, allocations: 90.94 kB / 0.5223 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/0.3856, allocations: 12.2 kB / 0.5223 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.386, allocations: 55.23 kB / 0.5223 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.386, allocations: 14.61 kB / 0.5224 GB, free: 11.41 MB / 398.1 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 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,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): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002477/0.3863, allocations: 201.2 kB / 0.5226 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.801e-05/0.3864, allocations: 43.66 kB / 0.5226 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.3865, allocations: 52.36 kB / 0.5226 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3865, allocations: 9.438 kB / 0.5227 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.046e-06/0.3865, allocations: 1.375 kB / 0.5227 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3865, allocations: 8.469 kB / 0.5227 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009021/0.3874, allocations: 0.8511 MB / 0.5235 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.3874, allocations: 1.375 kB / 0.5235 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002708/0.3877, allocations: 65.22 kB / 0.5236 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.3877, allocations: 2.75 kB / 0.5236 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.3878, allocations: 11.61 kB / 0.5236 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.3878, allocations: 2.75 kB / 0.5236 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.3878, allocations: 11.56 kB / 0.5236 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009697/0.3888, allocations: 457.6 kB / 0.524 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.908e-05/0.3889, allocations: 113.7 kB / 0.5241 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.812e-05/0.3889, allocations: 15.25 kB / 0.5241 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.3892, allocations: 24.95 kB / 0.5242 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.307e-05/0.3893, allocations: 43.58 kB / 0.5242 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.3893, allocations: 13.44 kB / 0.5242 GB, free: 10.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002893/0.3896, allocations: 253.8 kB / 0.5245 GB, free: 9.953 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3896, allocations: 0 / 0.5245 GB, free: 9.953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004381/0.3901, allocations: 97.06 kB / 0.5246 GB, free: 9.93 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (30): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002113/0.3922, allocations: 1.34 MB / 0.5259 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009687/0.3932, allocations: 434.1 kB / 0.5263 GB, free: 8.852 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3932, allocations: 1.094 kB / 0.5263 GB, free: 8.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004597/0.3936, allocations: 188.8 kB / 0.5265 GB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.3941, allocations: 83.05 kB / 0.5265 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00537/0.3995, allocations: 3.729 MB / 0.5302 GB, free: 6.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/0.3999, allocations: 0.808 MB / 0.531 GB, free: 5.652 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002603/0.4002, allocations: 85.53 kB / 0.5311 GB, free: 5.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.4004, allocations: 122.5 kB / 0.5312 GB, free: 5.566 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4004, allocations: 0 / 0.5312 GB, free: 5.566 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02865/0.4291, allocations: 8.577 MB / 0.5395 GB, free: 1.656 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.151/8.58, allocations: 8.016 kB / 0.5396 GB, free: 1.652 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe 2>&1)