Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001059/0.001059, allocations: 93.47 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.001212/0.001212, allocations: 175.4 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.747/1.747, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2136/0.2136, allocations: 38.05 MB / 310.7 MB, free: 5.922 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007498/0.0007501, allocations: 12 kB / 377.8 MB, free: 2.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3062, allocations: 56.33 MB / 434.1 MB, free: 18.69 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.00565/0.3119, allocations: 5.82 MB / 440 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00401/0.316, allocations: 2.813 MB / 442.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000544/0.3165, allocations: 35.81 kB / 442.8 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004581/0.317, allocations: 103.2 kB / 442.9 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008906/0.3179, allocations: 426.3 kB / 443.3 MB, free: 9.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008434/0.3188, allocations: 414.8 kB / 443.7 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008806/0.3197, allocations: 1.267 MB / 445 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000935/0.3206, allocations: 0.7259 MB / 445.7 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003515/0.321, allocations: 318.4 kB / 446 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003815/0.3214, allocations: 378.2 kB / 446.4 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.272e-05/0.3214, allocations: 24 kB / 446.4 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006862/0.3221, allocations: 0.5612 MB / 447 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.3223, allocations: 183.3 kB / 447.2 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002534/0.3225, allocations: 339.8 kB / 447.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000614/0.3232, allocations: 0.8065 MB / 448.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3232, allocations: 0 / 448.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3232, allocations: 0 / 448.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.3232, allocations: 4 kB / 448.3 MB, free: 4.426 MB / 318.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.001745/0.325, allocations: 0.985 MB / 449.3 MB, free: 3.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.325, allocations: 12.03 kB / 449.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/0.3261, allocations: 187.8 kB / 449.5 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000748/0.3269, allocations: 0.5481 MB / 450 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.3269, allocations: 37.69 kB / 450.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.375e-05/0.327, allocations: 64.28 kB / 450.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.3282, allocations: 0.8061 MB / 450.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.3282, allocations: 0 / 450.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-05/0.3283, allocations: 20 kB / 451 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.22e-05/0.3284, allocations: 33.3 kB / 451 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.3296, allocations: 0.7701 MB / 451.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004113/0.3338, allocations: 2.935 MB / 454.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001421/0.3352, allocations: 0.6274 MB / 455.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007294/0.336, allocations: 370.8 kB / 455.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.964e-05/0.336, allocations: 12.42 kB / 455.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009066/0.337, allocations: 442.2 kB / 456.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.244e-06/0.337, allocations: 0 / 456.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.004473/0.3415, allocations: 2.202 MB / 458.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.729e-05/0.3415, allocations: 111.4 kB / 458.4 MB, free: 9.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006585/0.3422, allocations: 493.9 kB / 458.9 MB, free: 9.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.422e-05/0.3423, allocations: 37.7 kB / 459 MB, free: 9.355 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002471/0.3425, allocations: 316.4 kB / 459.3 MB, free: 9.039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.3427, allocations: 197.1 kB / 459.5 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.142e-05/0.3428, allocations: 49.69 kB / 459.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.343, allocations: 378.8 kB / 459.9 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006058/0.3436, allocations: 297.1 kB / 460.2 MB, free: 8.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006693/0.3443, allocations: 422.9 kB / 460.6 MB, free: 7.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.3456, allocations: 0.7498 MB / 461.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.3456, allocations: 7.938 kB / 461.3 MB, free: 6.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002125/0.3477, allocations: 1.067 MB / 462.4 MB, free: 5.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.3479, allocations: 219.4 kB / 462.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3479, allocations: 0 / 462.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006243/0.3485, allocations: 189.6 kB / 462.8 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004786/0.349, allocations: 119.8 kB / 462.9 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004373/0.3534, allocations: 3.864 MB / 466.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005324/0.3539, allocations: 71.98 kB / 466.9 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/0.354, allocations: 20 kB / 466.9 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.215e-06/0.354, allocations: 4 kB / 466.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00173/0.3558, allocations: 0.8908 MB / 467.8 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3558, allocations: 4 kB / 467.8 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004713/0.3563, allocations: 165.5 kB / 467.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.3567, allocations: 124 kB / 468.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003458/0.3602, allocations: 3.619 MB / 471.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005312/0.3607, allocations: 64.05 kB / 471.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.395e-05/0.3608, allocations: 23.98 kB / 471.8 MB, free: 11.8 MB / 350.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.0004344/0.3612, allocations: 301.5 kB / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.861e-05/0.3613, allocations: 59.28 kB / 472.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.3631, allocations: 0.8539 MB / 473 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.3631, allocations: 4 kB / 473 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3631, allocations: 4 kB / 473 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.3632, allocations: 11.86 kB / 473 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.366, allocations: 1.71 MB / 474.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.366, allocations: 4 kB / 474.7 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.3666, allocations: 131.8 kB / 474.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002341/0.3669, allocations: 73.8 kB / 474.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.293e-05/0.3669, allocations: 15.98 kB / 474.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002064/0.369, allocations: 2.689 MB / 477.6 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.369, allocations: 12.12 kB / 477.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002318/0.3713, allocations: 1.349 MB / 479 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000264/0.3716, allocations: 188.3 kB / 479.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.325e-05/0.3717, allocations: 16 kB / 479.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004732/0.3722, allocations: 67.92 kB / 479.2 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.3723, allocations: 52.44 kB / 479.3 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.643e-05/0.3724, allocations: 23.92 kB / 479.3 MB, free: 3.809 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005218/0.3729, allocations: 342.8 kB / 479.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3729, allocations: 4 kB / 479.7 MB, free: 3.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001116/0.3741, allocations: 260 kB / 479.9 MB, free: 3.219 MB / 350.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.0001817/0.3742, allocations: 122.6 kB / 480 MB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003015/0.3773, allocations: 1.782 MB / 481.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.3773, allocations: 3.938 kB / 481.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.3784, allocations: 0.622 MB / 482.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008857/0.3793, allocations: 138.1 kB / 482.6 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/0.3823, allocations: 1.934 MB / 484.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006153/0.3829, allocations: 0.947 MB / 485.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.3831, allocations: 55.42 kB / 485.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3832, allocations: 0 / 485.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of Templates: time 0.01768/0.4008, allocations: 13.97 MB / 499.5 MB, free: 15.45 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile make -j1 -f PowerSystems_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_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2CalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2CalcHelperMain.o] Error 1