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.0006925/0.0006925, allocations: 92.86 kB / 16.65 MB, free: 6.535 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.0008304/0.0008304, allocations: 174 kB / 17.56 MB, free: 6.184 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.215/1.215, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1584/0.1584, allocations: 38.09 MB / 330.8 MB, free: 8.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003586, allocations: 8 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09485/0.09522, allocations: 59.16 MB / 459.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004977/0.1003, allocations: 3.751 MB / 463.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.1033, allocations: 2.144 MB / 465.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003608/0.1037, allocations: 19.88 kB / 465.8 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003922/0.1041, allocations: 55.62 kB / 465.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007183/0.1048, allocations: 259.1 kB / 466.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007164/0.1055, allocations: 253.3 kB / 466.4 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007034/0.1063, allocations: 0.6275 MB / 467 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007269/0.107, allocations: 380.5 kB / 467.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003986/0.1074, allocations: 179.1 kB / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002987/0.1077, allocations: 195.2 kB / 467.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.1078, allocations: 19.98 kB / 467.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006461/0.1084, allocations: 451 kB / 468.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.1086, allocations: 103.6 kB / 468.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.1088, allocations: 188.8 kB / 468.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007897/0.1096, allocations: 0.6269 MB / 469.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1096, allocations: 0 / 469.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1096, allocations: 0 / 469.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.1096, allocations: 0 / 469.1 MB, free: 13.8 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.001213/0.1108, allocations: 0.6888 MB / 469.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1109, allocations: 8.031 kB / 469.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008871/0.1117, allocations: 108.4 kB / 469.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000518/0.1123, allocations: 403.6 kB / 470.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.1123, allocations: 16.81 kB / 470.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.487e-05/0.1124, allocations: 32.11 kB / 470.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008184/0.1132, allocations: 454.8 kB / 470.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.1132, allocations: 3.984 kB / 470.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.732e-05/0.1133, allocations: 11.98 kB / 470.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.021e-05/0.1133, allocations: 16.44 kB / 470.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000985/0.1143, allocations: 0.5169 MB / 471.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.1163, allocations: 1.69 MB / 473 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009193/0.1172, allocations: 389.1 kB / 473.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003596/0.1176, allocations: 155.3 kB / 473.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.1176, allocations: 8 kB / 473.6 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005228/0.1181, allocations: 298.9 kB / 473.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.623e-06/0.1182, allocations: 0 / 473.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.00131/0.1195, allocations: 0.5661 MB / 474.4 MB, free: 8.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.1196, allocations: 298.7 kB / 474.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003426/0.12, allocations: 332.5 kB / 475 MB, free: 7.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.12, allocations: 41.73 kB / 475.1 MB, free: 7.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.1201, allocations: 188.4 kB / 475.3 MB, free: 7.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.947e-05/0.1202, allocations: 110.5 kB / 475.4 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.1203, allocations: 41.64 kB / 475.4 MB, free: 7.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1204, allocations: 342.8 kB / 475.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003842/0.1208, allocations: 159.8 kB / 475.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004538/0.1213, allocations: 285 kB / 476.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008222/0.1221, allocations: 494.3 kB / 476.7 MB, free: 5.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1221, allocations: 3.938 kB / 476.7 MB, free: 5.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00103/0.1232, allocations: 0.5378 MB / 477.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.298e-05/0.1232, allocations: 33.7 kB / 477.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1232, allocations: 4 kB / 477.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.1232, allocations: 8 kB / 477.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003083/0.1235, allocations: 91.83 kB / 477.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.1236, allocations: 11.98 kB / 477.3 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.1239, allocations: 63.88 kB / 477.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.1239, allocations: 16 kB / 477.4 MB, free: 4.922 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.0001838/0.1241, allocations: 193.6 kB / 477.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.935e-05/0.1242, allocations: 43.47 kB / 477.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.51e-05/0.1243, allocations: 51.16 kB / 477.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1243, allocations: 4 kB / 477.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1243, allocations: 8 kB / 477.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1243, allocations: 0 / 477.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007709/0.1251, allocations: 1.035 MB / 478.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1251, allocations: 3.938 kB / 478.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.1253, allocations: 63.95 kB / 478.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.1254, allocations: 4 kB / 478.8 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.1254, allocations: 8 kB / 478.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/0.1254, allocations: 7.938 kB / 478.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1254, allocations: 4 kB / 478.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008709/0.1263, allocations: 0.4915 MB / 479.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.05e-05/0.1264, allocations: 116.7 kB / 479.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.409e-05/0.1264, allocations: 16 kB / 479.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1266, allocations: 31.97 kB / 479.5 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.459e-05/0.1267, allocations: 39.89 kB / 479.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.1268, allocations: 12 kB / 479.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000214/0.127, allocations: 235 kB / 479.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.127, allocations: 0 / 479.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003836/0.1274, allocations: 91.89 kB / 479.9 MB, free: 2.332 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.0009065/0.1283, allocations: 478.9 kB / 480.3 MB, free: 2.035 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008722/0.1292, allocations: 441.2 kB / 480.8 MB, free: 1.594 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1292, allocations: 0.8125 kB / 480.8 MB, free: 1.594 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004437/0.1296, allocations: 211.9 kB / 481 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004909/0.1301, allocations: 65.05 kB / 481 MB, free: 1.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.1313, allocations: 0.8364 MB / 481.9 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.1317, allocations: 0.7998 MB / 482.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002347/0.1319, allocations: 99.17 kB / 482.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.132, allocations: 47.3 kB / 482.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1321, allocations: 0 / 482.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of Templates: time 0.007843/0.1399, allocations: 4.289 MB / 487.1 MB, free: 11.23 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches