Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001023, allocations: 93.41 kB / 17.31 MB, free: 6.535 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.0008419/0.0008424, allocations: 175.5 kB / 18.21 MB, free: 5.684 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.481/1.481, allocations: 223.3 MB / 242.2 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1818/0.1818, allocations: 38.09 MB / 331.5 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003411/0.0003415, allocations: 8 kB / 401.4 MB, free: 34.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1337, allocations: 59.17 MB / 460.5 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.007089/0.1408, allocations: 5.808 MB / 466.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004763/0.1456, allocations: 2.743 MB / 469.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007284/0.1464, allocations: 35.81 kB / 469.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000493/0.1469, allocations: 107.2 kB / 469.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.148, allocations: 418.2 kB / 469.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.1491, allocations: 419.3 kB / 470 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001225/0.1503, allocations: 1.263 MB / 471.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.1514, allocations: 0.7337 MB / 472 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004679/0.1519, allocations: 322.4 kB / 472.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004662/0.1524, allocations: 374.2 kB / 472.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.127e-05/0.1525, allocations: 28 kB / 472.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008839/0.1534, allocations: 0.5612 MB / 473.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002037/0.1536, allocations: 183.3 kB / 473.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002932/0.1539, allocations: 343.7 kB / 473.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007483/0.1546, allocations: 0.8027 MB / 474.6 MB, free: 8.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1546, allocations: 3.938 kB / 474.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1547, allocations: 0 / 474.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.1547, allocations: 0 / 474.6 MB, free: 8.883 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.00198/0.1567, allocations: 0.9812 MB / 475.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.1567, allocations: 12.03 kB / 475.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.1579, allocations: 187.8 kB / 475.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008569/0.1588, allocations: 0.5404 MB / 476.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.1588, allocations: 41.69 kB / 476.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.1589, allocations: 60.28 kB / 476.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.1605, allocations: 0.8022 MB / 477.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.1605, allocations: 4 kB / 477.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/0.1606, allocations: 20 kB / 477.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.263e-05/0.1607, allocations: 41.3 kB / 477.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.1622, allocations: 0.7623 MB / 478.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004249/0.1664, allocations: 2.935 MB / 481 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.1679, allocations: 0.6128 MB / 481.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006995/0.1686, allocations: 374.8 kB / 482 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.716e-05/0.1687, allocations: 8.438 kB / 482 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008046/0.1695, allocations: 438.3 kB / 482.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.144e-06/0.1695, allocations: 0 / 482.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.004512/0.174, allocations: 2.206 MB / 484.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.506e-05/0.1741, allocations: 107.4 kB / 484.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006932/0.1748, allocations: 493.9 kB / 485.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-05/0.1749, allocations: 33.7 kB / 485.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.1751, allocations: 312.5 kB / 485.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001653/0.1753, allocations: 193.2 kB / 485.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.1754, allocations: 57.69 kB / 485.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1756, allocations: 362.8 kB / 486.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006366/0.1762, allocations: 305.1 kB / 486.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007588/0.177, allocations: 426.8 kB / 486.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.1784, allocations: 0.7652 MB / 487.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1784, allocations: 7.938 kB / 487.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002298/0.1807, allocations: 1.06 MB / 488.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000146/0.1809, allocations: 211.3 kB / 488.9 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1809, allocations: 8 kB / 488.9 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006468/0.1815, allocations: 181.6 kB / 489.1 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.1821, allocations: 127.8 kB / 489.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004738/0.1868, allocations: 3.852 MB / 493.1 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000598/0.1874, allocations: 64 kB / 493.1 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.363e-05/0.1875, allocations: 31.98 kB / 493.2 MB, free: 5.473 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.869e-06/0.1875, allocations: 6.5 kB / 493.2 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001801/0.1893, allocations: 0.8829 MB / 494 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1893, allocations: 4 kB / 494.1 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004903/0.1898, allocations: 177.7 kB / 494.2 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.1903, allocations: 115.9 kB / 494.3 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003633/0.194, allocations: 3.639 MB / 498 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006095/0.1946, allocations: 63.94 kB / 498 MB, free: 312 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.995e-05/0.1947, allocations: 23.98 kB / 498.1 MB, free: 288 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.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 (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0005573/0.1952, allocations: 305.1 kB / 498.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.1954, allocations: 63.19 kB / 498.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.1973, allocations: 0.8501 MB / 499.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.1973, allocations: 8 kB / 499.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.1973, allocations: 0 / 499.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.1973, allocations: 7.922 kB / 499.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.2003, allocations: 1.702 MB / 0.4893 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.2003, allocations: 0 / 0.4893 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006217/0.201, allocations: 144 kB / 0.4894 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002689/0.2012, allocations: 65.61 kB / 0.4895 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-05/0.2013, allocations: 16 kB / 0.4895 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/0.2036, allocations: 2.689 MB / 0.4921 GB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.2036, allocations: 3.938 kB / 0.4921 GB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002456/0.2061, allocations: 1.349 MB / 0.4934 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003159/0.2064, allocations: 192.6 kB / 0.4936 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.2065, allocations: 16 kB / 0.4936 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005461/0.2071, allocations: 63.92 kB / 0.4937 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.2073, allocations: 64.36 kB / 0.4937 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.442e-05/0.2073, allocations: 19.98 kB / 0.4938 GB, free: 8.297 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006171/0.208, allocations: 342.8 kB / 0.4941 GB, free: 7.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.208, allocations: 0 / 0.4941 GB, free: 7.965 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001184/0.2092, allocations: 267.9 kB / 0.4943 GB, free: 7.703 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002141/0.2094, allocations: 127 kB / 0.4945 GB, free: 7.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003338/0.2127, allocations: 1.782 MB / 0.4962 GB, free: 5.715 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.2127, allocations: 0 / 0.4962 GB, free: 5.715 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.2138, allocations: 0.6181 MB / 0.4968 GB, free: 5.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000925/0.2148, allocations: 109.9 kB / 0.4969 GB, free: 4.965 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003203/0.218, allocations: 1.931 MB / 0.4988 GB, free: 2.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006359/0.2186, allocations: 0.9391 MB / 0.4997 GB, free: 2.012 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.2188, allocations: 51.42 kB / 0.4998 GB, free: 1.961 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.2188, allocations: 4 kB / 0.4998 GB, free: 1.957 MB / 382.1 MB Notification: Performance of Templates: time 0.2628/0.4817, allocations: 13.9 MB / 0.5133 GB, free: 50.38 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2CalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2CalcHelperMain.o] Error 1