Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",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.001513/0.001513, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001679/0.001679, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.449/1.449, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1933/0.1933, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 63.91 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3535, allocations: 58.05 MB / 0.5036 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004424/0.358, allocations: 3.693 MB / 0.5072 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.3605, allocations: 2.039 MB / 0.5092 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002271/0.3608, allocations: 9.625 kB / 0.5092 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009608/0.3618, allocations: 246.8 kB / 0.5095 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007488/0.3625, allocations: 282 kB / 0.5097 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008256/0.3633, allocations: 286.6 kB / 0.51 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007098/0.3641, allocations: 0.5276 MB / 0.5105 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004243/0.3645, allocations: 227.7 kB / 0.5107 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004296/0.3649, allocations: 227.7 kB / 0.5109 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002737/0.3652, allocations: 216.9 kB / 0.5112 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.924e-05/0.3653, allocations: 38.34 kB / 0.5112 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006158/0.3659, allocations: 397.7 kB / 0.5116 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.3661, allocations: 128.9 kB / 0.5117 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.3662, allocations: 183.3 kB / 0.5119 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009727/0.3672, allocations: 0.6418 MB / 0.5125 GB, free: 1.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.3672, allocations: 0.5156 kB / 0.5125 GB, free: 1.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.918e-06/0.3672, allocations: 1.125 kB / 0.5125 GB, free: 1.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.3673, allocations: 0 / 0.5125 GB, free: 1.848 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001493/0.3688, allocations: 0.7574 MB / 0.5132 GB, free: 1.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/0.3688, allocations: 13.84 kB / 0.5132 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.89e-05/0.3689, allocations: 58.11 kB / 0.5133 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/0.37, allocations: 113.1 kB / 0.5134 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006342/0.3706, allocations: 426 kB / 0.5138 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.3706, allocations: 18.64 kB / 0.5138 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.3707, allocations: 28.06 kB / 0.5139 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008404/0.3716, allocations: 447.3 kB / 0.5143 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.3716, allocations: 4.625 kB / 0.5143 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.3716, allocations: 6.766 kB / 0.5143 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.869e-05/0.3717, allocations: 21.45 kB / 0.5143 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.3727, allocations: 0.4965 MB / 0.5148 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002335/0.375, allocations: 1.675 MB / 0.5164 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.3761, allocations: 363.1 kB / 0.5168 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.3765, allocations: 143.3 kB / 0.5169 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.3765, allocations: 11.06 kB / 0.5169 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005882/0.3771, allocations: 287.7 kB / 0.5172 GB, free: 14.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.214e-06/0.3771, allocations: 0 / 0.5172 GB, free: 14.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001745/0.3789, allocations: 0.5311 MB / 0.5177 GB, free: 14.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002031/0.3791, allocations: 293.8 kB / 0.518 GB, free: 14.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005627/0.3797, allocations: 333.2 kB / 0.5183 GB, free: 14.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.192e-05/0.3798, allocations: 34.55 kB / 0.5184 GB, free: 14.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.38, allocations: 199.8 kB / 0.5185 GB, free: 13.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.3801, allocations: 112 kB / 0.5187 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.3803, allocations: 68.97 kB / 0.5187 GB, free: 13.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.3805, allocations: 344 kB / 0.519 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000422/0.3809, allocations: 142.5 kB / 0.5192 GB, free: 13.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.3814, allocations: 280.8 kB / 0.5195 GB, free: 13.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009001/0.3824, allocations: 456 kB / 0.5199 GB, free: 12.9 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3824, allocations: 1.156 kB / 0.5199 GB, free: 12.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001131/0.3835, allocations: 0.5179 MB / 0.5204 GB, free: 12.67 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/0.3836, allocations: 34.7 kB / 0.5204 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.3836, allocations: 4.469 kB / 0.5204 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.3836, allocations: 5.969 kB / 0.5204 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.384, allocations: 90.27 kB / 0.5205 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.961e-05/0.384, allocations: 15.42 kB / 0.5205 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.3843, allocations: 47.05 kB / 0.5206 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.26e-05/0.3844, allocations: 19.78 kB / 0.5206 GB, free: 12.59 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 (43): * Single equations (assignments): 42 * 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.000239/0.3846, allocations: 198.6 kB / 0.5208 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.855e-05/0.3847, allocations: 45.72 kB / 0.5208 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.3848, allocations: 45.14 kB / 0.5209 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.3849, allocations: 4.375 kB / 0.5209 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.3849, allocations: 11 kB / 0.5209 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.3849, allocations: 8.328 kB / 0.5209 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.3859, allocations: 1.036 MB / 0.5219 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.386, allocations: 5.453 kB / 0.5219 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.3862, allocations: 55.62 kB / 0.522 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.3862, allocations: 4 kB / 0.522 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.3863, allocations: 13 kB / 0.522 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.3863, allocations: 4.219 kB / 0.522 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/0.3863, allocations: 5.094 kB / 0.522 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009666/0.3873, allocations: 474 kB / 0.5224 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.3874, allocations: 113.7 kB / 0.5226 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.693e-05/0.3874, allocations: 15.91 kB / 0.5226 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.3877, allocations: 24.48 kB / 0.5226 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.3878, allocations: 41.8 kB / 0.5226 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.3878, allocations: 16.97 kB / 0.5227 GB, free: 11.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002812/0.3881, allocations: 237.8 kB / 0.5229 GB, free: 10.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3881, allocations: 0 / 0.5229 GB, free: 10.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004303/0.3886, allocations: 94.58 kB / 0.523 GB, free: 10.92 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (31): * Single equations (assignments): 26 * 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.002216/0.3908, allocations: 1.348 MB / 0.5243 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009305/0.3917, allocations: 421.8 kB / 0.5247 GB, free: 9.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3917, allocations: 0 / 0.5247 GB, free: 9.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000504/0.3922, allocations: 203.8 kB / 0.5249 GB, free: 9.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.3927, allocations: 84.53 kB / 0.525 GB, free: 9.734 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006064/0.3988, allocations: 3.681 MB / 0.5286 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005889/0.3995, allocations: 0.8012 MB / 0.5293 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003464/0.3998, allocations: 91.75 kB / 0.5294 GB, free: 6.594 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002523/0.4001, allocations: 120.7 kB / 0.5295 GB, free: 6.516 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4001, allocations: 0 / 0.5295 GB, free: 6.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.4308, allocations: 8.374 MB / 0.5377 GB, free: 3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.219/8.65, allocations: 12.33 kB / 0.5377 GB, free: 2.992 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_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_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches