Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009856/0.0009858, 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.0009438/0.0009438, 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.311/1.311, allocations: 222.9 MB / 241.7 MB, free: 13.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.164/0.164, allocations: 38.03 MB / 329.9 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 64.16 kB / 398.7 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1073, allocations: 58.05 MB / 456.8 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008319/0.1156, allocations: 7.798 MB / 464.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003258/0.1189, allocations: 2.042 MB / 466.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003871/0.1193, allocations: 55.69 kB / 466.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004704/0.1198, allocations: 143.1 kB / 466.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007669/0.1206, allocations: 402.2 kB / 467.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005539/0.1212, allocations: 311.6 kB / 467.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00159/0.1228, allocations: 2.007 MB / 469.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004018/0.1232, allocations: 328.2 kB / 469.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006227/0.1238, allocations: 0.5175 MB / 470.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007768/0.1246, allocations: 0.6581 MB / 471 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.1247, allocations: 52 kB / 471.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001462/0.1249, allocations: 56 kB / 471.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003446/0.1253, allocations: 375 kB / 471.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004108/0.1257, allocations: 430 kB / 471.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007245/0.1264, allocations: 0.9199 MB / 472.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1264, allocations: 0 / 472.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1264, allocations: 0 / 472.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.1264, allocations: 0 / 472.8 MB, free: 8.418 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002612/0.1291, allocations: 1.309 MB / 474.1 MB, free: 7.047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1291, allocations: 8.031 kB / 474.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.1293, allocations: 103.9 kB / 474.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.1305, allocations: 0.686 MB / 474.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004086/0.1309, allocations: 347 kB / 475.3 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.1311, allocations: 67.91 kB / 475.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002131/0.1332, allocations: 1.141 MB / 476.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.1332, allocations: 0 / 476.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-05/0.1333, allocations: 28 kB / 476.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.1334, allocations: 37.28 kB / 476.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002449/0.1359, allocations: 1.176 MB / 477.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004846/0.1407, allocations: 3.504 MB / 481.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002278/0.143, allocations: 0.9651 MB / 482.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/0.1446, allocations: 0.6826 MB / 482.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.368e-05/0.1446, allocations: 12.55 kB / 482.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001433/0.1461, allocations: 0.6849 MB / 483.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.575e-06/0.1461, allocations: 0 / 483.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.01747/0.1636, allocations: 5.659 MB / 489.2 MB, free: 7.594 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.393e-05/0.1637, allocations: 93.66 kB / 489.3 MB, free: 7.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006274/0.1643, allocations: 469.8 kB / 489.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.633e-05/0.1644, allocations: 41.7 kB / 489.8 MB, free: 6.965 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002687/0.1647, allocations: 324.2 kB / 490.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.1649, allocations: 205.1 kB / 490.3 MB, free: 6.438 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002469/0.1651, allocations: 126.3 kB / 490.5 MB, free: 6.309 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.1653, allocations: 374.8 kB / 490.8 MB, free: 5.934 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.1664, allocations: 0.5012 MB / 491.3 MB, free: 5.434 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.1676, allocations: 0.6335 MB / 492 MB, free: 4.754 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006991/0.1746, allocations: 3.129 MB / 495.1 MB, free: 1.547 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.269e-06/0.1746, allocations: 8 kB / 495.1 MB, free: 1.539 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007148/0.1818, allocations: 2.49 MB / 497.6 MB, free: 15.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.957e-05/0.1818, allocations: 53.69 kB / 497.6 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.1819, allocations: 8.203 kB / 497.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002213/0.1841, allocations: 1.09 MB / 498.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004549/0.1846, allocations: 111.8 kB / 498.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.1982, allocations: 6.291 MB / 0.4933 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007739/0.199, allocations: 87.95 kB / 0.4934 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.453e-05/0.1991, allocations: 51.78 kB / 0.4934 GB, free: 7.207 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: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004638/0.1995, allocations: 275.4 kB / 0.4937 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.787e-05/0.1996, allocations: 59.25 kB / 0.4938 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007211/0.2069, allocations: 2.429 MB / 0.4961 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.2069, allocations: 4 kB / 0.4961 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2069, allocations: 7.938 kB / 0.4961 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.2069, allocations: 7.984 kB / 0.4961 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008741/0.2157, allocations: 3.556 MB / 0.4996 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.2157, allocations: 4 kB / 0.4996 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003768/0.2161, allocations: 71.89 kB / 0.4997 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2269/0.443, allocations: 1.086 MB / 0.5008 GB, free: 57.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001858/0.4432, allocations: 24.78 kB / 0.5008 GB, free: 57.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01416/0.4574, allocations: 6.264 MB / 0.5069 GB, free: 55.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4574, allocations: 1.125 kB / 0.5069 GB, free: 55.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009193/0.4666, allocations: 3.199 MB / 0.51 GB, free: 54.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000419/0.4671, allocations: 222 kB / 0.5102 GB, free: 54.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.4672, allocations: 34.31 kB / 0.5103 GB, free: 54.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007269/0.468, allocations: 95.8 kB / 0.5104 GB, free: 54.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005465/0.4685, allocations: 165.1 kB / 0.5105 GB, free: 54.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.095e-05/0.4686, allocations: 26.05 kB / 0.5105 GB, free: 54.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000454/0.4691, allocations: 326 kB / 0.5108 GB, free: 54.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4691, allocations: 3.719 kB / 0.5109 GB, free: 54.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001008/0.4701, allocations: 223.9 kB / 0.5111 GB, free: 54.24 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001904/0.4703, allocations: 145.5 kB / 0.5112 GB, free: 54.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004208/0.4745, allocations: 1.714 MB / 0.5129 GB, free: 53.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4745, allocations: 0 / 0.5129 GB, free: 53.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002882/0.4774, allocations: 1.109 MB / 0.514 GB, free: 53.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008803/0.4783, allocations: 146.2 kB / 0.5141 GB, free: 53.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003109/0.4814, allocations: 2.04 MB / 0.5161 GB, free: 52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004674/0.4819, allocations: 0.9955 MB / 0.5171 GB, free: 51.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.4821, allocations: 46.97 kB / 0.5171 GB, free: 51.26 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4821, allocations: 0 / 0.5171 GB, free: 51.26 MB / 382.1 MB Notification: Performance of Templates: time 0.015/0.4971, allocations: 13.42 MB / 0.5302 GB, free: 42.66 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.AC1ph_DC.Inverters.InverterToGridCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGridCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGridCalcHelperMain.o] Error 1