Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008929/0.0008929, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.0008613/0.0008613, allocations: 198.9 kB / 18.08 MB, free: 5.285 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.185/1.185, allocations: 205.1 MB / 223.9 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1568/0.1568, allocations: 37.99 MB / 309.3 MB, free: 6.227 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.001192/0.001192, allocations: 67.03 kB / 375.3 MB, free: 4.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1861, allocations: 55.24 MB / 430.5 MB, free: 19.78 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003749/0.1899, allocations: 3.57 MB / 434.1 MB, free: 16.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.1914, allocations: 1.318 MB / 435.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001914/0.1916, allocations: 11.94 kB / 435.4 MB, free: 14.85 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005215/0.1921, allocations: 147.5 kB / 435.6 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003575/0.1925, allocations: 171.2 kB / 435.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.1927, allocations: 119.7 kB / 435.8 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.193, allocations: 386.9 kB / 436.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1933, allocations: 106 kB / 436.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.1935, allocations: 111.5 kB / 436.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001461/0.1936, allocations: 111.5 kB / 436.5 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.1937, allocations: 12 kB / 436.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003443/0.194, allocations: 279.3 kB / 436.8 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.312e-05/0.1941, allocations: 67.73 kB / 436.9 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.757e-05/0.1942, allocations: 87.48 kB / 437 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.1944, allocations: 215.5 kB / 437.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1944, allocations: 4 kB / 437.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1944, allocations: 4 kB / 437.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.1945, allocations: 0 / 437.2 MB, free: 13.07 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004859/0.1949, allocations: 0.4912 MB / 437.7 MB, free: 12.53 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.195, allocations: 8.031 kB / 437.7 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006161/0.1956, allocations: 76.58 kB / 437.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.1958, allocations: 255.8 kB / 438 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.1959, allocations: 16.7 kB / 438 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.344e-05/0.1959, allocations: 24.27 kB / 438.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.1962, allocations: 264.1 kB / 438.3 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.1962, allocations: 7.922 kB / 438.3 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.1963, allocations: 15.92 kB / 438.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.1963, allocations: 12.27 kB / 438.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002696/0.1966, allocations: 224.1 kB / 438.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.1977, allocations: 1.198 MB / 439.8 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.1979, allocations: 141.2 kB / 439.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.777e-05/0.198, allocations: 53.38 kB / 440 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.198, allocations: 0 / 440 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.198, allocations: 38.56 kB / 440 MB, free: 10.03 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.198, allocations: 0 / 440 MB, free: 10.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.000264/0.1983, allocations: 165.3 kB / 440.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/0.1983, allocations: 77.11 kB / 440.2 MB, free: 9.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.1985, allocations: 210.9 kB / 440.4 MB, free: 9.551 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.257e-06/0.1985, allocations: 29.83 kB / 440.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.1985, allocations: 151.9 kB / 440.6 MB, free: 9.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.1986, allocations: 47.38 kB / 440.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.85e-05/0.1986, allocations: 45.61 kB / 440.7 MB, free: 9.262 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.439e-05/0.1987, allocations: 330.8 kB / 441 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.245e-05/0.1987, allocations: 39.98 kB / 441.1 MB, free: 8.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.958e-05/0.1988, allocations: 127.6 kB / 441.2 MB, free: 8.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.199, allocations: 186 kB / 441.4 MB, free: 8.512 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.199, allocations: 4 kB / 441.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002246/0.1992, allocations: 201.2 kB / 441.6 MB, free: 8.305 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.1992, allocations: 8 kB / 441.6 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1993, allocations: 0 / 441.6 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1993, allocations: 7.938 kB / 441.6 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.1995, allocations: 55.91 kB / 441.6 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005556/0.2001, allocations: 1.326 MB / 443 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.2002, allocations: 23.75 kB / 443 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.2002, allocations: 8 kB / 443 MB, free: 6.746 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.58e-05/0.2003, allocations: 149.9 kB / 443.1 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.2003, allocations: 19.75 kB / 443.2 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001723/0.2005, allocations: 139 kB / 443.3 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2005, allocations: 4 kB / 443.3 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.2005, allocations: 3.984 kB / 443.3 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.2005, allocations: 0 / 443.3 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.201, allocations: 0.4959 MB / 443.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.201, allocations: 0 / 443.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.2012, allocations: 27.98 kB / 443.8 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2012, allocations: 3.938 kB / 443.8 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.2012, allocations: 4 kB / 443.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004645/0.2017, allocations: 1.317 MB / 445.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2017, allocations: 4.031 kB / 445.2 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002268/0.2019, allocations: 304.5 kB / 445.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.349e-05/0.2019, allocations: 100.9 kB / 445.6 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.202, allocations: 7.984 kB / 445.6 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.863e-05/0.2021, allocations: 3.938 kB / 445.6 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.759e-05/0.2021, allocations: 11.98 kB / 445.6 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.2021, allocations: 7.938 kB / 445.6 MB, free: 3.906 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.247e-05/0.2022, allocations: 156.3 kB / 445.7 MB, free: 3.754 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2022, allocations: 4.062 kB / 445.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.2025, allocations: 43.91 kB / 445.8 MB, free: 3.707 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 7.52e-05/0.2026, allocations: 102.8 kB / 445.9 MB, free: 3.602 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002489/0.2028, allocations: 127.8 kB / 446 MB, free: 3.477 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2029, allocations: 0.6875 kB / 446 MB, free: 3.477 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.203, allocations: 63.95 kB / 446.1 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/0.2033, allocations: 32.5 kB / 446.1 MB, free: 3.383 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007566/0.2041, allocations: 0.6179 MB / 446.7 MB, free: 2.723 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001405/0.2043, allocations: 0.74 MB / 447.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/0.2043, allocations: 19.44 kB / 447.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2043, allocations: 0 / 447.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of Templates: time 0.004036/0.2084, allocations: 3.011 MB / 450.5 MB, free: 14.92 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTestCalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTestCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTestCalcHelperMain.o] Error 1