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.0009208/0.0009208, allocations: 92.66 kB / 16.95 MB, free: 6.41 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.0009349/0.000935, allocations: 179.8 kB / 17.84 MB, free: 5.969 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.347/1.347, allocations: 223.3 MB / 241.9 MB, free: 308 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1665/0.1665, allocations: 38.09 MB / 331.1 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002956, allocations: 12 kB / 400.7 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 59.18 MB / 459.9 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004349/0.126, allocations: 3.589 MB / 463.5 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002876/0.1289, allocations: 2.009 MB / 465.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.1292, allocations: 15.88 kB / 465.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003982/0.1296, allocations: 79.52 kB / 465.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006181/0.1303, allocations: 238.9 kB / 465.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006595/0.1309, allocations: 227 kB / 466 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005523/0.1315, allocations: 0.522 MB / 466.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006066/0.1321, allocations: 347.1 kB / 466.9 MB, free: 352 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003678/0.1325, allocations: 187.2 kB / 467.1 MB, free: 164 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002746/0.1328, allocations: 187.3 kB / 467.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.1328, allocations: 20 kB / 467.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004413/0.1333, allocations: 223.5 kB / 467.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.1334, allocations: 103.6 kB / 467.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.937e-05/0.1335, allocations: 85.52 kB / 467.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005097/0.134, allocations: 466.9 kB / 468.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.134, allocations: 0 / 468.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.134, allocations: 0 / 468.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.134, allocations: 0 / 468.1 MB, free: 15.09 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.001113/0.1352, allocations: 0.6886 MB / 468.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1352, allocations: 8.031 kB / 468.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008096/0.136, allocations: 107.4 kB / 468.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000551/0.1366, allocations: 406.4 kB / 469.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.1366, allocations: 16.42 kB / 469.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.56e-05/0.1367, allocations: 27.95 kB / 469.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008/0.1375, allocations: 450.8 kB / 469.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.1375, allocations: 7.938 kB / 469.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.1375, allocations: 4 kB / 469.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.689e-05/0.1376, allocations: 24.42 kB / 469.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009145/0.1385, allocations: 0.513 MB / 470.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.1405, allocations: 1.682 MB / 472 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008571/0.1413, allocations: 393.1 kB / 472.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003313/0.1417, allocations: 155.3 kB / 472.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.364e-05/0.1417, allocations: 15.97 kB / 472.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005279/0.1423, allocations: 298.8 kB / 472.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.783e-06/0.1423, allocations: 0 / 472.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.00122/0.1435, allocations: 0.5484 MB / 473.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.1437, allocations: 294.7 kB / 473.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/0.144, allocations: 340.5 kB / 474.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.1441, allocations: 37.69 kB / 474.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.1442, allocations: 196.4 kB / 474.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.421e-05/0.1443, allocations: 102.6 kB / 474.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.769e-05/0.1444, allocations: 4 kB / 474.4 MB, free: 8.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1445, allocations: 346.8 kB / 474.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003412/0.1449, allocations: 151.9 kB / 474.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004093/0.1453, allocations: 289 kB / 475.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004053/0.1457, allocations: 214.5 kB / 475.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.1457, allocations: 4 kB / 475.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009508/0.1467, allocations: 0.5297 MB / 475.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.293e-05/0.1467, allocations: 41.69 kB / 475.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.1468, allocations: 12.28 kB / 476 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.1468, allocations: 12 kB / 476 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003179/0.1471, allocations: 91.83 kB / 476.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.1471, allocations: 15.89 kB / 476.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.1474, allocations: 55.56 kB / 476.1 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.236e-05/0.1474, allocations: 24 kB / 476.1 MB, free: 6.586 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 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002087/0.1477, allocations: 197.6 kB / 476.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.839e-05/0.1477, allocations: 35.62 kB / 476.4 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.1478, allocations: 51.16 kB / 476.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.1479, allocations: 4 kB / 476.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.1479, allocations: 4 kB / 476.4 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.1479, allocations: 3.953 kB / 476.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008837/0.1488, allocations: 1.027 MB / 477.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1488, allocations: 0 / 477.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.149, allocations: 80.03 kB / 477.5 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.149, allocations: 4 kB / 477.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.1491, allocations: 8 kB / 477.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.1491, allocations: 4 kB / 477.6 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/0.1491, allocations: 11.92 kB / 477.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008423/0.1499, allocations: 491.3 kB / 478 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.11e-05/0.15, allocations: 120.6 kB / 478.2 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.68e-05/0.1501, allocations: 15.95 kB / 478.2 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.1503, allocations: 35.97 kB / 478.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.933e-05/0.1504, allocations: 35.95 kB / 478.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.1504, allocations: 12 kB / 478.3 MB, free: 4.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002363/0.1507, allocations: 235 kB / 478.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1507, allocations: 0 / 478.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004174/0.1511, allocations: 91.83 kB / 478.6 MB, free: 4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/0.1521, allocations: 468.7 kB / 479 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000869/0.153, allocations: 437.6 kB / 479.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.153, allocations: 0 / 479.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004214/0.1535, allocations: 204.5 kB / 479.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.1539, allocations: 72.88 kB / 479.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.1552, allocations: 0.8303 MB / 480.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.1557, allocations: 0.8076 MB / 481.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.1558, allocations: 43.42 kB / 481.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1558, allocations: 0 / 481.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of Templates: time 0.008141/0.164, allocations: 5.337 MB / 486.8 MB, free: 11.93 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTestCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTestCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTestCalcHelperMain.o] Error 1