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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001881/0.001881, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002336/0.002336, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1871/0.1871, allocations: 38.55 MB / 352.5 MB, free: 12.29 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002406/0.002406, allocations: 71.89 kB / 492.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2968, allocations: 62.46 MB / 0.5419 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005533/0.3023, allocations: 3.672 MB / 0.5455 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003642/0.3059, allocations: 2.048 MB / 0.5475 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002102/0.3062, allocations: 18.5 kB / 0.5475 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008292/0.307, allocations: 234.6 kB / 0.5478 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009458/0.3079, allocations: 327.1 kB / 0.5481 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007342/0.3087, allocations: 253.7 kB / 0.5483 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007101/0.3094, allocations: 0.5372 MB / 0.5488 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003717/0.3097, allocations: 193.6 kB / 0.549 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000494/0.3102, allocations: 247.5 kB / 0.5493 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003396/0.3106, allocations: 220.6 kB / 0.5495 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.355e-05/0.3106, allocations: 40.75 kB / 0.5495 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007899/0.3114, allocations: 398.6 kB / 0.5499 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.3116, allocations: 133.7 kB / 0.55 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.3118, allocations: 153.7 kB / 0.5502 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008858/0.3126, allocations: 0.6961 MB / 0.5508 GB, free: 9.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3126, allocations: 0 / 0.5508 GB, free: 9.609 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3126, allocations: 4 kB / 0.5508 GB, free: 9.605 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.3127, allocations: 1.281 kB / 0.5508 GB, free: 9.605 MB / 398.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.001325/0.314, allocations: 0.7089 MB / 0.5515 GB, free: 9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.314, allocations: 13.55 kB / 0.5516 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.467e-05/0.3141, allocations: 54.89 kB / 0.5516 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008929/0.315, allocations: 113.5 kB / 0.5517 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000634/0.3156, allocations: 335.7 kB / 0.552 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.3157, allocations: 13.59 kB / 0.552 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.065e-05/0.3157, allocations: 27.94 kB / 0.5521 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008858/0.3166, allocations: 490.2 kB / 0.5525 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.3166, allocations: 1.281 kB / 0.5525 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.3166, allocations: 15.19 kB / 0.5526 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.261e-05/0.3167, allocations: 17.23 kB / 0.5526 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.3178, allocations: 0.5441 MB / 0.5531 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.3202, allocations: 1.605 MB / 0.5547 GB, free: 6.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.3212, allocations: 382.6 kB / 0.555 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000382/0.3216, allocations: 153 kB / 0.5552 GB, free: 6.332 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.3216, allocations: 8.453 kB / 0.5552 GB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005942/0.3222, allocations: 310 kB / 0.5555 GB, free: 6.082 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.184e-06/0.3222, allocations: 0 / 0.5555 GB, free: 6.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001479/0.3237, allocations: 0.5698 MB / 0.556 GB, free: 5.523 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001799/0.3239, allocations: 294.7 kB / 0.5563 GB, free: 5.168 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004981/0.3244, allocations: 392.8 kB / 0.5567 GB, free: 4.777 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.282e-05/0.3244, allocations: 41.7 kB / 0.5567 GB, free: 4.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.3246, allocations: 200.6 kB / 0.5569 GB, free: 4.527 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.887e-05/0.3247, allocations: 107.2 kB / 0.557 GB, free: 4.422 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.3248, allocations: 69.66 kB / 0.5571 GB, free: 4.348 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.325, allocations: 350.8 kB / 0.5574 GB, free: 3.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004256/0.3254, allocations: 177.6 kB / 0.5576 GB, free: 3.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005395/0.3259, allocations: 346.5 kB / 0.5579 GB, free: 3.406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009293/0.3269, allocations: 493.5 kB / 0.5584 GB, free: 2.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3269, allocations: 0 / 0.5584 GB, free: 2.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001199/0.3281, allocations: 0.5786 MB / 0.559 GB, free: 2.262 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.116e-05/0.3281, allocations: 37.7 kB / 0.559 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.3281, allocations: 4 kB / 0.559 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.3281, allocations: 4 kB / 0.559 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.3285, allocations: 83.88 kB / 0.5591 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.3285, allocations: 11.94 kB / 0.5591 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/0.3288, allocations: 55.7 kB / 0.5592 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.3288, allocations: 24.16 kB / 0.5592 GB, free: 2.039 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.0002203/0.3291, allocations: 189.6 kB / 0.5594 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.487e-05/0.3291, allocations: 51.62 kB / 0.5594 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.3302, allocations: 456.8 kB / 0.5598 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.3302, allocations: 8 kB / 0.5599 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.3302, allocations: 8 kB / 0.5599 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.3302, allocations: 7.984 kB / 0.5599 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.3314, allocations: 1.006 MB / 0.5609 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.3314, allocations: 0 / 0.5609 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000376/0.3318, allocations: 71.89 kB / 0.5609 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.3318, allocations: 4 kB / 0.5609 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.3318, allocations: 15.98 kB / 0.5609 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.3318, allocations: 192 / 0.5609 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3318, allocations: 11.94 kB / 0.561 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.3329, allocations: 0.538 MB / 0.5615 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.428e-05/0.333, allocations: 47.64 kB / 0.5615 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.3331, allocations: 15.98 kB / 0.5615 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.3333, allocations: 31.97 kB / 0.5616 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.616e-05/0.3334, allocations: 47.81 kB / 0.5616 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.3334, allocations: 12 kB / 0.5616 GB, free: 15.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003249/0.3338, allocations: 279 kB / 0.5619 GB, free: 15.13 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3338, allocations: 3.938 kB / 0.5619 GB, free: 15.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000467/0.3342, allocations: 115.8 kB / 0.562 GB, free: 15.01 MB / 414.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.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * 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.003248/0.3375, allocations: 1.521 MB / 0.5635 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.3385, allocations: 477.8 kB / 0.5639 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3385, allocations: 0 / 0.5639 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005338/0.3391, allocations: 215.7 kB / 0.5642 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004768/0.3395, allocations: 88.94 kB / 0.5642 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006018/0.3456, allocations: 3.975 MB / 0.5681 GB, free: 8.637 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.3458, allocations: 213.6 kB / 0.5683 GB, free: 8.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002622/0.346, allocations: 87.2 kB / 0.5684 GB, free: 8.324 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.3463, allocations: 131.4 kB / 0.5685 GB, free: 8.195 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3463, allocations: 0 / 0.5685 GB, free: 8.195 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03771/0.384, allocations: 10.26 MB / 0.5786 GB, free: 14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.96, allocations: 7.844 kB / 0.5786 GB, free: 13.99 MB / 430.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv failed! Error: Could not read variable windFarm.p[1] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv. Warning: Get data of variable windFarm.p[1] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv failed! Error: Could not read variable windFarm.p[2] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv. Warning: Get data of variable windFarm.p[2] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.940860732924193]