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: translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.0009845/0.0009846, allocations: 192 kB / 18.63 MB, free: 4.375 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.358/1.358, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1768/0.1768, allocations: 38.05 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 68.83 kB / 400.3 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.102, allocations: 58.06 MB / 458.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004986/0.107, allocations: 3.684 MB / 462 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002665/0.1097, allocations: 2.046 MB / 464.1 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.1098, allocations: 11.94 kB / 464.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007934/0.1106, allocations: 242.8 kB / 464.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005613/0.1112, allocations: 278.8 kB / 464.6 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.1118, allocations: 287.1 kB / 464.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004961/0.1123, allocations: 0.5222 MB / 465.4 MB, free: 276 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003326/0.1126, allocations: 219.5 kB / 465.6 MB, free: 52 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003547/0.113, allocations: 219.2 kB / 465.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002557/0.1133, allocations: 215.2 kB / 466 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.463e-05/0.1133, allocations: 44 kB / 466.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005314/0.1139, allocations: 399.1 kB / 466.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.114, allocations: 123.7 kB / 466.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.1142, allocations: 183 kB / 466.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006491/0.1148, allocations: 0.6389 MB / 467.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1148, allocations: 3.938 kB / 467.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1148, allocations: 0 / 467.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1149, allocations: 0 / 467.4 MB, free: 14.25 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.001143/0.116, allocations: 0.7432 MB / 468.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.116, allocations: 11.89 kB / 468.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008419/0.1169, allocations: 108.4 kB / 468.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005751/0.1175, allocations: 415.6 kB / 468.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.1175, allocations: 20.81 kB / 468.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.1176, allocations: 28.11 kB / 468.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007931/0.1184, allocations: 446.8 kB / 469.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.1184, allocations: 7.938 kB / 469.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.1184, allocations: 11.98 kB / 469.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/0.1185, allocations: 20.44 kB / 469.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009575/0.1194, allocations: 0.4934 MB / 469.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.1214, allocations: 1.674 MB / 471.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009029/0.1224, allocations: 373 kB / 471.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003402/0.1227, allocations: 141.6 kB / 471.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.716e-05/0.1228, allocations: 4 kB / 471.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005369/0.1233, allocations: 290.9 kB / 472.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.094e-06/0.1233, allocations: 0 / 472.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001283/0.1246, allocations: 0.5235 MB / 472.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.1247, allocations: 303 kB / 473 MB, free: 8.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/0.1251, allocations: 336.4 kB / 473.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.1251, allocations: 33.7 kB / 473.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.1253, allocations: 196.4 kB / 473.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.61e-05/0.1253, allocations: 98.64 kB / 473.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.1255, allocations: 65.7 kB / 473.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1256, allocations: 350.8 kB / 474 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.126, allocations: 143.9 kB / 474.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004261/0.1264, allocations: 281 kB / 474.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007909/0.1272, allocations: 466.3 kB / 474.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1272, allocations: 0 / 474.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001001/0.1282, allocations: 0.518 MB / 475.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.664e-05/0.1283, allocations: 29.7 kB / 475.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1283, allocations: 8 kB / 475.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.1283, allocations: 4 kB / 475.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003316/0.1286, allocations: 91.81 kB / 475.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.1287, allocations: 8.312 kB / 475.5 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.1289, allocations: 51.66 kB / 475.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/0.129, allocations: 16 kB / 475.6 MB, free: 5.488 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.0001878/0.1292, allocations: 205.3 kB / 475.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.721e-05/0.1292, allocations: 39.47 kB / 475.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.1293, allocations: 47.17 kB / 475.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.1294, allocations: 8 kB / 475.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1294, allocations: 0 / 475.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.1294, allocations: 11.98 kB / 475.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008419/0.1302, allocations: 1.027 MB / 476.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.1302, allocations: 8.156 kB / 476.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000257/0.1305, allocations: 63.91 kB / 477 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.1305, allocations: 7.938 kB / 477 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.1306, allocations: 11.98 kB / 477 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.1306, allocations: 4 kB / 477 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1306, allocations: 4 kB / 477 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008997/0.1315, allocations: 479.2 kB / 477.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.945e-05/0.1316, allocations: 108.7 kB / 477.6 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.947e-05/0.1316, allocations: 15.94 kB / 477.6 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.1319, allocations: 27.97 kB / 477.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.029e-05/0.132, allocations: 39.89 kB / 477.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.132, allocations: 8 kB / 477.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002477/0.1323, allocations: 243 kB / 477.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.1323, allocations: 0 / 477.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004039/0.1327, allocations: 87.83 kB / 478 MB, free: 2.922 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.001036/0.1337, allocations: 468.2 kB / 478.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008678/0.1346, allocations: 419.6 kB / 478.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1346, allocations: 320 / 478.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000459/0.1351, allocations: 198.2 kB / 479.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.1355, allocations: 78.31 kB / 479.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.1367, allocations: 0.7028 MB / 479.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.137, allocations: 0.8034 MB / 480.7 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002163/0.1373, allocations: 87.2 kB / 480.8 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.1374, allocations: 43.42 kB / 480.8 MB, free: 244 kB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1374, allocations: 0 / 480.8 MB, free: 244 kB / 350.1 MB Notification: Performance of Templates: time 0.008728/0.1461, allocations: 4.606 MB / 485.4 MB, free: 11.68 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/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