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.001346/0.001346, allocations: 105 kB / 17.05 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.001255/0.001255, allocations: 191.1 kB / 18 MB, free: 5.219 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.81/1.81, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1713/0.1713, allocations: 37.98 MB / 309.2 MB, free: 5.969 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.001309/0.001309, allocations: 63.91 kB / 431.4 MB, free: 16.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09513/0.09645, allocations: 55.24 MB / 486.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.005705/0.1022, allocations: 4.25 MB / 490.8 MB, free: 4.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003373/0.1056, allocations: 2.432 MB / 493.3 MB, free: 2.145 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002727/0.1059, allocations: 11.94 kB / 493.3 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.107, allocations: 350.5 kB / 493.6 MB, free: 1.789 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.0008677/0.1079, allocations: 334.5 kB / 494 MB, free: 1.461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008671/0.1088, allocations: 358.9 kB / 494.3 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007035/0.1095, allocations: 0.6118 MB / 494.9 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004163/0.1099, allocations: 230.1 kB / 495.1 MB, free: 276 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005266/0.1105, allocations: 274.9 kB / 495.4 MB, free: 0 / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003826/0.1109, allocations: 247.2 kB / 495.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.133e-05/0.111, allocations: 36 kB / 495.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008425/0.1118, allocations: 0.5494 MB / 496.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.112, allocations: 131.7 kB / 496.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002098/0.1122, allocations: 191 kB / 496.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008997/0.1131, allocations: 0.6895 MB / 497.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1131, allocations: 3.984 kB / 497.3 MB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1131, allocations: 4 kB / 497.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.1131, allocations: 4 kB / 497.3 MB, free: 14.15 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.001432/0.1146, allocations: 0.759 MB / 498 MB, free: 13.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.1146, allocations: 11.89 kB / 498 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.003e-05/0.1147, allocations: 66.7 kB / 498.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/0.1158, allocations: 116.2 kB / 498.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006688/0.1165, allocations: 423.7 kB / 498.6 MB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.1165, allocations: 20.92 kB / 498.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.521e-05/0.1166, allocations: 23.94 kB / 498.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008629/0.1174, allocations: 457.2 kB / 499.1 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.1175, allocations: 3.938 kB / 499.1 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/0.1175, allocations: 12 kB / 499.1 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.036e-05/0.1176, allocations: 24.42 kB / 499.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009657/0.1186, allocations: 485.3 kB / 499.6 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.1208, allocations: 1.779 MB / 0.4897 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.1218, allocations: 381.1 kB / 0.49 GB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003472/0.1222, allocations: 149.6 kB / 0.4902 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.116e-05/0.1223, allocations: 7.984 kB / 0.4902 GB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005188/0.1228, allocations: 285 kB / 0.4904 GB, free: 8.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.043e-06/0.1228, allocations: 0 / 0.4904 GB, free: 8.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.001272/0.1241, allocations: 0.5129 MB / 0.4909 GB, free: 8.379 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.1242, allocations: 239.3 kB / 0.4912 GB, free: 8.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003843/0.1246, allocations: 365.5 kB / 0.4915 GB, free: 7.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.083e-05/0.1246, allocations: 37.7 kB / 0.4916 GB, free: 7.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.1248, allocations: 196.4 kB / 0.4917 GB, free: 7.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.129e-05/0.1249, allocations: 110.8 kB / 0.4918 GB, free: 7.375 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.125, allocations: 73.55 kB / 0.4919 GB, free: 7.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1251, allocations: 350.8 kB / 0.4922 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/0.1255, allocations: 136.3 kB / 0.4924 GB, free: 6.809 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004217/0.126, allocations: 289.5 kB / 0.4927 GB, free: 6.465 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007601/0.1267, allocations: 465.5 kB / 0.4931 GB, free: 5.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1267, allocations: 0 / 0.4931 GB, free: 5.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009915/0.1277, allocations: 0.5222 MB / 0.4936 GB, free: 5.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.1278, allocations: 33.7 kB / 0.4936 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.1278, allocations: 12.03 kB / 0.4937 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.1278, allocations: 4 kB / 0.4937 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003283/0.1282, allocations: 91.88 kB / 0.4937 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.1282, allocations: 11.94 kB / 0.4938 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.1285, allocations: 59.56 kB / 0.4938 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.978e-05/0.1285, allocations: 12 kB / 0.4938 GB, free: 5.184 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.0001943/0.1287, allocations: 201.7 kB / 0.494 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.128e-05/0.1288, allocations: 47.45 kB / 0.4941 GB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.739e-05/0.1289, allocations: 43.28 kB / 0.4941 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1289, allocations: 4 kB / 0.4941 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1289, allocations: 4 kB / 0.4941 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.1289, allocations: 0 / 0.4941 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007302/0.1297, allocations: 0.8468 MB / 0.4949 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1297, allocations: 4 kB / 0.4949 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.1299, allocations: 63.89 kB / 0.495 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.1299, allocations: 4 kB / 0.495 GB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.61e-05/0.13, allocations: 11.98 kB / 0.495 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.13, allocations: 4 kB / 0.495 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.13, allocations: 0 / 0.495 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008278/0.1308, allocations: 461.6 kB / 0.4955 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.692e-05/0.1309, allocations: 112.7 kB / 0.4956 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.244e-05/0.131, allocations: 8 kB / 0.4956 GB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/0.1312, allocations: 23.97 kB / 0.4956 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.072e-05/0.1313, allocations: 39.89 kB / 0.4956 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.1313, allocations: 11.94 kB / 0.4956 GB, free: 3.176 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.1316, allocations: 267.1 kB / 0.4959 GB, free: 2.922 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1316, allocations: 0 / 0.4959 GB, free: 2.922 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004143/0.132, allocations: 91.91 kB / 0.496 GB, free: 2.832 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.002006/0.134, allocations: 1.337 MB / 0.4973 GB, free: 1.441 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008746/0.1349, allocations: 419.7 kB / 0.4977 GB, free: 1.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1349, allocations: 0 / 0.4977 GB, free: 1.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004248/0.1353, allocations: 191.5 kB / 0.4979 GB, free: 0.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004662/0.1358, allocations: 82.03 kB / 0.498 GB, free: 0.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004949/0.1408, allocations: 3.731 MB / 0.5016 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1411, allocations: 0.8112 MB / 0.5024 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.1414, allocations: 91.19 kB / 0.5025 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.1416, allocations: 123.4 kB / 0.5026 GB, free: 11.74 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1416, allocations: 0 / 0.5026 GB, free: 11.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02612/0.1677, allocations: 8.722 MB / 0.5111 GB, free: 2.922 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/7.877, allocations: 7.688 kB / 0.5111 GB, free: 2.914 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)