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.001135/0.001135, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001132/0.001132, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.333/1.333, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1805/0.1805, allocations: 38.03 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001344, allocations: 59.44 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09795/0.09932, allocations: 58.06 MB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.006239/0.1056, allocations: 4.238 MB / 461.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003448/0.1091, allocations: 2.516 MB / 463.7 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.1094, allocations: 11.94 kB / 463.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.1106, allocations: 334.6 kB / 464.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008872/0.1115, allocations: 330.6 kB / 464.4 MB, free: 488 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.1126, allocations: 390.8 kB / 464.8 MB, free: 96 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007777/0.1134, allocations: 0.6235 MB / 465.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004027/0.1138, allocations: 226.1 kB / 465.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004959/0.1143, allocations: 274.9 kB / 465.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003232/0.1146, allocations: 251 kB / 466.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.029e-05/0.1147, allocations: 36 kB / 466.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008817/0.1156, allocations: 0.5417 MB / 466.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.1157, allocations: 143.5 kB / 466.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.1159, allocations: 187.1 kB / 467 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000809/0.1167, allocations: 0.6856 MB / 467.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1168, allocations: 7.938 kB / 467.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1168, allocations: 0 / 467.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1168, allocations: 4 kB / 467.7 MB, free: 13.13 MB / 350.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.001508/0.1183, allocations: 0.7668 MB / 468.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.1184, allocations: 11.89 kB / 468.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.503e-05/0.1184, allocations: 58.73 kB / 468.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.1195, allocations: 120.3 kB / 468.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000534/0.1201, allocations: 407.7 kB / 469.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.843e-05/0.1201, allocations: 20.88 kB / 469.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.601e-05/0.1202, allocations: 27.94 kB / 469.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008852/0.1211, allocations: 453.2 kB / 469.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.1211, allocations: 0 / 469.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.617e-05/0.1211, allocations: 11.98 kB / 469.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.516e-05/0.1212, allocations: 24.42 kB / 469.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009675/0.1222, allocations: 489.2 kB / 470.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.1241, allocations: 1.783 MB / 471.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.1251, allocations: 377.1 kB / 472.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003543/0.1255, allocations: 141.6 kB / 472.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/0.1255, allocations: 11.92 kB / 472.4 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005256/0.126, allocations: 285.6 kB / 472.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.964e-06/0.1261, allocations: 0 / 472.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001306/0.1274, allocations: 0.5156 MB / 473.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.1275, allocations: 239.3 kB / 473.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.1279, allocations: 357.6 kB / 473.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.1279, allocations: 37.7 kB / 473.8 MB, free: 6.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.128, allocations: 212.6 kB / 474 MB, free: 6.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.159e-05/0.1281, allocations: 90.72 kB / 474.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.1282, allocations: 73.59 kB / 474.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1283, allocations: 350.8 kB / 474.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/0.1287, allocations: 144.2 kB / 474.6 MB, free: 5.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.1292, allocations: 265.8 kB / 474.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008262/0.13, allocations: 478.3 kB / 475.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.13, allocations: 0 / 475.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001064/0.1311, allocations: 0.5222 MB / 475.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/0.1311, allocations: 33.7 kB / 475.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.1312, allocations: 4 kB / 475.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/0.1312, allocations: 8 kB / 475.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003464/0.1315, allocations: 91.88 kB / 476 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.1316, allocations: 11.92 kB / 476 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.1319, allocations: 59.52 kB / 476.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.419e-05/0.1319, allocations: 19.98 kB / 476.1 MB, free: 4.191 MB / 350.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.0001995/0.1321, allocations: 193.7 kB / 476.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.027e-05/0.1322, allocations: 39.47 kB / 476.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.1323, allocations: 55.25 kB / 476.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1323, allocations: 4 kB / 476.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1323, allocations: 7.938 kB / 476.4 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1323, allocations: 4 kB / 476.4 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000779/0.1331, allocations: 0.8469 MB / 477.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1331, allocations: 0 / 477.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002602/0.1334, allocations: 63.89 kB / 477.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.1334, allocations: 4 kB / 477.3 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.1335, allocations: 7.984 kB / 477.3 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1335, allocations: 4 kB / 477.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.1335, allocations: 8.062 kB / 477.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008941/0.1344, allocations: 461.5 kB / 477.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.282e-05/0.1345, allocations: 112.7 kB / 477.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.525e-05/0.1345, allocations: 16 kB / 477.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.1348, allocations: 23.97 kB / 477.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.259e-05/0.1349, allocations: 43.83 kB / 478 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.1349, allocations: 12 kB / 478 MB, free: 2.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002672/0.1352, allocations: 255.2 kB / 478.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1352, allocations: 0 / 478.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004399/0.1356, allocations: 91.84 kB / 478.3 MB, free: 1.828 MB / 350.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.00205/0.1377, allocations: 1.349 MB / 479.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009477/0.1386, allocations: 455.6 kB / 480.1 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1387, allocations: 0 / 480.1 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004572/0.1391, allocations: 187.5 kB / 480.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004642/0.1396, allocations: 89.16 kB / 480.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00532/0.1449, allocations: 3.747 MB / 484.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.1453, allocations: 0.8073 MB / 485 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002628/0.1456, allocations: 91.19 kB / 485 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.1458, allocations: 127.3 kB / 485.2 MB, free: 10.86 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1458, allocations: 0 / 485.2 MB, free: 10.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03084/0.1766, allocations: 8.439 MB / 493.6 MB, free: 2.547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.759, allocations: 368 / 493.6 MB, free: 2.547 MB / 366.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)