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.0007923/0.0007923, allocations: 92.23 kB / 17.31 MB, free: 6.535 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.001199/0.001199, allocations: 175 kB / 18.21 MB, free: 5.684 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.565/1.565, allocations: 223.3 MB / 242.2 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2757/0.2757, allocations: 38.09 MB / 331.5 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003218/0.0003218, allocations: 8 kB / 401.4 MB, free: 34.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1416, allocations: 59.17 MB / 460.5 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.009149/0.1508, allocations: 7.349 MB / 467.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004675/0.1555, allocations: 2.015 MB / 469.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000774/0.1563, allocations: 51.62 kB / 470 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005468/0.1569, allocations: 135.1 kB / 470.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.1579, allocations: 406.3 kB / 470.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007937/0.1587, allocations: 311.6 kB / 470.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00215/0.1609, allocations: 2.011 MB / 472.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004986/0.1614, allocations: 324.2 kB / 473.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009762/0.1624, allocations: 497.9 kB / 473.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00097/0.1634, allocations: 0.6231 MB / 474.2 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001107/0.1635, allocations: 44 kB / 474.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.1637, allocations: 40 kB / 474.3 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004001/0.1641, allocations: 355.1 kB / 474.6 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005057/0.1646, allocations: 431.7 kB / 475.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000967/0.1656, allocations: 0.9039 MB / 476 MB, free: 7.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.1656, allocations: 4 kB / 476 MB, free: 7.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1656, allocations: 0 / 476 MB, free: 7.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.1656, allocations: 0 / 476 MB, free: 7.559 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.002865/0.1685, allocations: 1.169 MB / 477.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.508e-05/0.1685, allocations: 12.03 kB / 477.2 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002502/0.1688, allocations: 95.91 kB / 477.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.1704, allocations: 0.6938 MB / 477.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005831/0.171, allocations: 355 kB / 478.3 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.1712, allocations: 64 kB / 478.4 MB, free: 5.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/0.1739, allocations: 1.223 MB / 479.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.174, allocations: 0 / 479.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-05/0.1741, allocations: 24 kB / 479.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001396/0.1742, allocations: 45.28 kB / 479.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003097/0.1773, allocations: 1.289 MB / 480.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005939/0.1833, allocations: 3.551 MB / 484.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002795/0.1861, allocations: 1.055 MB / 485.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/0.1879, allocations: 0.7411 MB / 486.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.577e-05/0.1879, allocations: 4.562 kB / 486.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001776/0.1897, allocations: 0.7513 MB / 487 MB, free: 12.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 1.844e-06/0.1897, allocations: 0 / 487 MB, free: 12.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.0227/0.2124, allocations: 6.971 MB / 494 MB, free: 5.102 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/0.2125, allocations: 97.59 kB / 494.1 MB, free: 4.984 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006756/0.2132, allocations: 473.8 kB / 494.6 MB, free: 4.512 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.2133, allocations: 45.69 kB / 494.6 MB, free: 4.461 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003047/0.2137, allocations: 324.2 kB / 494.9 MB, free: 4.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/0.2139, allocations: 201.1 kB / 495.1 MB, free: 3.938 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.214, allocations: 61.69 kB / 495.2 MB, free: 3.871 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.2142, allocations: 370.8 kB / 495.5 MB, free: 3.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.2154, allocations: 0.5559 MB / 496.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.2167, allocations: 0.6766 MB / 496.8 MB, free: 2.223 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.007635/0.2243, allocations: 3.384 MB / 0.4884 GB, free: 14.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2243, allocations: 0 / 0.4884 GB, free: 14.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008707/0.2331, allocations: 3.053 MB / 0.4914 GB, free: 11.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.436e-05/0.2332, allocations: 49.69 kB / 0.4915 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/0.2332, allocations: 8.219 kB / 0.4915 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002742/0.2359, allocations: 1.183 MB / 0.4926 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005364/0.2365, allocations: 115.7 kB / 0.4927 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01709/0.2536, allocations: 7.154 MB / 0.4997 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009519/0.2546, allocations: 108 kB / 0.4998 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.2547, allocations: 51.84 kB / 0.4999 GB, free: 2.887 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 sytem: 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.0005449/0.2553, allocations: 271.4 kB / 0.5001 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.2554, allocations: 63.25 kB / 0.5002 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2885/0.5439, allocations: 3.008 MB / 0.5031 GB, free: 57.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.466e-05/0.544, allocations: 6.562 kB / 0.5031 GB, free: 57.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.544, allocations: 3.75 kB / 0.5031 GB, free: 57.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-05/0.544, allocations: 4.75 kB / 0.5032 GB, free: 57.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.5559, allocations: 4.14 MB / 0.5072 GB, free: 56.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.556, allocations: 1.156 kB / 0.5072 GB, free: 56.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004139/0.5564, allocations: 78.83 kB / 0.5073 GB, free: 56.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002831/0.5592, allocations: 1.194 MB / 0.5084 GB, free: 56.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.5594, allocations: 19.12 kB / 0.5085 GB, free: 56.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01698/0.5764, allocations: 7.109 MB / 0.5154 GB, free: 54.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.5764, allocations: 9.25 kB / 0.5154 GB, free: 54.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0105/0.5869, allocations: 3.847 MB / 0.5192 GB, free: 53.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004353/0.5874, allocations: 221.4 kB / 0.5194 GB, free: 53.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.5875, allocations: 33.69 kB / 0.5194 GB, free: 53.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007633/0.5883, allocations: 129.6 kB / 0.5195 GB, free: 53.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004145/0.5887, allocations: 166.2 kB / 0.5197 GB, free: 52.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.987e-05/0.5888, allocations: 23.2 kB / 0.5197 GB, free: 52.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003575/0.5892, allocations: 325.8 kB / 0.52 GB, free: 52.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5892, allocations: 0 / 0.52 GB, free: 52.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008306/0.59, allocations: 229.3 kB / 0.5202 GB, free: 52.74 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.0001921/0.5902, allocations: 139.8 kB / 0.5204 GB, free: 52.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004332/0.5945, allocations: 1.942 MB / 0.5223 GB, free: 51.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5946, allocations: 0 / 0.5223 GB, free: 51.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003023/0.5976, allocations: 1.277 MB / 0.5235 GB, free: 50.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.5986, allocations: 143 kB / 0.5237 GB, free: 50.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.6014, allocations: 2.137 MB / 0.5257 GB, free: 48.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.6018, allocations: 0.9892 MB / 0.5267 GB, free: 47.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.6019, allocations: 47.42 kB / 0.5268 GB, free: 47.37 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6019, allocations: 0 / 0.5268 GB, free: 47.37 MB / 382.1 MB Notification: Performance of Templates: time 0.0131/0.615, allocations: 13.36 MB / 0.5398 GB, free: 34.05 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