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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.001159/0.001159, allocations: 94.97 kB / 16.3 MB, free: 5.996 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.00131/0.00131, allocations: 185.1 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.4 MB / 223.3 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3279/0.3279, allocations: 38.06 MB / 309.7 MB, free: 8.824 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005086/0.0005087, allocations: 22.19 kB / 376.6 MB, free: 15.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1126, allocations: 56.34 MB / 432.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.004849/0.1175, allocations: 4.15 MB / 437.1 MB, free: 2.465 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003126/0.1206, allocations: 2.387 MB / 439.5 MB, free: 68 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.1209, allocations: 19.88 kB / 439.5 MB, free: 48 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003454/0.1213, allocations: 83.52 kB / 439.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005833/0.1219, allocations: 267.1 kB / 439.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006872/0.1226, allocations: 279.2 kB / 440.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003805/0.123, allocations: 327.4 kB / 440.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004714/0.1234, allocations: 305.8 kB / 440.7 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00036/0.1238, allocations: 195.3 kB / 440.9 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.124, allocations: 163.4 kB / 441.1 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.825e-05/0.1241, allocations: 20 kB / 441.1 MB, free: 14.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005087/0.1246, allocations: 259.5 kB / 441.3 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.1247, allocations: 103.7 kB / 441.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.268e-05/0.1248, allocations: 85.52 kB / 441.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000547/0.1254, allocations: 0.5104 MB / 442 MB, free: 13.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.1254, allocations: 0 / 442 MB, free: 13.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1254, allocations: 0 / 442 MB, free: 13.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1254, allocations: 0 / 442 MB, free: 13.46 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.001073/0.1265, allocations: 0.7123 MB / 442.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.1265, allocations: 8.031 kB / 442.8 MB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.1266, allocations: 58.55 kB / 442.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009809/0.1276, allocations: 127.3 kB / 442.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000558/0.1282, allocations: 390.7 kB / 443.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.1282, allocations: 24.55 kB / 443.3 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.299e-05/0.1283, allocations: 24 kB / 443.4 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007617/0.1291, allocations: 461.2 kB / 443.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.1291, allocations: 0 / 443.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/0.1291, allocations: 19.98 kB / 443.8 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.706e-05/0.1292, allocations: 24.36 kB / 443.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009182/0.1301, allocations: 0.4974 MB / 444.4 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.132, allocations: 1.787 MB / 446.1 MB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009608/0.133, allocations: 413.1 kB / 446.5 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.133, allocations: 4 kB / 446.5 MB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005328/0.1336, allocations: 285.6 kB / 446.8 MB, free: 8.367 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.744e-06/0.1336, allocations: 4 kB / 446.8 MB, free: 8.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.0013/0.1349, allocations: 0.5363 MB / 447.4 MB, free: 7.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.135, allocations: 251.5 kB / 447.6 MB, free: 7.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003758/0.1354, allocations: 353.5 kB / 448 MB, free: 7.164 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/0.1354, allocations: 41.7 kB / 448 MB, free: 7.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.1356, allocations: 204.2 kB / 448.2 MB, free: 6.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.649e-05/0.1357, allocations: 102.7 kB / 448.3 MB, free: 6.812 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.925e-05/0.1357, allocations: 8 kB / 448.3 MB, free: 6.805 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1358, allocations: 346.8 kB / 448.6 MB, free: 6.457 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.1362, allocations: 156.3 kB / 448.8 MB, free: 6.301 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000422/0.1366, allocations: 289.5 kB / 449.1 MB, free: 5.957 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003955/0.137, allocations: 221.5 kB / 449.3 MB, free: 5.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1371, allocations: 4 kB / 449.3 MB, free: 5.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000968/0.138, allocations: 0.5336 MB / 449.8 MB, free: 5.184 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.1381, allocations: 42.09 kB / 449.9 MB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1381, allocations: 8 kB / 449.9 MB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.1381, allocations: 8 kB / 449.9 MB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.1385, allocations: 95.83 kB / 450 MB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.81e-05/0.1385, allocations: 15.94 kB / 450 MB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.1388, allocations: 67.5 kB / 450.1 MB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.1389, allocations: 16 kB / 450.1 MB, free: 4.93 MB / 382.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 ($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): 43 * 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.0002045/0.1391, allocations: 193.4 kB / 450.3 MB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.598e-05/0.1391, allocations: 31.62 kB / 450.3 MB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.628e-05/0.1392, allocations: 55.25 kB / 450.4 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1393, allocations: 8 kB / 450.4 MB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1393, allocations: 0 / 450.4 MB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.1393, allocations: 7.953 kB / 450.4 MB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007769/0.1401, allocations: 0.8507 MB / 451.2 MB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1401, allocations: 0 / 451.2 MB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.1403, allocations: 64.08 kB / 451.3 MB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.1404, allocations: 11.94 kB / 451.3 MB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.1404, allocations: 15.94 kB / 451.3 MB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.1404, allocations: 4 kB / 451.3 MB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1404, allocations: 0 / 451.3 MB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008686/0.1413, allocations: 0.5428 MB / 451.9 MB, free: 3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.671e-05/0.1414, allocations: 124.6 kB / 452 MB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.173e-05/0.1414, allocations: 15.95 kB / 452 MB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.1417, allocations: 31.91 kB / 452 MB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.313e-05/0.1418, allocations: 35.95 kB / 452.1 MB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.1418, allocations: 16 kB / 452.1 MB, free: 2.762 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.142, allocations: 255.2 kB / 452.3 MB, free: 2.512 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1421, allocations: 0 / 452.3 MB, free: 2.512 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004036/0.1425, allocations: 91.84 kB / 452.4 MB, free: 2.422 MB / 382.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 (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.002164/0.1446, allocations: 1.853 MB / 454.3 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008818/0.1455, allocations: 435.8 kB / 454.7 MB, free: 56 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1455, allocations: 0 / 454.7 MB, free: 56 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.176/0.3215, allocations: 196.6 kB / 454.9 MB, free: 51.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000474/0.322, allocations: 62.91 kB / 454.9 MB, free: 51.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00372/0.3258, allocations: 5.027 MB / 460 MB, free: 47.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.326, allocations: 0.8143 MB / 460.8 MB, free: 47.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002332/0.3262, allocations: 90.22 kB / 460.9 MB, free: 47.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001928/0.3264, allocations: 129.7 kB / 461 MB, free: 47.04 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3264, allocations: 0 / 461 MB, free: 47.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.3452, allocations: 7.744 MB / 468.7 MB, free: 46.49 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.3454, allocations: 223.3 kB / 469 MB, free: 46.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.927/2.272, allocations: 3.234 kB / 469 MB, free: 46.25 MB / 382.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/linux/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) Environment - environmentSimulation: