Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,fileNamePrefix="PowerSystems_latest_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.001525/0.001525, allocations: 104.9 kB / 16.92 MB, free: 5.785 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.001784/0.001784, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.599/1.599, 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-master/package.mo): time 0.1749/0.1749, allocations: 38.03 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001405, allocations: 66.2 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08956/0.09098, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.005942/0.09696, allocations: 4.234 MB / 461.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00396/0.1009, allocations: 2.52 MB / 463.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003914/0.1014, allocations: 11.94 kB / 463.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.1026, allocations: 334.5 kB / 464.1 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008558/0.1035, allocations: 342.5 kB / 464.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009177/0.1044, allocations: 385.9 kB / 464.8 MB, free: 136 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008653/0.1053, allocations: 0.6196 MB / 465.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004829/0.1058, allocations: 234.1 kB / 465.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005779/0.1064, allocations: 266.9 kB / 465.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.1067, allocations: 247.1 kB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.291e-05/0.1068, allocations: 40 kB / 466.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009168/0.1077, allocations: 0.5339 MB / 466.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.1079, allocations: 147.6 kB / 466.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.1081, allocations: 195 kB / 467 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008176/0.1089, allocations: 0.6855 MB / 467.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1089, allocations: 0 / 467.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1089, allocations: 0 / 467.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1089, allocations: 0 / 467.7 MB, free: 13.18 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.001278/0.1102, allocations: 0.7694 MB / 468.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1103, allocations: 15.89 kB / 468.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.501e-05/0.1103, allocations: 58.72 kB / 468.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.1114, allocations: 112.3 kB / 468.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005398/0.112, allocations: 411.6 kB / 469.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.112, allocations: 24.92 kB / 469.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.026e-05/0.112, allocations: 27.92 kB / 469.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000822/0.1129, allocations: 445.2 kB / 469.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.1129, allocations: 4 kB / 469.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/0.1129, allocations: 11.98 kB / 469.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.464e-05/0.113, allocations: 24.42 kB / 469.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009799/0.114, allocations: 489.2 kB / 470.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.1159, allocations: 1.79 MB / 471.9 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009962/0.1169, allocations: 381.1 kB / 472.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003656/0.1173, allocations: 145.6 kB / 472.4 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.1173, allocations: 4 kB / 472.4 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005349/0.1179, allocations: 281.7 kB / 472.7 MB, free: 7.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.953e-06/0.1179, allocations: 0 / 472.7 MB, free: 7.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001348/0.1192, allocations: 0.5154 MB / 473.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.1194, allocations: 247.7 kB / 473.4 MB, free: 7.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003742/0.1198, allocations: 353.6 kB / 473.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.731e-05/0.1198, allocations: 41.69 kB / 473.8 MB, free: 6.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.1199, allocations: 204.3 kB / 474 MB, free: 6.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.712e-05/0.12, allocations: 94.72 kB / 474.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.1202, allocations: 73.59 kB / 474.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1203, allocations: 350.8 kB / 474.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003837/0.1207, allocations: 144.2 kB / 474.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004508/0.1211, allocations: 281.8 kB / 474.9 MB, free: 5.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008402/0.122, allocations: 466.3 kB / 475.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.122, allocations: 0 / 475.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001067/0.1231, allocations: 0.5142 MB / 475.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/0.1231, allocations: 37.69 kB / 475.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1231, allocations: 4 kB / 475.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1232, allocations: 4 kB / 475.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003473/0.1235, allocations: 91.83 kB / 476 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.1235, allocations: 12.36 kB / 476 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.1238, allocations: 63.5 kB / 476.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.122e-05/0.1239, allocations: 16 kB / 476.1 MB, free: 4.238 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.0001966/0.1241, allocations: 193.6 kB / 476.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.989e-05/0.1241, allocations: 43.47 kB / 476.4 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.1242, allocations: 55.25 kB / 476.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1243, allocations: 4 kB / 476.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1243, allocations: 0 / 476.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.463e-06/0.1243, allocations: 4 kB / 476.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007623/0.125, allocations: 0.8468 MB / 477.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1251, allocations: 0 / 477.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.1253, allocations: 67.89 kB / 477.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.1254, allocations: 4.125 kB / 477.3 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.1254, allocations: 15.98 kB / 477.3 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1254, allocations: 3.938 kB / 477.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.1254, allocations: 4 kB / 477.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009226/0.1263, allocations: 461.5 kB / 477.8 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-05/0.1264, allocations: 116.6 kB / 477.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.358e-05/0.1265, allocations: 12 kB / 477.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.1267, allocations: 27.97 kB / 478 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.1269, allocations: 39.89 kB / 478 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.1269, allocations: 8 kB / 478 MB, free: 2.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002557/0.1271, allocations: 259.2 kB / 478.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1272, allocations: 0 / 478.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000401/0.1276, allocations: 91.84 kB / 478.3 MB, free: 1.871 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.002065/0.1296, allocations: 1.35 MB / 479.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009551/0.1306, allocations: 451.3 kB / 480.1 MB, free: 200 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1306, allocations: 5.062 kB / 480.1 MB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004709/0.1311, allocations: 196.1 kB / 480.3 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004686/0.1316, allocations: 72.91 kB / 480.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/0.1368, allocations: 3.747 MB / 484.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.1371, allocations: 0.8112 MB / 485 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002541/0.1374, allocations: 87.2 kB / 485 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.1376, allocations: 127.3 kB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1376, allocations: 0 / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02856/0.1662, allocations: 8.443 MB / 493.6 MB, free: 2.598 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.674/7.841, allocations: 14.84 kB / 493.6 MB, free: 2.59 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches