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.001184/0.001184, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001219/0.001219, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.326/1.326, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2661/0.2661, allocations: 38.04 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.98 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09261, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005464/0.09811, allocations: 3.676 MB / 460.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00298/0.1011, allocations: 2.054 MB / 462.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/0.1014, allocations: 7.938 kB / 462.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009303/0.1023, allocations: 242.9 kB / 463 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007682/0.1031, allocations: 278.8 kB / 463.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006799/0.1038, allocations: 290 kB / 463.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005716/0.1044, allocations: 0.5222 MB / 464 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003687/0.1047, allocations: 219.5 kB / 464.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004361/0.1052, allocations: 223.2 kB / 464.5 MB, free: 456 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003086/0.1055, allocations: 215.2 kB / 464.7 MB, free: 240 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.411e-05/0.1056, allocations: 40 kB / 464.7 MB, free: 200 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000659/0.1063, allocations: 391.2 kB / 465.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.1064, allocations: 127.6 kB / 465.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001933/0.1066, allocations: 195 kB / 465.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007621/0.1074, allocations: 0.6272 MB / 466 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1074, allocations: 0 / 466 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1074, allocations: 0 / 466 MB, free: 14.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.1074, allocations: 0 / 466 MB, free: 14.87 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001268/0.1087, allocations: 0.7393 MB / 466.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.1088, allocations: 19.89 kB / 466.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.081e-05/0.1088, allocations: 62.72 kB / 466.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008884/0.1097, allocations: 108.4 kB / 467 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00053/0.1103, allocations: 403.5 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.191e-05/0.1103, allocations: 20.81 kB / 467.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.327e-05/0.1104, allocations: 23.88 kB / 467.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008179/0.1112, allocations: 450.7 kB / 467.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1112, allocations: 0 / 467.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.1113, allocations: 12 kB / 467.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.125e-05/0.1113, allocations: 16.44 kB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.1123, allocations: 0.4973 MB / 468.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.1143, allocations: 1.686 MB / 470 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009369/0.1153, allocations: 365.1 kB / 470.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/0.1157, allocations: 141.6 kB / 470.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.1157, allocations: 8 kB / 470.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000537/0.1163, allocations: 290.9 kB / 470.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.944e-06/0.1163, allocations: 0 / 470.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001338/0.1176, allocations: 0.5235 MB / 471.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.1178, allocations: 298.7 kB / 471.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/0.1181, allocations: 332.7 kB / 472 MB, free: 8.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.1181, allocations: 41.7 kB / 472 MB, free: 8.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1183, allocations: 192.4 kB / 472.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.411e-05/0.1184, allocations: 106.6 kB / 472.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.1185, allocations: 65.7 kB / 472.4 MB, free: 8.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1186, allocations: 346.8 kB / 472.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003717/0.119, allocations: 139.9 kB / 472.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004414/0.1194, allocations: 287.9 kB / 473.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008163/0.1203, allocations: 470.3 kB / 473.6 MB, free: 6.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1203, allocations: 0 / 473.6 MB, free: 6.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001023/0.1213, allocations: 0.5104 MB / 474.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.1214, allocations: 37.7 kB / 474.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1214, allocations: 7.984 kB / 474.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.1214, allocations: 8 kB / 474.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003232/0.1217, allocations: 83.83 kB / 474.2 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.1218, allocations: 4 kB / 474.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.122, allocations: 51.66 kB / 474.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.1221, allocations: 20.19 kB / 474.3 MB, free: 6.047 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 (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.0002168/0.1223, allocations: 205.5 kB / 474.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.435e-05/0.1224, allocations: 47.39 kB / 474.6 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.1225, allocations: 51.16 kB / 474.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1225, allocations: 4 kB / 474.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.1225, allocations: 4 kB / 474.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.1226, allocations: 11.92 kB / 474.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008586/0.1234, allocations: 1.031 MB / 475.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1234, allocations: 4 kB / 475.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.1237, allocations: 51.97 kB / 475.7 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.1237, allocations: 12.12 kB / 475.7 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.1237, allocations: 11.98 kB / 475.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.1237, allocations: 4 kB / 475.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.1237, allocations: 7.938 kB / 475.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008986/0.1247, allocations: 467.3 kB / 476.2 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.1247, allocations: 108.7 kB / 476.3 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.23e-05/0.1248, allocations: 19.98 kB / 476.3 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.125, allocations: 19.98 kB / 476.3 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.757e-05/0.1251, allocations: 39.89 kB / 476.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.098e-05/0.1252, allocations: 23.98 kB / 476.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002278/0.1254, allocations: 231.1 kB / 476.6 MB, free: 3.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1254, allocations: 0 / 476.6 MB, free: 3.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004008/0.1258, allocations: 87.89 kB / 476.7 MB, free: 3.484 MB / 350.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.002032/0.1279, allocations: 1.361 MB / 478.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009442/0.1288, allocations: 445.8 kB / 478.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1288, allocations: 0 / 478.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004621/0.1293, allocations: 199.8 kB / 478.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.1298, allocations: 75.8 kB / 478.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004927/0.1347, allocations: 3.683 MB / 482.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.1351, allocations: 0.8073 MB / 483.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002469/0.1353, allocations: 83.2 kB / 483.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.1355, allocations: 115.4 kB / 483.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1355, allocations: 8 kB / 483.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.1626, allocations: 8.254 MB / 491.7 MB, free: 4.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.673/7.835, allocations: 8.047 kB / 491.7 MB, free: 4.445 MB / 366.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