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.001126/0.001127, allocations: 109.3 kB / 16.51 MB, free: 6.707 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.001116/0.001116, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.394/1.394, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1759/0.1759, allocations: 38.04 MB / 329.3 MB, free: 9.074 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 66.66 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1068, allocations: 58.06 MB / 456.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.007964/0.1148, allocations: 4.118 MB / 460.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004826/0.1197, allocations: 2.198 MB / 462.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004774/0.1202, allocations: 19.88 kB / 462.5 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.1215, allocations: 215.2 kB / 462.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009306/0.1224, allocations: 247.1 kB / 462.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.1235, allocations: 262.5 kB / 463.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008612/0.1244, allocations: 0.6235 MB / 463.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005007/0.1249, allocations: 187.8 kB / 464 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004959/0.1254, allocations: 195.1 kB / 464.2 MB, free: 468 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003454/0.1257, allocations: 207.3 kB / 464.4 MB, free: 260 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.237e-05/0.1258, allocations: 20 kB / 464.4 MB, free: 240 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001021/0.1269, allocations: 463 kB / 464.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.127, allocations: 111.6 kB / 465 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002508/0.1273, allocations: 175 kB / 465.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.1283, allocations: 0.6271 MB / 465.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1283, allocations: 0 / 465.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1284, allocations: 8 kB / 465.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.1284, allocations: 0 / 465.8 MB, free: 14.86 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.001617/0.13, allocations: 0.7393 MB / 466.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1301, allocations: 8.031 kB / 466.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/0.1314, allocations: 108.4 kB / 466.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007303/0.1322, allocations: 411.5 kB / 467 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.1322, allocations: 16.81 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.599e-05/0.1323, allocations: 32.11 kB / 467.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.1335, allocations: 442.7 kB / 467.5 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.1335, allocations: 4 kB / 467.5 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.907e-05/0.1336, allocations: 4 kB / 467.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.612e-05/0.1336, allocations: 24.42 kB / 467.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.135, allocations: 0.4934 MB / 468 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002953/0.138, allocations: 1.682 MB / 469.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/0.1393, allocations: 369.1 kB / 470.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005063/0.1398, allocations: 147.3 kB / 470.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.874e-05/0.1399, allocations: 11.94 kB / 470.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007302/0.1406, allocations: 282.9 kB / 470.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.886e-06/0.1407, allocations: 4 kB / 470.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001807/0.1425, allocations: 0.52 MB / 471 MB, free: 9.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001802/0.1427, allocations: 298.7 kB / 471.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005198/0.1432, allocations: 332.4 kB / 471.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.1433, allocations: 41.7 kB / 471.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.1435, allocations: 188.4 kB / 471.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.1436, allocations: 102.6 kB / 472 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.1438, allocations: 73.59 kB / 472.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1439, allocations: 350.8 kB / 472.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005064/0.1445, allocations: 139.9 kB / 472.5 MB, free: 7.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006089/0.1451, allocations: 277 kB / 472.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.1462, allocations: 466.3 kB / 473.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.1462, allocations: 0 / 473.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001461/0.1477, allocations: 0.5101 MB / 473.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.976e-05/0.1478, allocations: 36.05 kB / 473.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.1478, allocations: 4.562 kB / 473.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.1478, allocations: 12 kB / 473.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.1483, allocations: 95.81 kB / 473.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.1483, allocations: 8 kB / 473.9 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003958/0.1487, allocations: 51.66 kB / 474 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.175e-05/0.1488, allocations: 12 kB / 474 MB, free: 6.121 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.0002734/0.1491, allocations: 197.6 kB / 474.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.1492, allocations: 43.45 kB / 474.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.1493, allocations: 51.16 kB / 474.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.1494, allocations: 7.938 kB / 474.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1494, allocations: 4 kB / 474.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.1494, allocations: 4 kB / 474.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.1506, allocations: 1.042 MB / 475.3 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.1506, allocations: 4 kB / 475.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003498/0.151, allocations: 63.83 kB / 475.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.847e-06/0.151, allocations: 4 kB / 475.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.547e-05/0.1511, allocations: 8 kB / 475.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.947e-06/0.1511, allocations: 7.984 kB / 475.4 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.1511, allocations: 4 kB / 475.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.1524, allocations: 471.5 kB / 475.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.1525, allocations: 112.7 kB / 476 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.806e-05/0.1526, allocations: 12 kB / 476 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.1529, allocations: 23.97 kB / 476 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.1531, allocations: 43.89 kB / 476.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.159e-05/0.1531, allocations: 15.94 kB / 476.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000361/0.1535, allocations: 239 kB / 476.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1535, allocations: 0 / 476.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006963/0.1542, allocations: 87.89 kB / 476.4 MB, free: 3.555 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.001508/0.1557, allocations: 465 kB / 476.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.1571, allocations: 417.9 kB / 477.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1571, allocations: 0 / 477.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006986/0.1578, allocations: 195.8 kB / 477.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007298/0.1586, allocations: 68.45 kB / 477.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.1608, allocations: 0.8172 MB / 478.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/0.1614, allocations: 0.7998 MB / 479.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003946/0.1618, allocations: 99.19 kB / 479.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.162, allocations: 47.36 kB / 479.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.162, allocations: 0 / 479.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of Templates: time 0.0135/0.1755, allocations: 4.344 MB / 483.6 MB, free: 12.46 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