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.001539/0.001538, allocations: 115.5 kB / 17.69 MB, free: 5.426 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.001734/0.001734, allocations: 192 kB / 18.63 MB, free: 4.492 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.374/1.374, 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.1766/0.1766, allocations: 38.03 MB / 330.5 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 65.12 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1014, allocations: 58.05 MB / 458.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005941/0.1074, allocations: 3.691 MB / 462 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003041/0.1105, allocations: 2.054 MB / 464.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002291/0.1108, allocations: 7.938 kB / 464.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000914/0.1117, allocations: 234.9 kB / 464.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006545/0.1124, allocations: 278.8 kB / 464.6 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00085/0.1133, allocations: 302.2 kB / 464.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006867/0.114, allocations: 0.5221 MB / 465.4 MB, free: 256 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003921/0.1144, allocations: 219.5 kB / 465.6 MB, free: 32 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000472/0.1148, allocations: 227.2 kB / 465.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002725/0.1151, allocations: 215.2 kB / 466 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.95e-05/0.1152, allocations: 36 kB / 466.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006235/0.1158, allocations: 395.2 kB / 466.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.116, allocations: 123.6 kB / 466.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.1161, allocations: 191 kB / 466.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007069/0.1169, allocations: 0.6389 MB / 467.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1169, allocations: 0 / 467.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1169, allocations: 0 / 467.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1169, allocations: 0 / 467.4 MB, free: 14.23 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.001226/0.1181, allocations: 0.7393 MB / 468.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.1182, allocations: 15.89 kB / 468.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008587/0.119, allocations: 100.4 kB / 468.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000589/0.1196, allocations: 427.5 kB / 468.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.1197, allocations: 16.81 kB / 468.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.756e-05/0.1197, allocations: 24.12 kB / 468.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007891/0.1205, allocations: 454.7 kB / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.1205, allocations: 0 / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.605e-05/0.1206, allocations: 8 kB / 469.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.362e-05/0.1206, allocations: 16.44 kB / 469.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009607/0.1216, allocations: 0.5051 MB / 469.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.1237, allocations: 1.674 MB / 471.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009042/0.1246, allocations: 365.1 kB / 471.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.125, allocations: 145.6 kB / 471.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.709e-05/0.125, allocations: 11.98 kB / 471.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005468/0.1256, allocations: 290.9 kB / 472.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.063e-06/0.1256, allocations: 0 / 472.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001321/0.1269, allocations: 0.516 MB / 472.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001632/0.1271, allocations: 298.7 kB / 473 MB, free: 8.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.1275, allocations: 336.4 kB / 473.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.1275, allocations: 33.7 kB / 473.3 MB, free: 7.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.1277, allocations: 196.4 kB / 473.5 MB, free: 7.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.469e-05/0.1278, allocations: 110.6 kB / 473.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.1279, allocations: 69.64 kB / 473.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.128, allocations: 346.8 kB / 474 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003514/0.1284, allocations: 143.9 kB / 474.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004918/0.1289, allocations: 277 kB / 474.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008146/0.1297, allocations: 466.3 kB / 474.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.1297, allocations: 4 kB / 474.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00107/0.1308, allocations: 0.5182 MB / 475.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/0.1309, allocations: 33.7 kB / 475.4 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1309, allocations: 8.031 kB / 475.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1309, allocations: 7.984 kB / 475.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.1312, allocations: 83.89 kB / 475.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.1312, allocations: 11.94 kB / 475.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.1315, allocations: 47.66 kB / 475.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/0.1315, allocations: 20 kB / 475.6 MB, free: 5.461 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.0001931/0.1317, allocations: 201.4 kB / 475.8 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.91e-05/0.1318, allocations: 43.47 kB / 475.9 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.1319, allocations: 47.17 kB / 475.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1319, allocations: 4 kB / 475.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.132, allocations: 4 kB / 475.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.132, allocations: 7.969 kB / 475.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009544/0.1329, allocations: 1.031 MB / 477 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1329, allocations: 3.984 kB / 477 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.1332, allocations: 59.91 kB / 477 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.1332, allocations: 4 kB / 477 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.1332, allocations: 15.98 kB / 477 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.1332, allocations: 4 kB / 477 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.1332, allocations: 4.188 kB / 477 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000862/0.1341, allocations: 471.2 kB / 477.5 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.256e-05/0.1342, allocations: 108.7 kB / 477.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.219e-05/0.1343, allocations: 20 kB / 477.6 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.1345, allocations: 27.97 kB / 477.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.661e-05/0.1346, allocations: 43.83 kB / 477.7 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.1346, allocations: 12 kB / 477.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002535/0.1349, allocations: 235 kB / 477.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.1349, allocations: 0 / 477.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004068/0.1353, allocations: 87.83 kB / 478 MB, free: 2.906 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.001025/0.1363, allocations: 471.3 kB / 478.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008293/0.1372, allocations: 415.2 kB / 478.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1372, allocations: 0 / 478.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004933/0.1377, allocations: 196.9 kB / 479.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.1381, allocations: 83.66 kB / 479.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.1393, allocations: 0.6906 MB / 479.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.1398, allocations: 0.8073 MB / 480.7 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00022/0.14, allocations: 87.2 kB / 480.7 MB, free: 272 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.1401, allocations: 39.42 kB / 480.8 MB, free: 232 kB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1401, allocations: 0 / 480.8 MB, free: 232 kB / 350.1 MB Notification: Performance of Templates: time 0.009333/0.1495, allocations: 4.609 MB / 485.4 MB, free: 11.66 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 cvode -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