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.0008339/0.0008345, allocations: 90.64 kB / 16.95 MB, free: 5.297 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.0009197/0.0009198, allocations: 185.7 kB / 17.85 MB, free: 4.934 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.604/1.604, allocations: 205.4 MB / 224 MB, free: 13.14 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1725/0.1725, allocations: 38.05 MB / 310.3 MB, free: 6.023 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.000513/0.000513, allocations: 15.12 kB / 377.1 MB, free: 3.094 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.353, allocations: 56.34 MB / 433.5 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005844/0.359, allocations: 5.496 MB / 439 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004072/0.3631, allocations: 2.682 MB / 441.7 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000691/0.3638, allocations: 35.75 kB / 441.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005059/0.3643, allocations: 115.1 kB / 441.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009737/0.3653, allocations: 390 kB / 442.2 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009904/0.3663, allocations: 339.4 kB / 442.5 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008718/0.3672, allocations: 1.076 MB / 443.6 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009106/0.3681, allocations: 0.6404 MB / 444.2 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/0.3685, allocations: 334.5 kB / 444.6 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.3689, allocations: 358.4 kB / 444.9 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.823e-05/0.369, allocations: 28 kB / 444.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005031/0.3695, allocations: 263.3 kB / 445.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.3697, allocations: 175.4 kB / 445.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.3698, allocations: 149.3 kB / 445.5 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005911/0.3704, allocations: 0.7949 MB / 446.3 MB, free: 5.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.3704, allocations: 0 / 446.3 MB, free: 5.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3704, allocations: 4 kB / 446.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.3704, allocations: 0 / 446.3 MB, free: 5.906 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.001603/0.372, allocations: 0.9965 MB / 447.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.3721, allocations: 12.03 kB / 447.3 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.3731, allocations: 182.9 kB / 447.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007108/0.3738, allocations: 0.5199 MB / 448 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.188e-05/0.3739, allocations: 49.3 kB / 448.1 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.926e-05/0.374, allocations: 55.98 kB / 448.1 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/0.3751, allocations: 0.7982 MB / 448.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.3752, allocations: 3.984 kB / 448.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.437e-05/0.3752, allocations: 24 kB / 448.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.292e-05/0.3753, allocations: 37.25 kB / 449 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.3765, allocations: 0.7584 MB / 449.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003595/0.3801, allocations: 2.939 MB / 452.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.3814, allocations: 0.6119 MB / 453.3 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007098/0.3821, allocations: 370.8 kB / 453.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.22e-05/0.3822, allocations: 16.38 kB / 453.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007793/0.383, allocations: 438.3 kB / 454.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.685e-06/0.383, allocations: 0 / 454.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.004268/0.3873, allocations: 2.195 MB / 456.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.756e-05/0.3874, allocations: 115.4 kB / 456.4 MB, free: 11.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006941/0.3881, allocations: 486 kB / 456.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.383e-05/0.3882, allocations: 33.7 kB / 456.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.3884, allocations: 312.5 kB / 457.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.3886, allocations: 197.2 kB / 457.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.395e-05/0.3886, allocations: 16.03 kB / 457.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.3888, allocations: 374.7 kB / 457.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005659/0.3894, allocations: 293.1 kB / 458.1 MB, free: 9.711 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006709/0.3901, allocations: 422.9 kB / 458.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006363/0.3907, allocations: 359.8 kB / 458.8 MB, free: 8.895 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3907, allocations: 4 kB / 458.8 MB, free: 8.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002167/0.3929, allocations: 1.056 MB / 459.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001911/0.3931, allocations: 211.3 kB / 460.1 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.3931, allocations: 4 kB / 460.1 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007364/0.3939, allocations: 217.5 kB / 460.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004951/0.3944, allocations: 123.8 kB / 460.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004722/0.3991, allocations: 3.839 MB / 464.3 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005595/0.3997, allocations: 75.94 kB / 464.4 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-05/0.3998, allocations: 23.98 kB / 464.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.3998, allocations: 4 kB / 464.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001708/0.4015, allocations: 0.8869 MB / 465.3 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.4015, allocations: 4 kB / 465.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004957/0.402, allocations: 165.7 kB / 465.4 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.4025, allocations: 124 kB / 465.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003709/0.4062, allocations: 3.622 MB / 469.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005186/0.4067, allocations: 60 kB / 469.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-05/0.4068, allocations: 23.98 kB / 469.3 MB, free: 13.84 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,$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.0005034/0.4073, allocations: 305 kB / 469.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.596e-05/0.4074, allocations: 63.19 kB / 469.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.4091, allocations: 0.8501 MB / 470.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.4092, allocations: 4 kB / 470.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.4092, allocations: 4 kB / 470.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.4092, allocations: 3.984 kB / 470.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002749/0.4119, allocations: 1.71 MB / 472.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.412, allocations: 3.984 kB / 472.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005649/0.4125, allocations: 131.8 kB / 472.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002159/0.4128, allocations: 65.86 kB / 472.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.682e-05/0.4128, allocations: 16 kB / 472.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/0.4149, allocations: 2.693 MB / 475.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.4149, allocations: 8.094 kB / 475.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.4171, allocations: 1.348 MB / 476.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.4174, allocations: 188.3 kB / 476.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.042e-05/0.4175, allocations: 15.98 kB / 476.7 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004464/0.4179, allocations: 63.94 kB / 476.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.4181, allocations: 56.44 kB / 476.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-05/0.4181, allocations: 20 kB / 476.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005493/0.4187, allocations: 342.8 kB / 477.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4187, allocations: 4 kB / 477.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001051/0.4197, allocations: 256 kB / 477.4 MB, free: 5.273 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 (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.0001909/0.4199, allocations: 131 kB / 477.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0031/0.4231, allocations: 1.778 MB / 479.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.4231, allocations: 0 / 479.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.4241, allocations: 0.6181 MB / 479.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008006/0.4249, allocations: 126.4 kB / 480 MB, free: 2.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/0.428, allocations: 1.852 MB / 481.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006925/0.4287, allocations: 0.9548 MB / 482.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.429, allocations: 51.42 kB / 482.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.429, allocations: 0 / 482.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of Templates: time 0.01863/0.4476, allocations: 14 MB / 496.9 MB, free: 1.566 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile make -j1 -f PowerSystems_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_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