Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008946/0.0008947, allocations: 96.23 kB / 16.95 MB, free: 5.652 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.0007946/0.0007946, allocations: 186.9 kB / 17.85 MB, free: 5.309 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.333/1.333, allocations: 223.2 MB / 241.9 MB, free: 356 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1671/0.1671, allocations: 38.1 MB / 331.1 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002957, allocations: 8 kB / 400.7 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.11, allocations: 59.17 MB / 459.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005226/0.1153, allocations: 4.7 MB / 464.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003092/0.1184, allocations: 2.428 MB / 467 MB, free: 268 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002322/0.1187, allocations: 19.88 kB / 467 MB, free: 248 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002363/0.1189, allocations: 79.39 kB / 467.1 MB, free: 168 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009209/0.1198, allocations: 422.3 kB / 467.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.1204, allocations: 199.5 kB / 467.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008547/0.1212, allocations: 0.8957 MB / 468.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009473/0.1222, allocations: 0.5383 MB / 469.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003679/0.1226, allocations: 258.8 kB / 469.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003913/0.123, allocations: 310.9 kB / 469.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.146e-05/0.123, allocations: 20 kB / 469.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000627/0.1236, allocations: 343.1 kB / 470 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001617/0.1238, allocations: 179.5 kB / 470.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.1239, allocations: 109.5 kB / 470.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005454/0.1245, allocations: 0.5376 MB / 470.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1245, allocations: 0 / 470.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1245, allocations: 4 kB / 470.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1245, allocations: 0 / 470.9 MB, free: 12.36 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0009744/0.1255, allocations: 0.698 MB / 471.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.1255, allocations: 8.031 kB / 471.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001482/0.127, allocations: 203.1 kB / 471.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004427/0.1275, allocations: 349.3 kB / 472.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.1275, allocations: 36.95 kB / 472.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.643e-05/0.1276, allocations: 43.89 kB / 472.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008866/0.1285, allocations: 0.6224 MB / 472.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.1285, allocations: 4 kB / 472.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.1286, allocations: 16 kB / 472.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.735e-05/0.1286, allocations: 32.98 kB / 472.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008614/0.1295, allocations: 0.605 MB / 473.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002927/0.1324, allocations: 2.265 MB / 475.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006299/0.1331, allocations: 482.9 kB / 476.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003171/0.1334, allocations: 233.7 kB / 476.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.1335, allocations: 15.88 kB / 476.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.1335, allocations: 42.5 kB / 476.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.814e-06/0.1335, allocations: 0 / 476.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003204/0.1367, allocations: 1.701 MB / 478.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.1368, allocations: 81.11 kB / 478.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000279/0.1371, allocations: 282.9 kB / 478.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.1371, allocations: 33.7 kB / 478.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1373, allocations: 224 kB / 478.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.1374, allocations: 157.9 kB / 479 MB, free: 3.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/0.1374, allocations: 12 kB / 479 MB, free: 3.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1375, allocations: 338.8 kB / 479.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.1378, allocations: 181 kB / 479.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/0.1381, allocations: 290.3 kB / 479.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000314/0.1384, allocations: 223.8 kB / 480 MB, free: 2.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1385, allocations: 0 / 480 MB, free: 2.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001127/0.1396, allocations: 0.6771 MB / 480.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1396, allocations: 8 kB / 480.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1396, allocations: 0 / 480.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005501/0.1402, allocations: 177 kB / 480.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003486/0.1405, allocations: 95.81 kB / 480.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003206/0.1438, allocations: 2.543 MB / 483.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002491/0.144, allocations: 19.98 kB / 483.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.875e-05/0.1441, allocations: 23.98 kB / 483.5 MB, free: 15.1 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002435/0.1443, allocations: 189.7 kB / 483.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.583e-05/0.1444, allocations: 39.53 kB / 483.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/0.1455, allocations: 0.6373 MB / 484.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1455, allocations: 4 kB / 484.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.1455, allocations: 0 / 484.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.1456, allocations: 3.984 kB / 484.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.1476, allocations: 1.344 MB / 485.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.1476, allocations: 4 kB / 485.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003337/0.148, allocations: 79.95 kB / 485.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004157/0.1484, allocations: 148.6 kB / 486 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.1484, allocations: 11.98 kB / 486 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002605/0.151, allocations: 2.307 MB / 488.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.1511, allocations: 11.97 kB / 488.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.1524, allocations: 0.9485 MB / 489.2 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.1526, allocations: 116.6 kB / 489.3 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.673e-05/0.1526, allocations: 12 kB / 489.4 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.1528, allocations: 8 kB / 489.4 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.733e-05/0.1529, allocations: 43.89 kB / 489.4 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.1529, allocations: 12 kB / 489.4 MB, free: 8.906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002075/0.1531, allocations: 197.9 kB / 489.6 MB, free: 8.715 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1531, allocations: 0 / 489.6 MB, free: 8.715 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006608/0.1538, allocations: 140 kB / 489.7 MB, free: 8.578 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001464/0.154, allocations: 103.2 kB / 489.8 MB, free: 8.465 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.1552, allocations: 0.6626 MB / 490.5 MB, free: 7.789 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1552, allocations: 0 / 490.5 MB, free: 7.789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006346/0.1558, allocations: 431.3 kB / 490.9 MB, free: 7.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004734/0.1563, allocations: 59.86 kB / 491 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.1582, allocations: 1.399 MB / 492.4 MB, free: 5.859 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.1587, allocations: 0.8749 MB / 493.3 MB, free: 4.961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.1588, allocations: 39.44 kB / 493.3 MB, free: 4.922 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1589, allocations: 0 / 493.3 MB, free: 4.922 MB / 366.1 MB Notification: Performance of Templates: time 0.009521/0.1684, allocations: 6.846 MB / 0.4884 GB, free: 14.07 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2CalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.o] Error 1