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.001291/0.001291, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.001253/0.001253, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.366/1.366, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1737/0.1737, allocations: 38.05 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 61.48 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.114, allocations: 58.07 MB / 456.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.006656/0.1207, allocations: 3.668 MB / 460.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003188/0.124, allocations: 2.054 MB / 462.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002964/0.1243, allocations: 11.94 kB / 462.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001058/0.1254, allocations: 230.9 kB / 462.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008901/0.1263, allocations: 298.7 kB / 463.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008682/0.1271, allocations: 286.1 kB / 463.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007742/0.1279, allocations: 0.5222 MB / 463.9 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006082/0.1285, allocations: 215.5 kB / 464.1 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006872/0.1292, allocations: 231.1 kB / 464.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004727/0.1297, allocations: 211.3 kB / 464.6 MB, free: 328 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.1299, allocations: 36 kB / 464.6 MB, free: 292 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009247/0.1308, allocations: 399.2 kB / 465 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.131, allocations: 131.6 kB / 465.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.1313, allocations: 187 kB / 465.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000942/0.1322, allocations: 0.6232 MB / 465.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1322, allocations: 0 / 465.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1322, allocations: 0 / 465.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1322, allocations: 0 / 465.9 MB, free: 14.96 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.001257/0.1335, allocations: 0.7393 MB / 466.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.1336, allocations: 15.89 kB / 466.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008502/0.1344, allocations: 108.3 kB / 466.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005669/0.135, allocations: 407.5 kB / 467.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.135, allocations: 16.81 kB / 467.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.075e-05/0.1351, allocations: 24.12 kB / 467.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008213/0.1359, allocations: 446.8 kB / 467.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.1359, allocations: 3.984 kB / 467.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.673e-05/0.136, allocations: 12 kB / 467.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.399e-05/0.136, allocations: 12.44 kB / 467.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009901/0.137, allocations: 0.5051 MB / 468.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.139, allocations: 1.686 MB / 469.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009562/0.14, allocations: 361.1 kB / 470.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003837/0.1404, allocations: 145.6 kB / 470.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.788e-05/0.1404, allocations: 8 kB / 470.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005537/0.141, allocations: 286.9 kB / 470.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.595e-06/0.141, allocations: 0 / 470.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001418/0.1424, allocations: 0.5274 MB / 471.2 MB, free: 9.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.1426, allocations: 294.7 kB / 471.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.143, allocations: 332.7 kB / 471.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.143, allocations: 41.7 kB / 471.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.1432, allocations: 192.4 kB / 472 MB, free: 8.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.341e-05/0.1433, allocations: 106.6 kB / 472.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.1434, allocations: 69.64 kB / 472.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1435, allocations: 346.8 kB / 472.5 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/0.1439, allocations: 139.9 kB / 472.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004907/0.1444, allocations: 281 kB / 473 MB, free: 7.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008619/0.1453, allocations: 462.3 kB / 473.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.1453, allocations: 4 kB / 473.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001077/0.1464, allocations: 0.5181 MB / 473.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.839e-05/0.1465, allocations: 37.7 kB / 474 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1465, allocations: 4 kB / 474 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.1465, allocations: 8 kB / 474 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/0.1468, allocations: 83.88 kB / 474.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.1469, allocations: 7.938 kB / 474.1 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.1471, allocations: 51.66 kB / 474.1 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.321e-05/0.1472, allocations: 24.19 kB / 474.1 MB, free: 6.203 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.0002138/0.1474, allocations: 201.6 kB / 474.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.703e-05/0.1475, allocations: 43.47 kB / 474.4 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.1476, allocations: 51.16 kB / 474.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.1476, allocations: 7.938 kB / 474.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.1476, allocations: 4 kB / 474.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.1477, allocations: 3.984 kB / 474.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009503/0.1486, allocations: 1.031 MB / 475.5 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.1486, allocations: 4 kB / 475.5 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.1489, allocations: 63.89 kB / 475.5 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1489, allocations: 4.188 kB / 475.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.1489, allocations: 15.98 kB / 475.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.149, allocations: 4 kB / 475.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.149, allocations: 0 / 475.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009627/0.1499, allocations: 467.2 kB / 476 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.208e-05/0.15, allocations: 112.7 kB / 476.1 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.609e-05/0.1501, allocations: 16 kB / 476.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002194/0.1503, allocations: 23.97 kB / 476.2 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1504, allocations: 43.83 kB / 476.2 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.837e-05/0.1505, allocations: 16 kB / 476.2 MB, free: 3.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002483/0.1507, allocations: 231 kB / 476.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1507, allocations: 0 / 476.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004321/0.1512, allocations: 91.89 kB / 476.5 MB, free: 3.648 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.001115/0.1523, allocations: 468.6 kB / 477 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009898/0.1533, allocations: 446.8 kB / 477.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1533, allocations: 0 / 477.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004835/0.1538, allocations: 203.8 kB / 477.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004615/0.1543, allocations: 76.22 kB / 477.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.1556, allocations: 0.7081 MB / 478.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004037/0.156, allocations: 0.8034 MB / 479.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002781/0.1563, allocations: 87.22 kB / 479.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.1564, allocations: 43.42 kB / 479.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of SimCode: time 4.8e-07/0.1564, allocations: 0 / 479.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of Templates: time 0.009353/0.1658, allocations: 4.613 MB / 484 MB, free: 12.36 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 -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/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) Reference file matches