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.001272/0.001272, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001475/0.001475, allocations: 170 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.9072/0.9072, allocations: 177.1 MB / 204.2 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2206/0.2206, allocations: 29.41 MB / 290.1 MB, free: 2.453 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.52e-05/2.733e-05, allocations: 6.844 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.00417/0.004197, allocations: 3.65 MB / 433.9 MB, free: 9.918 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002344/0.006542, allocations: 2.069 MB / 435.9 MB, free: 7.84 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/0.006782, allocations: 11.88 kB / 435.9 MB, free: 7.828 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008549/0.007637, allocations: 229.8 kB / 436.2 MB, free: 7.605 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008084/0.008445, allocations: 330.3 kB / 436.5 MB, free: 7.281 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005489/0.008994, allocations: 262.9 kB / 436.7 MB, free: 7.023 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006309/0.009625, allocations: 0.5415 MB / 437.3 MB, free: 6.48 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000409/0.01003, allocations: 199.8 kB / 437.5 MB, free: 6.277 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005119/0.01055, allocations: 327 kB / 437.8 MB, free: 5.957 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002761/0.01082, allocations: 199.5 kB / 438 MB, free: 5.762 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.01087, allocations: 40 kB / 438 MB, free: 5.723 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005432/0.01141, allocations: 398.9 kB / 438.4 MB, free: 5.332 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.01154, allocations: 139.5 kB / 438.6 MB, free: 5.195 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.01166, allocations: 131.7 kB / 438.7 MB, free: 5.066 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008139/0.01248, allocations: 0.7283 MB / 439.4 MB, free: 4.336 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.01248, allocations: 0 / 439.4 MB, free: 4.336 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.01248, allocations: 0 / 439.4 MB, free: 4.336 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.01249, allocations: 4 kB / 439.4 MB, free: 4.332 MB / 410.7 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.0009801/0.01347, allocations: 0.7022 MB / 440.1 MB, free: 3.594 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.01351, allocations: 15.98 kB / 440.1 MB, free: 3.578 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.527e-05/0.01357, allocations: 54.73 kB / 440.2 MB, free: 3.516 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005589/0.01413, allocations: 112.5 kB / 440.3 MB, free: 3.406 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.01453, allocations: 337.5 kB / 440.6 MB, free: 3.055 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.01456, allocations: 16.88 kB / 440.6 MB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.162e-05/0.01459, allocations: 20.38 kB / 440.7 MB, free: 3.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000554/0.01514, allocations: 496.7 kB / 441.2 MB, free: 2.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.01515, allocations: 4 kB / 441.2 MB, free: 2.496 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.01517, allocations: 4 kB / 441.2 MB, free: 2.492 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.811e-05/0.0152, allocations: 24.48 kB / 441.2 MB, free: 2.469 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006597/0.01586, allocations: 0.5482 MB / 441.7 MB, free: 1.918 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.01748, allocations: 1.6 MB / 443.3 MB, free: 236 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1604/0.1779, allocations: 393 kB / 443.7 MB, free: 54.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.1781, allocations: 147.1 kB / 443.9 MB, free: 54.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.1781, allocations: 4.188 kB / 443.9 MB, free: 54.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003194/0.1784, allocations: 306.8 kB / 444.2 MB, free: 54.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 2.354e-06/0.1785, allocations: 0 / 444.2 MB, free: 54.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007817/0.1792, allocations: 0.5607 MB / 444.7 MB, free: 54.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.1793, allocations: 296.3 kB / 445 MB, free: 53.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002712/0.1796, allocations: 398.1 kB / 445.4 MB, free: 53.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.1796, allocations: 32.86 kB / 445.4 MB, free: 53.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.979e-05/0.1797, allocations: 200 kB / 445.6 MB, free: 53.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.153e-05/0.1797, allocations: 110.6 kB / 445.7 MB, free: 53.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.899e-05/0.1798, allocations: 73.44 kB / 445.8 MB, free: 53.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.36e-05/0.1798, allocations: 350.7 kB / 446.2 MB, free: 53.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.18, allocations: 177.4 kB / 446.3 MB, free: 52.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/0.1802, allocations: 340.5 kB / 446.7 MB, free: 52.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.1806, allocations: 489.2 kB / 447.1 MB, free: 52.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1807, allocations: 9.781 kB / 447.1 MB, free: 52.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005391/0.1812, allocations: 0.5694 MB / 447.7 MB, free: 52.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.1812, allocations: 36.36 kB / 447.7 MB, free: 52.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1812, allocations: 3.031 kB / 447.8 MB, free: 52.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1812, allocations: 6.969 kB / 447.8 MB, free: 52.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.1814, allocations: 88.36 kB / 447.8 MB, free: 52.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.1814, allocations: 10.25 kB / 447.9 MB, free: 52.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001525/0.1816, allocations: 56.98 kB / 447.9 MB, free: 52.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.1816, allocations: 19.61 kB / 447.9 MB, free: 52.03 MB / 410.7 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.0001096/0.1817, allocations: 186.7 kB / 448.1 MB, free: 51.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.936e-05/0.1817, allocations: 52.58 kB / 448.2 MB, free: 51.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005024/0.1822, allocations: 463.5 kB / 448.6 MB, free: 51.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1822, allocations: 5.969 kB / 448.6 MB, free: 51.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1823, allocations: 3.469 kB / 448.6 MB, free: 51.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1823, allocations: 2.969 kB / 448.6 MB, free: 51.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004737/0.1827, allocations: 1.005 MB / 449.6 MB, free: 50.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1827, allocations: 3.156 kB / 449.6 MB, free: 50.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.1829, allocations: 80.45 kB / 449.7 MB, free: 50.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1829, allocations: 5.531 kB / 449.7 MB, free: 50.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.1829, allocations: 13.78 kB / 449.7 MB, free: 50.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1829, allocations: 6.016 kB / 449.7 MB, free: 50.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1829, allocations: 3.094 kB / 449.7 MB, free: 50.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004772/0.1834, allocations: 0.5341 MB / 450.3 MB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.1834, allocations: 48.02 kB / 450.3 MB, free: 50.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.1834, allocations: 14.44 kB / 450.3 MB, free: 50.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.1835, allocations: 31.28 kB / 450.4 MB, free: 50.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.1836, allocations: 45.33 kB / 450.4 MB, free: 50.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.1836, allocations: 14.84 kB / 450.4 MB, free: 50.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001476/0.1838, allocations: 282.7 kB / 450.7 MB, free: 50.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1838, allocations: 0 / 450.7 MB, free: 50.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002778/0.1841, allocations: 113.8 kB / 450.8 MB, free: 50.38 MB / 410.7 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.001302/0.1854, allocations: 1.527 MB / 452.3 MB, free: 49.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004764/0.1858, allocations: 473.3 kB / 452.8 MB, free: 49.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1858, allocations: 0 / 452.8 MB, free: 49.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002379/0.1861, allocations: 216.3 kB / 453 MB, free: 49.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.1864, allocations: 81.84 kB / 453.1 MB, free: 49.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.1891, allocations: 3.972 MB / 457.1 MB, free: 46.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.1892, allocations: 208.9 kB / 457.3 MB, free: 46.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.1894, allocations: 90.28 kB / 457.4 MB, free: 46.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.1895, allocations: 136.3 kB / 457.5 MB, free: 46.39 MB / 410.7 MB Notification: Performance of SimCode: time 7.31e-07/0.1895, allocations: 0 / 457.5 MB, free: 46.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0188/0.2083, allocations: 10.41 MB / 467.9 MB, free: 44.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.827/7.036, allocations: 3.125 kB / 467.9 MB, free: 44.31 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.979863433167338]