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.001738/0.001738, allocations: 112.8 kB / 17.06 MB, free: 5.973 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.001887/0.001887, allocations: 200 kB / 18.01 MB, free: 5.047 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.395/1.395, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1818/0.1818, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 67.91 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3177, allocations: 58.06 MB / 0.5036 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.004799/0.3225, allocations: 4.245 MB / 0.5078 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.3256, allocations: 2.503 MB / 0.5102 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002129/0.3258, allocations: 10.66 kB / 0.5102 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.3268, allocations: 346.6 kB / 0.5106 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006982/0.3276, allocations: 332.3 kB / 0.5109 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008561/0.3284, allocations: 386.4 kB / 0.5112 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000603/0.329, allocations: 0.6213 MB / 0.5118 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003589/0.3294, allocations: 238.9 kB / 0.5121 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004152/0.3298, allocations: 261 kB / 0.5123 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003229/0.3302, allocations: 248.7 kB / 0.5126 GB, free: 1.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.277e-05/0.3302, allocations: 39.94 kB / 0.5126 GB, free: 1.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007764/0.331, allocations: 0.538 MB / 0.5131 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.3312, allocations: 133.2 kB / 0.5133 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.3313, allocations: 199.5 kB / 0.5134 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009031/0.3323, allocations: 0.6964 MB / 0.5141 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3323, allocations: 0 / 0.5141 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3323, allocations: 0 / 0.5141 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.3323, allocations: 1.969 kB / 0.5141 GB, free: 0.8164 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.001216/0.3335, allocations: 0.791 MB / 0.5149 GB, free: 180 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.3336, allocations: 13.64 kB / 0.5149 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.553e-05/0.3336, allocations: 58.16 kB / 0.515 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001056/0.3347, allocations: 118.5 kB / 0.5151 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006327/0.3353, allocations: 432 kB / 0.5155 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.3354, allocations: 23.31 kB / 0.5155 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.75e-05/0.3354, allocations: 23.22 kB / 0.5155 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009407/0.3364, allocations: 456.6 kB / 0.516 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.3364, allocations: 1.5 kB / 0.516 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.976e-05/0.3364, allocations: 11.12 kB / 0.516 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.846e-05/0.3365, allocations: 23.08 kB / 0.516 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.3376, allocations: 485.8 kB / 0.5165 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002449/0.3401, allocations: 1.782 MB / 0.5182 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.3413, allocations: 385.7 kB / 0.5186 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003779/0.3417, allocations: 139 kB / 0.5187 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.925e-05/0.3418, allocations: 6.672 kB / 0.5187 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005903/0.3424, allocations: 291.3 kB / 0.519 GB, free: 13.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.185e-06/0.3424, allocations: 0 / 0.519 GB, free: 13.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=30): time 0.001434/0.3438, allocations: 0.5169 MB / 0.5195 GB, free: 13.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001638/0.344, allocations: 237.8 kB / 0.5197 GB, free: 13.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004757/0.3445, allocations: 365 kB / 0.5201 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.3445, allocations: 39.28 kB / 0.5201 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/0.3447, allocations: 212.6 kB / 0.5203 GB, free: 12.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.629e-05/0.3448, allocations: 100.4 kB / 0.5204 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.345, allocations: 69.58 kB / 0.5205 GB, free: 12.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.3452, allocations: 348.6 kB / 0.5208 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000396/0.3456, allocations: 137.1 kB / 0.5209 GB, free: 12.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005073/0.3461, allocations: 278.9 kB / 0.5212 GB, free: 12.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009426/0.347, allocations: 458.1 kB / 0.5216 GB, free: 11.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3471, allocations: 5.406 kB / 0.5216 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001152/0.3482, allocations: 0.5264 MB / 0.5222 GB, free: 11.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.3483, allocations: 35 kB / 0.5222 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.3483, allocations: 4.109 kB / 0.5222 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.3483, allocations: 6.281 kB / 0.5222 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000356/0.3487, allocations: 91.77 kB / 0.5223 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.3487, allocations: 10.77 kB / 0.5223 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/0.349, allocations: 63.52 kB / 0.5224 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.3491, allocations: 16.45 kB / 0.5224 GB, free: 11.41 MB / 398.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.0002403/0.3493, allocations: 192.9 kB / 0.5226 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.771e-05/0.3494, allocations: 46.3 kB / 0.5226 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.3495, allocations: 46.16 kB / 0.5226 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3495, allocations: 4.75 kB / 0.5227 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.3495, allocations: 1.125 kB / 0.5227 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3495, allocations: 4.453 kB / 0.5227 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009636/0.3505, allocations: 0.8552 MB / 0.5235 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.3505, allocations: 1.984 kB / 0.5235 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.3508, allocations: 64.8 kB / 0.5236 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.431e-06/0.3508, allocations: 3.266 kB / 0.5236 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.3509, allocations: 19.27 kB / 0.5236 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3509, allocations: 7.25 kB / 0.5236 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.3509, allocations: 1.375 kB / 0.5236 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.3519, allocations: 464 kB / 0.524 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.352, allocations: 113.7 kB / 0.5241 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.3521, allocations: 14.3 kB / 0.5242 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.3523, allocations: 24.44 kB / 0.5242 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.3525, allocations: 44.75 kB / 0.5242 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.062e-05/0.3525, allocations: 11.59 kB / 0.5242 GB, free: 10.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003224/0.3528, allocations: 254.9 kB / 0.5245 GB, free: 9.957 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3528, allocations: 0 / 0.5245 GB, free: 9.957 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004838/0.3533, allocations: 92.66 kB / 0.5246 GB, free: 9.938 MB / 398.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.003006/0.3563, allocations: 1.34 MB / 0.5259 GB, free: 9.047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.3574, allocations: 428.7 kB / 0.5263 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3574, allocations: 5.344 kB / 0.5263 GB, free: 8.855 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004739/0.3579, allocations: 194.9 kB / 0.5265 GB, free: 8.789 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.3584, allocations: 78.27 kB / 0.5265 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006114/0.3645, allocations: 3.731 MB / 0.5302 GB, free: 6.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.3651, allocations: 0.8129 MB / 0.531 GB, free: 5.652 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002681/0.3653, allocations: 82.33 kB / 0.5311 GB, free: 5.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002117/0.3656, allocations: 126 kB / 0.5312 GB, free: 5.562 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3656, allocations: 0 / 0.5312 GB, free: 5.562 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.3992, allocations: 8.578 MB / 0.5396 GB, free: 1.699 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.374/8.773, allocations: 5.719 kB / 0.5396 GB, free: 1.695 MB / 398.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