Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_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.0008321/0.0008318, allocations: 92.48 kB / 16.95 MB, free: 5.953 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.0008858/0.0008858, allocations: 176.8 kB / 17.84 MB, free: 5.617 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.311/1.311, allocations: 223.2 MB / 241.8 MB, free: 308 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1777/0.1777, allocations: 38.1 MB / 331.1 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004504/0.0004504, allocations: 8 kB / 400.7 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1105, allocations: 59.18 MB / 459.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.00372/0.1143, allocations: 3.072 MB / 462.9 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.1159, allocations: 1.202 MB / 464.1 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.116, allocations: 11.94 kB / 464.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.1162, allocations: 35.7 kB / 464.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003775/0.1166, allocations: 139.3 kB / 464.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.1168, allocations: 103.7 kB / 464.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000347/0.1171, allocations: 318.9 kB / 464.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004397/0.1176, allocations: 247 kB / 465 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.1178, allocations: 99.5 kB / 465.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.1179, allocations: 99.59 kB / 465.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.131e-05/0.1179, allocations: 12 kB / 465.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002089/0.1182, allocations: 111.7 kB / 465.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.623e-05/0.1182, allocations: 51.81 kB / 465.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.355e-05/0.1183, allocations: 61.58 kB / 465.4 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.1185, allocations: 207.5 kB / 465.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1186, allocations: 0 / 465.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1186, allocations: 3.938 kB / 465.6 MB, free: 1.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1186, allocations: 0 / 465.6 MB, free: 1.617 MB / 334.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.000682/0.1193, allocations: 470.9 kB / 466.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1193, allocations: 8.031 kB / 466.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006126/0.1199, allocations: 71.73 kB / 466.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002846/0.1202, allocations: 259.4 kB / 466.4 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.1203, allocations: 12.33 kB / 466.4 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.05e-05/0.1203, allocations: 23.89 kB / 466.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000429/0.1207, allocations: 275.9 kB / 466.7 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1208, allocations: 0 / 466.7 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.1208, allocations: 8 kB / 466.7 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.1208, allocations: 12.27 kB / 466.7 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003667/0.1212, allocations: 224.3 kB / 466.9 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.1227, allocations: 1.214 MB / 468.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.1229, allocations: 129.2 kB / 468.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.13e-05/0.123, allocations: 49.77 kB / 468.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.123, allocations: 0 / 468.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.1231, allocations: 38.56 kB / 468.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.1231, allocations: 0 / 468.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003374/0.1234, allocations: 161.7 kB / 468.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/0.1235, allocations: 85.11 kB / 468.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.1237, allocations: 206.9 kB / 468.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.1237, allocations: 25.7 kB / 468.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.371e-05/0.1238, allocations: 155.9 kB / 469 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.1238, allocations: 43.34 kB / 469 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.816e-06/0.1238, allocations: 8.125 kB / 469 MB, free: 13.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.124, allocations: 330.8 kB / 469.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.119e-05/0.1241, allocations: 43.92 kB / 469.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.1242, allocations: 126.1 kB / 469.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.1243, allocations: 67.97 kB / 469.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1243, allocations: 0 / 469.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002779/0.1246, allocations: 205.1 kB / 469.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.1246, allocations: 8 kB / 469.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.1246, allocations: 0 / 469.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1247, allocations: 4 kB / 469.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002223/0.1249, allocations: 51.97 kB / 469.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009115/0.1258, allocations: 1.333 MB / 471.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.1259, allocations: 23.75 kB / 471.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.126, allocations: 16.14 kB / 471.2 MB, free: 11.52 MB / 350.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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.1261, allocations: 137.8 kB / 471.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.076e-05/0.1261, allocations: 23.73 kB / 471.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002254/0.1264, allocations: 142.9 kB / 471.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1264, allocations: 0 / 471.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1264, allocations: 4 kB / 471.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.1264, allocations: 3.953 kB / 471.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006251/0.127, allocations: 496 kB / 472 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1271, allocations: 0 / 472 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.1272, allocations: 27.98 kB / 472.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1272, allocations: 0 / 472.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.1272, allocations: 11.95 kB / 472.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000829/0.1281, allocations: 1.333 MB / 473.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1281, allocations: 0 / 473.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.1284, allocations: 309.5 kB / 473.7 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.494e-05/0.1285, allocations: 100.8 kB / 473.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.328e-05/0.1285, allocations: 3.953 kB / 473.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.887e-05/0.1286, allocations: 8 kB / 473.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.586e-05/0.1286, allocations: 7.984 kB / 473.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.1287, allocations: 4 kB / 473.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001299/0.1288, allocations: 148.6 kB / 474 MB, free: 8.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1288, allocations: 64 / 474 MB, free: 8.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003234/0.1291, allocations: 52 kB / 474 MB, free: 8.484 MB / 350.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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001173/0.1293, allocations: 99.12 kB / 474.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002787/0.1295, allocations: 127.8 kB / 474.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1296, allocations: 0.6875 kB / 474.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.1297, allocations: 64.03 kB / 474.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.1301, allocations: 27.92 kB / 474.3 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.1311, allocations: 0.6593 MB / 475 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.1315, allocations: 0.7401 MB / 475.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.398e-05/0.1315, allocations: 19.44 kB / 475.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1315, allocations: 0 / 475.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of Templates: time 0.004875/0.1364, allocations: 2.982 MB / 478.7 MB, free: 3.699 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTestCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTestCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTestCalcHelperMain.o] Error 1