Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 109.7 kB / 17.16 MB, free: 6.328 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.001006/0.001006, allocations: 202.9 kB / 18.08 MB, free: 5.422 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.408/1.408, allocations: 222.9 MB / 241.7 MB, free: 13.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1776/0.1776, allocations: 38.02 MB / 329.9 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001048, allocations: 55.89 kB / 398.7 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1171, allocations: 58.08 MB / 456.8 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.009814/0.1269, allocations: 8.682 MB / 465.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006061/0.133, allocations: 3.385 MB / 468.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009107/0.134, allocations: 51.69 kB / 468.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002029/0.136, allocations: 0.7292 MB / 469.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001735/0.1378, allocations: 0.6342 MB / 470.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009155/0.1387, allocations: 323.5 kB / 470.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.1407, allocations: 2.015 MB / 472.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009211/0.1416, allocations: 0.7011 MB / 473.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005737/0.1422, allocations: 481.9 kB / 473.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007916/0.143, allocations: 0.6658 MB / 474.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.1431, allocations: 60 kB / 474.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008623/0.144, allocations: 483.1 kB / 475 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004052/0.1444, allocations: 442.8 kB / 475.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004558/0.1449, allocations: 497.5 kB / 475.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009615/0.1458, allocations: 1.068 MB / 477 MB, free: 4.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1458, allocations: 0 / 477 MB, free: 4.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1459, allocations: 0 / 477 MB, free: 4.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1459, allocations: 0 / 477 MB, free: 4.277 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002116/0.148, allocations: 1.266 MB / 478.2 MB, free: 2.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.148, allocations: 12.03 kB / 478.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00116/0.1492, allocations: 207.5 kB / 478.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.1504, allocations: 0.6787 MB / 479.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.194e-05/0.1505, allocations: 58.38 kB / 479.2 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002077/0.1507, allocations: 111.8 kB / 479.3 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.1522, allocations: 1.115 MB / 480.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.1522, allocations: 0 / 480.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.477e-05/0.1523, allocations: 32 kB / 480.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001563/0.1525, allocations: 73.95 kB / 480.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.1537, allocations: 0.8899 MB / 481.4 MB, free: 15.7 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004767/0.1585, allocations: 4.085 MB / 485.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.1591, allocations: 420.5 kB / 485.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003677/0.1595, allocations: 265.6 kB / 486.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.542e-05/0.1595, allocations: 19.86 kB / 486.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.1596, allocations: 34.56 kB / 486.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 1.713e-06/0.1596, allocations: 0 / 486.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.004018/0.1636, allocations: 1.988 MB / 488.2 MB, free: 8.582 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.1637, allocations: 89.53 kB / 488.3 MB, free: 8.477 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005999/0.1643, allocations: 0.5615 MB / 488.8 MB, free: 7.906 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.1643, allocations: 33.83 kB / 488.9 MB, free: 7.867 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/0.1647, allocations: 478.4 kB / 489.3 MB, free: 7.391 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.1648, allocations: 189.3 kB / 489.5 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.165, allocations: 146.6 kB / 489.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.1652, allocations: 382.7 kB / 490 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.1656, allocations: 269.8 kB / 490.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005633/0.1662, allocations: 0.5004 MB / 490.8 MB, free: 5.801 MB / 366.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.00296/0.1692, allocations: 1.415 MB / 492.2 MB, free: 4.285 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1692, allocations: 4 kB / 492.2 MB, free: 4.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001728/0.1709, allocations: 1.091 MB / 493.3 MB, free: 3.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.1709, allocations: 12.03 kB / 493.3 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001142/0.1721, allocations: 0.7567 MB / 494.1 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005128/0.1726, allocations: 158.5 kB / 494.2 MB, free: 2.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005633/0.1732, allocations: 175.7 kB / 494.4 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003619/0.1768, allocations: 4.499 MB / 498.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005119/0.1773, allocations: 40.09 kB / 499 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.094e-05/0.1774, allocations: 39.98 kB / 499 MB, free: 13.04 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005051/0.1779, allocations: 317.4 kB / 499.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.178, allocations: 67.16 kB / 499.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.1791, allocations: 0.6433 MB / 0.4883 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.1791, allocations: 8 kB / 0.4883 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.1791, allocations: 0 / 0.4883 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.1791, allocations: 3.984 kB / 0.4883 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.1813, allocations: 1.514 MB / 0.4898 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.1813, allocations: 7.984 kB / 0.4898 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005623/0.1819, allocations: 119.9 kB / 0.4899 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1819, allocations: 4 kB / 0.4899 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/0.182, allocations: 20.11 kB / 0.4899 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.182, allocations: 8 kB / 0.4899 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.182, allocations: 11.92 kB / 0.4899 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.1831, allocations: 0.9474 MB / 0.4909 GB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000218/0.1834, allocations: 184.2 kB / 0.491 GB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.491e-05/0.1835, allocations: 19.88 kB / 0.4911 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003019/0.1838, allocations: 23.98 kB / 0.4911 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.1838, allocations: 32.39 kB / 0.4911 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.1839, allocations: 20.11 kB / 0.4911 GB, free: 8.953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004405/0.1843, allocations: 411 kB / 0.4915 GB, free: 8.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1843, allocations: 0 / 0.4915 GB, free: 8.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00079/0.1851, allocations: 232 kB / 0.4918 GB, free: 8.324 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * 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 (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002835/0.1854, allocations: 143 kB / 0.4919 GB, free: 8.176 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.1869, allocations: 1.008 MB / 0.4929 GB, free: 7.129 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.1869, allocations: 4.062 kB / 0.4929 GB, free: 7.125 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003539/0.1873, allocations: 274.2 kB / 0.4931 GB, free: 6.852 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007386/0.188, allocations: 147.2 kB / 0.4933 GB, free: 6.707 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.1911, allocations: 2.399 MB / 0.4956 GB, free: 4.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000646/0.1918, allocations: 1.082 MB / 0.4967 GB, free: 3.148 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.192, allocations: 67.42 kB / 0.4967 GB, free: 3.082 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.192, allocations: 0 / 0.4967 GB, free: 3.082 MB / 382.1 MB Notification: Performance of Templates: time 0.01759/0.2096, allocations: 15.26 MB / 0.5116 GB, free: 3.836 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngleCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngleCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngleCalcHelperMain.o] Error 1