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.001381/0.001381, allocations: 112.5 kB / 17.06 MB, free: 5.945 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.001527/0.001527, allocations: 200.1 kB / 18.01 MB, free: 5.023 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.337/1.337, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1834/0.1834, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3549, allocations: 58.06 MB / 0.5036 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest): time 0.00561/0.3606, allocations: 4.237 MB / 0.5078 GB, free: 4.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003151/0.3638, allocations: 2.507 MB / 0.5102 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.364, allocations: 11.09 kB / 0.5102 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009613/0.365, allocations: 349.9 kB / 0.5106 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007276/0.3657, allocations: 336.8 kB / 0.5109 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009865/0.3667, allocations: 384.9 kB / 0.5112 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000708/0.3674, allocations: 0.6205 MB / 0.5118 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004204/0.3678, allocations: 236.2 kB / 0.5121 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004958/0.3684, allocations: 277.6 kB / 0.5123 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003589/0.3687, allocations: 248.1 kB / 0.5126 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.125e-05/0.3688, allocations: 39.97 kB / 0.5126 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009919/0.3698, allocations: 0.5382 MB / 0.5131 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.37, allocations: 133.2 kB / 0.5133 GB, free: 1.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001971/0.3702, allocations: 195.6 kB / 0.5134 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.3712, allocations: 0.6935 MB / 0.5141 GB, free: 1.102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.3712, allocations: 3.938 kB / 0.5141 GB, free: 1.098 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3712, allocations: 1.125 kB / 0.5141 GB, free: 1.098 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.3712, allocations: 4 kB / 0.5141 GB, free: 1.094 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.001231/0.3725, allocations: 0.7883 MB / 0.5149 GB, free: 468 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3725, allocations: 13.92 kB / 0.5149 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.891e-05/0.3726, allocations: 61.58 kB / 0.515 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/0.3737, allocations: 117.8 kB / 0.5151 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.3743, allocations: 423.5 kB / 0.5155 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.3743, allocations: 23.77 kB / 0.5155 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.522e-05/0.3744, allocations: 24.38 kB / 0.5155 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009893/0.3754, allocations: 456 kB / 0.516 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.3754, allocations: 1.156 kB / 0.516 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.3755, allocations: 10.66 kB / 0.516 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.376e-05/0.3755, allocations: 23.81 kB / 0.516 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.3766, allocations: 488.5 kB / 0.5165 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002346/0.3789, allocations: 1.778 MB / 0.5182 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.38, allocations: 380.3 kB / 0.5186 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003722/0.3804, allocations: 142.4 kB / 0.5187 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.186e-05/0.3805, allocations: 17.97 kB / 0.5187 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005818/0.3811, allocations: 286.1 kB / 0.519 GB, free: 13.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.924e-06/0.3811, allocations: 1.25 kB / 0.519 GB, free: 13.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=30): time 0.001538/0.3826, allocations: 0.5217 MB / 0.5195 GB, free: 13.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001746/0.3828, allocations: 238.1 kB / 0.5197 GB, free: 13.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004963/0.3833, allocations: 355.9 kB / 0.5201 GB, free: 13.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.481e-05/0.3834, allocations: 45.91 kB / 0.5201 GB, free: 13.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.3835, allocations: 204.3 kB / 0.5203 GB, free: 13.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.454e-05/0.3836, allocations: 110.8 kB / 0.5204 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.3838, allocations: 69.67 kB / 0.5205 GB, free: 12.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3839, allocations: 350.4 kB / 0.5208 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.3843, allocations: 138.8 kB / 0.521 GB, free: 12.53 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004706/0.3848, allocations: 271.4 kB / 0.5212 GB, free: 12.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009061/0.3857, allocations: 462.7 kB / 0.5217 GB, free: 12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3857, allocations: 1.219 kB / 0.5217 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001147/0.3869, allocations: 0.5267 MB / 0.5222 GB, free: 11.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.3869, allocations: 42.45 kB / 0.5222 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.3869, allocations: 4.938 kB / 0.5222 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.387, allocations: 6.312 kB / 0.5222 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.3873, allocations: 90.33 kB / 0.5223 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.3873, allocations: 11.84 kB / 0.5223 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003132/0.3877, allocations: 51.55 kB / 0.5224 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.89e-05/0.3877, allocations: 19.98 kB / 0.5224 GB, free: 11.69 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.0002361/0.3879, allocations: 201.5 kB / 0.5226 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.321e-05/0.388, allocations: 41.97 kB / 0.5226 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.3881, allocations: 49.52 kB / 0.5227 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3881, allocations: 4.125 kB / 0.5227 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.3882, allocations: 2.75 kB / 0.5227 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.3882, allocations: 3.156 kB / 0.5227 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008944/0.3891, allocations: 0.8524 MB / 0.5235 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.3891, allocations: 1.375 kB / 0.5235 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.3894, allocations: 65.03 kB / 0.5236 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.3894, allocations: 2.75 kB / 0.5236 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.3894, allocations: 11.38 kB / 0.5236 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.3894, allocations: 3.406 kB / 0.5236 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.3894, allocations: 5.312 kB / 0.5236 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009404/0.3904, allocations: 468.6 kB / 0.524 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.926e-05/0.3905, allocations: 116.4 kB / 0.5241 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.696e-05/0.3906, allocations: 10.88 kB / 0.5242 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.3908, allocations: 24.28 kB / 0.5242 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.967e-05/0.3909, allocations: 40.78 kB / 0.5242 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.391, allocations: 16.25 kB / 0.5242 GB, free: 10.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00029/0.3913, allocations: 255.5 kB / 0.5245 GB, free: 10.24 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3913, allocations: 0 / 0.5245 GB, free: 10.24 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004511/0.3917, allocations: 95.72 kB / 0.5246 GB, free: 10.21 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.002176/0.3939, allocations: 1.336 MB / 0.5259 GB, free: 9.328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009843/0.3949, allocations: 430.6 kB / 0.5263 GB, free: 9.141 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3949, allocations: 0 / 0.5263 GB, free: 9.141 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004697/0.3954, allocations: 190.6 kB / 0.5265 GB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000497/0.3959, allocations: 90.61 kB / 0.5266 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006301/0.4022, allocations: 3.727 MB / 0.5302 GB, free: 6.648 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.4026, allocations: 0.8091 MB / 0.531 GB, free: 5.938 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000281/0.4029, allocations: 89.62 kB / 0.5311 GB, free: 5.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/0.4031, allocations: 123 kB / 0.5312 GB, free: 5.848 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4031, allocations: 0 / 0.5312 GB, free: 5.848 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02613/0.4293, allocations: 8.583 MB / 0.5396 GB, free: 1.938 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/8.418, allocations: 1.734 kB / 0.5396 GB, free: 1.938 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