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.00138/0.001381, allocations: 113.6 kB / 16.62 MB, free: 6.812 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.002368/0.002368, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.316/1.316, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1747/0.1747, allocations: 38.02 MB / 329.4 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 58.28 kB / 398.4 MB, free: 34.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09511/0.09644, allocations: 58.06 MB / 456.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.005877/0.1024, allocations: 4.881 MB / 461.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003636/0.106, allocations: 2.68 MB / 464 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003572/0.1064, allocations: 23.88 kB / 464 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.1075, allocations: 325.1 kB / 464.3 MB, free: 368 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008254/0.1083, allocations: 307 kB / 464.6 MB, free: 60 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009816/0.1093, allocations: 355.1 kB / 465 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007534/0.1101, allocations: 0.6234 MB / 465.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000485/0.1106, allocations: 246.1 kB / 465.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005342/0.1111, allocations: 263 kB / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003863/0.1115, allocations: 263 kB / 466.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.455e-05/0.1116, allocations: 40 kB / 466.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008202/0.1124, allocations: 0.5378 MB / 466.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.1126, allocations: 143.6 kB / 467.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002504/0.1129, allocations: 195 kB / 467.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.114, allocations: 0.7283 MB / 468 MB, free: 12.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.114, allocations: 0 / 468 MB, free: 12.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.114, allocations: 0 / 468 MB, free: 12.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.1141, allocations: 0 / 468 MB, free: 12.69 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.001375/0.1154, allocations: 0.7746 MB / 468.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1155, allocations: 15.89 kB / 468.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.917e-05/0.1156, allocations: 62.67 kB / 468.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.1167, allocations: 120.3 kB / 469 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005557/0.1172, allocations: 403.7 kB / 469.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.1173, allocations: 16.94 kB / 469.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.485e-05/0.1173, allocations: 27.92 kB / 469.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008204/0.1181, allocations: 453.2 kB / 469.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1182, allocations: 3.938 kB / 469.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.1182, allocations: 12 kB / 469.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.682e-05/0.1183, allocations: 20.42 kB / 469.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009931/0.1193, allocations: 493.2 kB / 470.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002013/0.1213, allocations: 1.779 MB / 472.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009557/0.1222, allocations: 390.7 kB / 472.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003408/0.1226, allocations: 137.6 kB / 472.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.1226, allocations: 11.98 kB / 472.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005379/0.1232, allocations: 281.1 kB / 473 MB, free: 7.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.165e-06/0.1232, allocations: 0 / 473 MB, free: 7.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001278/0.1245, allocations: 0.5156 MB / 473.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.1246, allocations: 239.3 kB / 473.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003816/0.125, allocations: 357.9 kB / 474.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.987e-05/0.1251, allocations: 37.7 kB / 474.1 MB, free: 6.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.1252, allocations: 212.2 kB / 474.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.897e-05/0.1253, allocations: 94.8 kB / 474.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.1254, allocations: 73.59 kB / 474.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1255, allocations: 346.8 kB / 474.8 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003603/0.1259, allocations: 148.2 kB / 474.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/0.1263, allocations: 273.8 kB / 475.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007985/0.1271, allocations: 462.3 kB / 475.7 MB, free: 4.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1272, allocations: 8 kB / 475.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001039/0.1282, allocations: 0.5219 MB / 476.2 MB, free: 3.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.1283, allocations: 39.89 kB / 476.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.1283, allocations: 4 kB / 476.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.1283, allocations: 8 kB / 476.2 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003501/0.1286, allocations: 87.88 kB / 476.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.1287, allocations: 11.92 kB / 476.3 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003288/0.129, allocations: 55.92 kB / 476.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.655e-05/0.1291, allocations: 23.98 kB / 476.4 MB, free: 3.727 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.0002183/0.1293, allocations: 189.7 kB / 476.6 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.31e-05/0.1294, allocations: 39.47 kB / 476.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.1295, allocations: 55.2 kB / 476.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1295, allocations: 4 kB / 476.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.477e-06/0.1295, allocations: 4 kB / 476.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1295, allocations: 0 / 476.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009157/0.1305, allocations: 0.8508 MB / 477.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.1305, allocations: 4 kB / 477.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.1308, allocations: 63.89 kB / 477.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.439e-05/0.1308, allocations: 7.984 kB / 477.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.1308, allocations: 16.11 kB / 477.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.1308, allocations: 4 kB / 477.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1308, allocations: 0 / 477.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009436/0.1318, allocations: 457.5 kB / 478.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.1319, allocations: 120.6 kB / 478.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.132, allocations: 8 kB / 478.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.1322, allocations: 27.97 kB / 478.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.1323, allocations: 47.83 kB / 478.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.1324, allocations: 12 kB / 478.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002887/0.1326, allocations: 255.2 kB / 478.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1327, allocations: 3.938 kB / 478.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004327/0.1331, allocations: 91.94 kB / 478.6 MB, free: 1.359 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.002147/0.1353, allocations: 1.336 MB / 480 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.1363, allocations: 458.8 kB / 480.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1363, allocations: 0 / 480.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004596/0.1368, allocations: 191.7 kB / 480.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.1373, allocations: 85.17 kB / 480.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005587/0.1429, allocations: 3.848 MB / 484.6 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.1433, allocations: 0.8112 MB / 485.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002804/0.1436, allocations: 87.19 kB / 485.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.1438, allocations: 131.4 kB / 485.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1438, allocations: 0 / 485.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04353/0.1874, allocations: 8.244 MB / 493.8 MB, free: 2.207 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.1876, allocations: 259.8 kB / 494.1 MB, free: 1.941 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.213, allocations: 3.125 kB / 494.1 MB, free: 1.941 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe 2>&1)