Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 90.5 kB / 17.31 MB, free: 5.59 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.002029/0.002029, allocations: 177.1 kB / 18.21 MB, free: 5.191 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.485/1.485, allocations: 223.2 MB / 242.2 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.2115/0.2115, allocations: 38.09 MB / 331.5 MB, free: 8.512 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003285, allocations: 12 kB / 401.4 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1266, allocations: 59.15 MB / 460.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006287/0.1329, allocations: 5.133 MB / 465.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003787/0.1367, allocations: 2.218 MB / 467.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005958/0.1374, allocations: 27.81 kB / 467.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004345/0.1378, allocations: 91.28 kB / 468 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008043/0.1386, allocations: 310.6 kB / 468.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008628/0.1395, allocations: 363.4 kB / 468.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.1405, allocations: 1.002 MB / 469.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.1416, allocations: 0.6395 MB / 470.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004645/0.1421, allocations: 266.6 kB / 470.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004327/0.1425, allocations: 302.5 kB / 470.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.885e-05/0.1426, allocations: 24 kB / 470.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006403/0.1432, allocations: 383.1 kB / 471.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.1434, allocations: 127.5 kB / 471.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002544/0.1437, allocations: 311.9 kB / 471.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006238/0.1443, allocations: 0.6897 MB / 472.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1443, allocations: 0 / 472.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1443, allocations: 0 / 472.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.1443, allocations: 0 / 472.4 MB, free: 11.11 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001829/0.1462, allocations: 0.9216 MB / 473.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1462, allocations: 8.031 kB / 473.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008393/0.1471, allocations: 140 kB / 473.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008456/0.1479, allocations: 0.5131 MB / 473.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.152e-05/0.148, allocations: 37.38 kB / 474 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.637e-05/0.1481, allocations: 52.38 kB / 474 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.1493, allocations: 0.6905 MB / 474.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.1493, allocations: 8 kB / 474.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.449e-05/0.1494, allocations: 16 kB / 474.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.978e-05/0.1495, allocations: 32.98 kB / 474.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.1508, allocations: 0.6323 MB / 475.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003758/0.1546, allocations: 2.704 MB / 478.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.156, allocations: 0.6454 MB / 478.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005053/0.1565, allocations: 226.2 kB / 479 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.88e-05/0.1566, allocations: 12.36 kB / 479 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006465/0.1572, allocations: 314 kB / 479.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.874e-06/0.1572, allocations: 96 / 479.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.001967/0.1592, allocations: 0.7992 MB / 480.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.1594, allocations: 148.6 kB / 480.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007091/0.1601, allocations: 498.2 kB / 480.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/0.1601, allocations: 37.7 kB / 480.8 MB, free: 2.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/0.1604, allocations: 303.9 kB / 481.1 MB, free: 2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.1605, allocations: 142 kB / 481.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.145e-05/0.1606, allocations: 49.69 kB / 481.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1607, allocations: 366.8 kB / 481.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004821/0.1612, allocations: 197 kB / 481.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005501/0.1618, allocations: 335.2 kB / 482.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.1629, allocations: 0.5529 MB / 482.7 MB, free: 268 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1629, allocations: 4 kB / 482.7 MB, free: 264 kB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001898/0.1648, allocations: 0.823 MB / 483.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.1649, allocations: 221.2 kB / 483.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.165, allocations: 12 kB / 483.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005076/0.1655, allocations: 136.8 kB / 483.9 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003921/0.1659, allocations: 95.89 kB / 484 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003208/0.1691, allocations: 2.472 MB / 486.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005216/0.1696, allocations: 91.45 kB / 486.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/0.1697, allocations: 23.94 kB / 486.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.234e-06/0.1697, allocations: 4 kB / 486.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001356/0.1711, allocations: 0.6389 MB / 487.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1711, allocations: 4 kB / 487.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003388/0.1714, allocations: 126.2 kB / 487.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003697/0.1718, allocations: 96.12 kB / 487.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/0.1741, allocations: 2.243 MB / 489.7 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005006/0.1746, allocations: 79.55 kB / 489.7 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.72e-05/0.1747, allocations: 23.98 kB / 489.8 MB, free: 8.836 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003614/0.175, allocations: 281 kB / 490 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.137e-05/0.1751, allocations: 59.28 kB / 490.1 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.1764, allocations: 0.5471 MB / 490.6 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.1765, allocations: 4 kB / 490.6 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1765, allocations: 4 kB / 490.6 MB, free: 7.922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.1765, allocations: 3.984 kB / 490.6 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.1786, allocations: 1.205 MB / 491.9 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.1786, allocations: 7.938 kB / 491.9 MB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004835/0.1791, allocations: 91.94 kB / 491.9 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001107/0.1792, allocations: 36.78 kB / 492 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/0.1792, allocations: 8 kB / 492 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.1803, allocations: 1.366 MB / 493.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1803, allocations: 3.938 kB / 493.4 MB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.182, allocations: 0.884 MB / 494.2 MB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002059/0.1823, allocations: 172.3 kB / 494.4 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.488e-05/0.1823, allocations: 12 kB / 494.4 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004167/0.1828, allocations: 51.95 kB / 494.5 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.1829, allocations: 31.95 kB / 494.5 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.1829, allocations: 15.98 kB / 494.5 MB, free: 3.797 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005365/0.1835, allocations: 358.8 kB / 494.9 MB, free: 3.449 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1835, allocations: 0 / 494.9 MB, free: 3.449 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009017/0.1844, allocations: 251.3 kB / 495.1 MB, free: 3.203 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001502/0.1845, allocations: 110.2 kB / 495.2 MB, free: 3.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002125/0.1867, allocations: 1.176 MB / 496.4 MB, free: 1.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1867, allocations: 0 / 496.4 MB, free: 1.863 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000663/0.1874, allocations: 358.8 kB / 496.8 MB, free: 1.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007689/0.1881, allocations: 129.3 kB / 496.9 MB, free: 1.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/0.1906, allocations: 1.575 MB / 498.5 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005301/0.1912, allocations: 0.9023 MB / 499.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.1913, allocations: 35.44 kB / 499.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.463e-06/0.1914, allocations: 0 / 499.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of Templates: time 0.01552/0.2069, allocations: 9.487 MB / 0.497 GB, free: 5.32 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1CalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1CalcHelperMain.o] Error 1