Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001592/0.001598, allocations: 189.5 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.4 MB / 221.9 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 86.81 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2692/0.2692, allocations: 38.05 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004899/0.00049, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1143, allocations: 56.33 MB / 479 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.01094/0.1253, allocations: 6.591 MB / 485.6 MB, free: 11.41 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005806/0.1312, allocations: 2.215 MB / 487.8 MB, free: 9.191 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008524/0.1321, allocations: 51.62 kB / 487.9 MB, free: 9.141 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006676/0.1328, allocations: 159 kB / 488 MB, free: 8.984 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001476/0.1342, allocations: 390.7 kB / 488.4 MB, free: 8.602 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.1357, allocations: 351.3 kB / 488.8 MB, free: 8.258 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.1369, allocations: 0.55 MB / 489.3 MB, free: 7.707 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.1383, allocations: 0.6367 MB / 490 MB, free: 7.035 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008256/0.1392, allocations: 326.8 kB / 490.3 MB, free: 6.715 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009666/0.1401, allocations: 418.8 kB / 490.7 MB, free: 6.305 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.1403, allocations: 32 kB / 490.7 MB, free: 6.273 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006748/0.141, allocations: 187.7 kB / 490.9 MB, free: 6.09 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004663/0.1415, allocations: 307.3 kB / 491.2 MB, free: 5.789 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000278/0.1418, allocations: 165.3 kB / 491.4 MB, free: 5.621 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001393/0.1432, allocations: 0.756 MB / 492.1 MB, free: 4.863 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1433, allocations: 0 / 492.1 MB, free: 4.863 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1433, allocations: 0 / 492.1 MB, free: 4.863 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.737e-05/0.1433, allocations: 3.938 kB / 492.1 MB, free: 4.859 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003152/0.1465, allocations: 0.9998 MB / 493.1 MB, free: 3.809 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.1466, allocations: 8.031 kB / 493.1 MB, free: 3.801 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/0.1478, allocations: 130.9 kB / 493.3 MB, free: 3.672 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.1494, allocations: 0.5639 MB / 493.8 MB, free: 3.066 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.423e-05/0.1495, allocations: 53.3 kB / 493.9 MB, free: 3.012 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002486/0.1498, allocations: 64 kB / 493.9 MB, free: 2.949 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002468/0.1523, allocations: 1.002 MB / 494.9 MB, free: 1.914 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.487e-05/0.1523, allocations: 0 / 494.9 MB, free: 1.914 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.1525, allocations: 28 kB / 495 MB, free: 1.887 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003617/0.1528, allocations: 77.94 kB / 495 MB, free: 1.809 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00255/0.1554, allocations: 0.9758 MB / 496 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008249/0.1637, allocations: 3.268 MB / 499.3 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001967/0.1657, allocations: 0.6945 MB / 500 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.491e-05/0.1658, allocations: 17.53 kB / 500 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.53e-05/0.1658, allocations: 43.12 kB / 0.4883 GB, free: 12.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=73): time 4.689e-06/0.1659, allocations: 0 / 0.4883 GB, free: 12.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=75): time 0.006301/0.1722, allocations: 2.561 MB / 0.4908 GB, free: 9.965 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.334e-05/0.1723, allocations: 81.67 kB / 0.4909 GB, free: 9.867 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007338/0.173, allocations: 433.8 kB / 0.4913 GB, free: 9.438 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.762e-05/0.1731, allocations: 45.69 kB / 0.4914 GB, free: 9.387 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.1735, allocations: 402 kB / 0.4917 GB, free: 8.988 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003247/0.1738, allocations: 260.3 kB / 0.492 GB, free: 8.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.549e-05/0.1739, allocations: 12 kB / 0.492 GB, free: 8.719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.1741, allocations: 354.8 kB / 0.4923 GB, free: 8.363 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000873/0.175, allocations: 333.8 kB / 0.4927 GB, free: 8.039 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.1761, allocations: 0.5107 MB / 0.4932 GB, free: 7.457 MB / 346.7 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007354/0.1834, allocations: 1.381 MB / 0.4945 GB, free: 6.059 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.1835, allocations: 4 kB / 0.4945 GB, free: 6.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002665/0.1862, allocations: 1.051 MB / 0.4955 GB, free: 4.977 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.1862, allocations: 8.719 kB / 0.4955 GB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.75e-05/0.1862, allocations: 7.984 kB / 0.4955 GB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001839/0.1864, allocations: 40.8 kB / 0.4956 GB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/0.188, allocations: 195.7 kB / 0.4958 GB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.1896, allocations: 1.342 MB / 0.4971 GB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008114/0.1904, allocations: 39.95 kB / 0.4971 GB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.1905, allocations: 35.98 kB / 0.4972 GB, free: 3.176 MB / 346.7 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (96): * Single equations (assignments): 93 * Array equations: 2 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006055/0.1912, allocations: 277.7 kB / 0.4974 GB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.1914, allocations: 63.25 kB / 0.4975 GB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002429/0.1938, allocations: 0.9543 MB / 0.4984 GB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.705e-05/0.1939, allocations: 23.95 kB / 0.4984 GB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1939, allocations: 3.938 kB / 0.4984 GB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-05/0.1939, allocations: 3.984 kB / 0.4984 GB, free: 1.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005392/0.1993, allocations: 1.993 MB / 0.5004 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.1994, allocations: 4 kB / 0.5004 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001435/0.2008, allocations: 159.8 kB / 0.5005 GB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001348/0.201, allocations: 32.84 kB / 0.5006 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.176e-05/0.2011, allocations: 16 kB / 0.5006 GB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.2024, allocations: 1.335 MB / 0.5019 GB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.2024, allocations: 4 kB / 0.5019 GB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003451/0.2059, allocations: 1.74 MB / 0.5036 GB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002459/0.2062, allocations: 144.3 kB / 0.5037 GB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/0.2063, allocations: 23.98 kB / 0.5038 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006001/0.2069, allocations: 31.97 kB / 0.5038 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.2071, allocations: 60.39 kB / 0.5038 GB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.281e-05/0.2072, allocations: 31.98 kB / 0.5039 GB, free: 11.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005667/0.2078, allocations: 291.1 kB / 0.5042 GB, free: 11.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.2078, allocations: 0 / 0.5042 GB, free: 11.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001023/0.2088, allocations: 192 kB / 0.5043 GB, free: 11.27 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (76): * Single equations (assignments): 72 * Array equations: 2 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003076/0.2092, allocations: 139 kB / 0.5045 GB, free: 11.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002355/0.2115, allocations: 0.935 MB / 0.5054 GB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.2116, allocations: 0 / 0.5054 GB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.2127, allocations: 0.5173 MB / 0.5059 GB, free: 9.656 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.2138, allocations: 131 kB / 0.506 GB, free: 9.523 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005021/0.2188, allocations: 2.43 MB / 0.5084 GB, free: 7.004 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009823/0.2199, allocations: 1.025 MB / 0.5094 GB, free: 5.953 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004403/0.2203, allocations: 63.42 kB / 0.5094 GB, free: 5.891 MB / 362.7 MB Notification: Performance of SimCode: time 1.233e-06/0.2203, allocations: 0 / 0.5094 GB, free: 5.891 MB / 362.7 MB Notification: Performance of Templates: time 0.3292/0.5495, allocations: 11.68 MB / 0.5209 GB, free: 50.61 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile b'clang++ -fopenmp=libomp -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_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGridCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGridCalcHelperMain.cpp\nIn file included from OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGridCalcHelperMain.cpp:28:\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGridFunctions.cpp:85:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGridFunctions.cpp:144:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n2 errors generated.\n: recipe for target \'OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGridCalcHelperMain.o\' failed\nmake: *** [OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGridCalcHelperMain.o] Error 1\n'