Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.InverterAvToGrid,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.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,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.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007887/0.0007888, allocations: 92.97 kB / 16.95 MB, free: 5.641 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.0008052/0.0008053, allocations: 184.7 kB / 17.85 MB, free: 5.305 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.309/1.309, allocations: 223.2 MB / 241.9 MB, free: 14.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1741/0.1741, allocations: 38.09 MB / 331 MB, free: 8.59 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003212/0.0003212, allocations: 8 kB / 400.7 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1115, allocations: 59.17 MB / 459.9 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006941/0.1184, allocations: 6.528 MB / 466.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003064/0.1215, allocations: 1.719 MB / 468.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000474/0.122, allocations: 47.69 kB / 468.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00047/0.1225, allocations: 150.9 kB / 468.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008862/0.1234, allocations: 441.7 kB / 468.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006292/0.1241, allocations: 231.6 kB / 469 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001153/0.1252, allocations: 1.098 MB / 470.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003234/0.1256, allocations: 184.3 kB / 470.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004836/0.126, allocations: 334.4 kB / 470.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005815/0.1266, allocations: 462.5 kB / 471 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.429e-05/0.1267, allocations: 24 kB / 471.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.047e-05/0.1268, allocations: 31.94 kB / 471.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002498/0.127, allocations: 235.4 kB / 471.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001691/0.1272, allocations: 141.3 kB / 471.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000454/0.1277, allocations: 498.7 kB / 471.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1277, allocations: 4 kB / 471.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1277, allocations: 0 / 471.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1277, allocations: 0 / 471.9 MB, free: 11.25 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001408/0.1291, allocations: 0.8589 MB / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1292, allocations: 8.031 kB / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.1293, allocations: 67.16 kB / 472.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007614/0.1301, allocations: 0.5092 MB / 473.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/0.1301, allocations: 33 kB / 473.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.039e-05/0.1302, allocations: 48 kB / 473.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.1313, allocations: 0.621 MB / 474.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.1313, allocations: 4 kB / 474.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.784e-05/0.1314, allocations: 20 kB / 474.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001058/0.1315, allocations: 36.97 kB / 474.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007546/0.1323, allocations: 0.4996 MB / 474.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/0.1351, allocations: 2.245 MB / 476.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007531/0.1359, allocations: 493 kB / 477.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/0.1364, allocations: 337.6 kB / 477.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.944e-05/0.1364, allocations: 4 kB / 477.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.1365, allocations: 46.5 kB / 477.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.743e-06/0.1365, allocations: 0 / 477.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003061/0.1396, allocations: 1.761 MB / 479.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.639e-05/0.1396, allocations: 81.11 kB / 479.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004345/0.1401, allocations: 417.8 kB / 480 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.1401, allocations: 37.64 kB / 480 MB, free: 2.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.1403, allocations: 300.4 kB / 480.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.1404, allocations: 165.7 kB / 480.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.1405, allocations: 12 kB / 480.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.1407, allocations: 370.7 kB / 480.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003009/0.141, allocations: 177 kB / 481 MB, free: 1.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004729/0.1415, allocations: 311.7 kB / 481.3 MB, free: 1.426 MB / 350.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.001764/0.1432, allocations: 0.7568 MB / 482.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1432, allocations: 4 kB / 482.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001148/0.1444, allocations: 0.7068 MB / 482.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1444, allocations: 4 kB / 482.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1444, allocations: 4 kB / 482.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003973/0.1448, allocations: 140.7 kB / 483 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004055/0.1453, allocations: 116 kB / 483.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/0.148, allocations: 2.365 MB / 485.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.1483, allocations: 24.03 kB / 485.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.1483, allocations: 23.98 kB / 485.5 MB, free: 13.11 MB / 366.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: 16 * 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 (54): * Single equations (assignments): 53 * 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: 1 {(3,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002836/0.1486, allocations: 225.7 kB / 485.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-05/0.1487, allocations: 55.3 kB / 485.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/0.1498, allocations: 0.6503 MB / 486.4 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1498, allocations: 4 kB / 486.4 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1498, allocations: 12.05 kB / 486.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1498, allocations: 3.938 kB / 486.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.1518, allocations: 1.365 MB / 487.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1519, allocations: 0 / 487.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003112/0.1522, allocations: 75.83 kB / 487.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003599/0.1525, allocations: 152.8 kB / 488 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.1526, allocations: 12 kB / 488 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002593/0.1552, allocations: 2.369 MB / 490.4 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.1552, allocations: 4 kB / 490.4 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.1566, allocations: 0.9732 MB / 491.4 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.1567, allocations: 136.4 kB / 491.5 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.1567, allocations: 16 kB / 491.5 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.157, allocations: 11.98 kB / 491.5 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.157, allocations: 44 kB / 491.6 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.1571, allocations: 19.94 kB / 491.6 MB, free: 6.699 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002767/0.1574, allocations: 287.2 kB / 491.9 MB, free: 6.418 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1574, allocations: 3.938 kB / 491.9 MB, free: 6.414 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005709/0.1579, allocations: 148 kB / 492 MB, free: 6.27 MB / 366.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * 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: 1 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001262/0.1581, allocations: 107.2 kB / 492.1 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.1591, allocations: 0.6571 MB / 492.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1591, allocations: 0 / 492.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006867/0.1598, allocations: 435 kB / 493.2 MB, free: 5.051 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006952/0.1605, allocations: 118 kB / 493.3 MB, free: 4.938 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.1629, allocations: 1.645 MB / 495 MB, free: 3.234 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008089/0.1637, allocations: 0.9334 MB / 495.9 MB, free: 2.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.1639, allocations: 43.42 kB / 495.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1639, allocations: 0 / 495.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of Templates: time 0.01227/0.1762, allocations: 9.104 MB / 0.4932 GB, free: 9.148 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.AC1ph_DC.Inverters.InverterAvToGridCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGridCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGridCalcHelperMain.o] Error 1