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.0008144/0.0008144, allocations: 97.03 kB / 16.95 MB, free: 6.453 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.0007963/0.0007964, allocations: 179.2 kB / 17.84 MB, free: 6 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.388/1.388, allocations: 223.3 MB / 241.9 MB, free: 300 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1658/0.1658, allocations: 38.09 MB / 331.1 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.0003101, allocations: 8 kB / 400.7 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1225, allocations: 59.16 MB / 459.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.007467/0.1301, allocations: 5.496 MB / 465.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005452/0.1356, allocations: 2.623 MB / 468 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000671/0.1363, allocations: 31.81 kB / 468 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005446/0.1369, allocations: 127 kB / 468.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001062/0.138, allocations: 386 kB / 468.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.139, allocations: 342.5 kB / 468.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.1402, allocations: 1.068 MB / 469.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.1413, allocations: 0.6443 MB / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005073/0.1419, allocations: 326.5 kB / 470.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004793/0.1423, allocations: 362.4 kB / 471.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.325e-05/0.1424, allocations: 28 kB / 471.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005755/0.143, allocations: 267.3 kB / 471.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.1432, allocations: 175.4 kB / 471.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.1433, allocations: 149.3 kB / 471.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007796/0.1441, allocations: 0.7832 MB / 472.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.1441, allocations: 3.984 kB / 472.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1442, allocations: 0 / 472.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.1442, allocations: 0 / 472.6 MB, free: 10.56 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.001877/0.1461, allocations: 0.9927 MB / 473.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1461, allocations: 8.031 kB / 473.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001176/0.1473, allocations: 182.9 kB / 473.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000909/0.1482, allocations: 0.5277 MB / 474.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.787e-05/0.1483, allocations: 45.27 kB / 474.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.1484, allocations: 56 kB / 474.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.1499, allocations: 0.7981 MB / 475.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.1499, allocations: 4 kB / 475.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/0.15, allocations: 24 kB / 475.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.513e-05/0.15, allocations: 33.3 kB / 475.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.1515, allocations: 0.7584 MB / 476 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004258/0.1558, allocations: 2.946 MB / 479 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.1571, allocations: 0.6129 MB / 479.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006735/0.1578, allocations: 370.8 kB / 480 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.305e-05/0.1579, allocations: 4.438 kB / 480 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007689/0.1587, allocations: 438.2 kB / 480.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 4.758e-06/0.1587, allocations: 0 / 480.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.004342/0.163, allocations: 2.195 MB / 482.6 MB, free: 208 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.1631, allocations: 111.4 kB / 482.7 MB, free: 72 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007327/0.1639, allocations: 478.1 kB / 483.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.464e-05/0.1639, allocations: 37.7 kB / 483.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002748/0.1642, allocations: 320.4 kB / 483.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.1644, allocations: 197.1 kB / 483.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.382e-05/0.1645, allocations: 12 kB / 483.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.1647, allocations: 366.8 kB / 484.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/0.1652, allocations: 297.1 kB / 484.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000729/0.166, allocations: 418.9 kB / 484.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/0.1666, allocations: 367.8 kB / 485.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1666, allocations: 3.938 kB / 485.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002003/0.1686, allocations: 1.063 MB / 486.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.1688, allocations: 203.4 kB / 486.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.1688, allocations: 4 kB / 486.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006322/0.1694, allocations: 213.5 kB / 486.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004632/0.1699, allocations: 119.9 kB / 486.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004131/0.1741, allocations: 3.856 MB / 490.6 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005609/0.1747, allocations: 63.92 kB / 490.7 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.176e-05/0.1747, allocations: 20 kB / 490.7 MB, free: 7.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.1747, allocations: 4 kB / 490.7 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001644/0.1764, allocations: 0.8831 MB / 491.6 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.1764, allocations: 4 kB / 491.6 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004509/0.1769, allocations: 173.9 kB / 491.7 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004585/0.1773, allocations: 123.8 kB / 491.9 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003457/0.1808, allocations: 3.619 MB / 495.5 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005436/0.1814, allocations: 67.92 kB / 495.5 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.4e-05/0.1814, allocations: 24 kB / 495.6 MB, free: 2.492 MB / 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,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0004302/0.1819, allocations: 305.5 kB / 495.9 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.617e-05/0.182, allocations: 59.33 kB / 495.9 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001618/0.1836, allocations: 0.8539 MB / 496.8 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.1836, allocations: 4 kB / 496.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.1836, allocations: 7.953 kB / 496.8 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.1836, allocations: 3.984 kB / 496.8 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.1863, allocations: 1.695 MB / 498.5 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1863, allocations: 0 / 498.5 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005844/0.1869, allocations: 140 kB / 498.6 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002137/0.1871, allocations: 65.67 kB / 498.7 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.686e-05/0.1872, allocations: 15.98 kB / 498.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002077/0.1892, allocations: 2.693 MB / 0.4896 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.1893, allocations: 11.89 kB / 0.4897 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00313/0.1924, allocations: 1.337 MB / 0.491 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.1927, allocations: 196.3 kB / 0.4911 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.321e-05/0.1928, allocations: 19.98 kB / 0.4912 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000452/0.1933, allocations: 59.94 kB / 0.4912 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.1934, allocations: 56.48 kB / 0.4913 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.38e-05/0.1935, allocations: 19.98 kB / 0.4913 GB, free: 10.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000521/0.194, allocations: 338.8 kB / 0.4916 GB, free: 10.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.194, allocations: 0 / 0.4916 GB, free: 10.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001027/0.195, allocations: 260 kB / 0.4919 GB, free: 9.945 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001771/0.1952, allocations: 137.4 kB / 0.492 GB, free: 9.801 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0029/0.1981, allocations: 1.77 MB / 0.4937 GB, free: 7.957 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1982, allocations: 0 / 0.4937 GB, free: 7.957 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009516/0.1991, allocations: 0.6064 MB / 0.4943 GB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007525/0.1999, allocations: 128.7 kB / 0.4944 GB, free: 7.199 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.2026, allocations: 1.855 MB / 0.4963 GB, free: 5.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005737/0.2032, allocations: 0.9509 MB / 0.4972 GB, free: 4.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001844/0.2034, allocations: 47.42 kB / 0.4972 GB, free: 4.266 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2034, allocations: 0 / 0.4972 GB, free: 4.266 MB / 382.1 MB Notification: Performance of Templates: time 0.2146/0.418, allocations: 13.9 MB / 0.5108 GB, free: 51.95 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++ 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"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/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