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.0009707/0.0009706, allocations: 114 kB / 17.06 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.0009591/0.000959, allocations: 200 kB / 18 MB, free: 5.078 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.299/1.299, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1733/0.1733, allocations: 37.97 MB / 309.2 MB, free: 5.953 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.001303/0.001303, allocations: 63.89 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09716/0.09848, allocations: 55.25 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.005572/0.1041, allocations: 4.234 MB / 490.8 MB, free: 4.586 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003302/0.1074, allocations: 2.44 MB / 493.3 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.1077, allocations: 11.94 kB / 493.3 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001076/0.1088, allocations: 342.5 kB / 493.6 MB, free: 1.785 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0008407/0.1097, allocations: 330.5 kB / 493.9 MB, free: 1.461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008058/0.1105, allocations: 370.9 kB / 494.3 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006841/0.1112, allocations: 0.6118 MB / 494.9 MB, free: 496 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003706/0.1116, allocations: 230.1 kB / 495.1 MB, free: 264 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004864/0.1121, allocations: 275 kB / 495.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.1125, allocations: 251 kB / 495.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.883e-05/0.1126, allocations: 36 kB / 495.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008643/0.1134, allocations: 0.5455 MB / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001689/0.1136, allocations: 127.7 kB / 496.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001951/0.1138, allocations: 199 kB / 496.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008928/0.1147, allocations: 0.6933 MB / 497.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1147, allocations: 0 / 497.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1148, allocations: 4 kB / 497.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1148, allocations: 0 / 497.3 MB, free: 14.14 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.001388/0.1162, allocations: 0.7629 MB / 498 MB, free: 13.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.1162, allocations: 15.89 kB / 498 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.147e-05/0.1163, allocations: 62.72 kB / 498.1 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001106/0.1174, allocations: 116.3 kB / 498.2 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006908/0.1181, allocations: 427.6 kB / 498.6 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.1182, allocations: 16.94 kB / 498.6 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.593e-05/0.1182, allocations: 27.94 kB / 498.7 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008459/0.1191, allocations: 457.2 kB / 499.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1191, allocations: 3.938 kB / 499.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.1191, allocations: 8 kB / 499.1 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.632e-05/0.1192, allocations: 24.42 kB / 499.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009634/0.1201, allocations: 481.3 kB / 499.6 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.1222, allocations: 1.779 MB / 0.4897 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009791/0.1232, allocations: 393 kB / 0.49 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003467/0.1236, allocations: 145.6 kB / 0.4902 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.1236, allocations: 4 kB / 0.4902 GB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005348/0.1242, allocations: 281.1 kB / 0.4904 GB, free: 8.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.094e-06/0.1242, allocations: 0 / 0.4904 GB, free: 8.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.001294/0.1255, allocations: 0.5128 MB / 0.4909 GB, free: 8.367 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.1256, allocations: 243.3 kB / 0.4912 GB, free: 8.074 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/0.126, allocations: 361.8 kB / 0.4915 GB, free: 7.711 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.1261, allocations: 41.7 kB / 0.4916 GB, free: 7.664 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.1262, allocations: 196.4 kB / 0.4917 GB, free: 7.469 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.869e-05/0.1263, allocations: 102.6 kB / 0.4918 GB, free: 7.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.1264, allocations: 69.61 kB / 0.4919 GB, free: 7.293 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1265, allocations: 350.8 kB / 0.4922 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003705/0.1269, allocations: 140.3 kB / 0.4924 GB, free: 6.801 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004427/0.1274, allocations: 289.5 kB / 0.4927 GB, free: 6.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008191/0.1282, allocations: 465.5 kB / 0.4931 GB, free: 5.938 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1282, allocations: 0 / 0.4931 GB, free: 5.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001072/0.1293, allocations: 0.526 MB / 0.4936 GB, free: 5.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.975e-05/0.1293, allocations: 33.64 kB / 0.4936 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.1294, allocations: 11.98 kB / 0.4937 GB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.1294, allocations: 7.938 kB / 0.4937 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003505/0.1297, allocations: 95.88 kB / 0.4938 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.899e-05/0.1298, allocations: 11.94 kB / 0.4938 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.1301, allocations: 51.78 kB / 0.4938 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.1301, allocations: 24 kB / 0.4938 GB, free: 5.16 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 ($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.0002121/0.1303, allocations: 185.7 kB / 0.494 GB, free: 4.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.815e-05/0.1304, allocations: 51.44 kB / 0.4941 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.558e-05/0.1305, allocations: 43.28 kB / 0.4941 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.1305, allocations: 4 kB / 0.4941 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1306, allocations: 4 kB / 0.4941 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1306, allocations: 0 / 0.4941 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008127/0.1314, allocations: 0.8508 MB / 0.4949 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.1314, allocations: 4 kB / 0.4949 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.1317, allocations: 63.89 kB / 0.495 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1317, allocations: 4 kB / 0.495 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.1317, allocations: 7.984 kB / 0.495 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.1317, allocations: 8.125 kB / 0.495 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1317, allocations: 0 / 0.495 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009195/0.1326, allocations: 461.5 kB / 0.4955 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.209e-05/0.1327, allocations: 108.7 kB / 0.4956 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.391e-05/0.1328, allocations: 12 kB / 0.4956 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.133, allocations: 23.97 kB / 0.4956 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.757e-05/0.1331, allocations: 39.89 kB / 0.4956 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.1332, allocations: 15.94 kB / 0.4957 GB, free: 3.156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002489/0.1334, allocations: 259.2 kB / 0.4959 GB, free: 2.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1334, allocations: 3.938 kB / 0.4959 GB, free: 2.906 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004132/0.1338, allocations: 87.91 kB / 0.496 GB, free: 2.82 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 (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.002009/0.1359, allocations: 1.334 MB / 0.4973 GB, free: 1.434 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008919/0.1368, allocations: 411.2 kB / 0.4977 GB, free: 1.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1368, allocations: 0 / 0.4977 GB, free: 1.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004345/0.1372, allocations: 196.7 kB / 0.4979 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004456/0.1377, allocations: 97.22 kB / 0.498 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005149/0.1428, allocations: 3.727 MB / 0.5016 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000437/0.1433, allocations: 0.8111 MB / 0.5024 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002529/0.1436, allocations: 91.19 kB / 0.5025 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002282/0.1438, allocations: 123.4 kB / 0.5026 GB, free: 11.73 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1438, allocations: 0 / 0.5026 GB, free: 11.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.1685, allocations: 8.718 MB / 0.5111 GB, free: 2.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.801, allocations: 3.781 kB / 0.5111 GB, free: 2.906 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 & /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)