Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.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.Rectifier,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier") translateModel(PowerSystems.Examples.AC3ph.Inverters.Rectifier,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001605/0.00161, allocations: 186 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.007/2.007, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.00122/0.00122, allocations: 106.8 kB / 270.3 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.2724/0.2725, allocations: 38.05 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004605/0.0004606, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1095, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.01071/0.1203, allocations: 6.423 MB / 485.5 MB, free: 11.59 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005868/0.1262, allocations: 2.285 MB / 487.7 MB, free: 9.293 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007047/0.1269, allocations: 39.69 kB / 487.8 MB, free: 9.254 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006456/0.1276, allocations: 155.1 kB / 487.9 MB, free: 9.102 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00183/0.1295, allocations: 462.5 kB / 488.4 MB, free: 8.648 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.1308, allocations: 311.4 kB / 488.7 MB, free: 8.344 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001421/0.1322, allocations: 0.6675 MB / 489.4 MB, free: 7.676 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001974/0.1342, allocations: 0.8361 MB / 490.2 MB, free: 6.805 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009673/0.1352, allocations: 382.7 kB / 490.6 MB, free: 6.43 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.1364, allocations: 0.5298 MB / 491.1 MB, free: 5.898 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001926/0.1366, allocations: 48 kB / 491.1 MB, free: 5.852 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001453/0.1381, allocations: 0.4953 MB / 491.6 MB, free: 5.355 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007827/0.1389, allocations: 391.1 kB / 492 MB, free: 4.973 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003914/0.1393, allocations: 197.2 kB / 492.2 MB, free: 4.773 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002205/0.1415, allocations: 1.15 MB / 493.4 MB, free: 3.621 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1416, allocations: 0 / 493.4 MB, free: 3.621 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1416, allocations: 0 / 493.4 MB, free: 3.621 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.188e-05/0.1416, allocations: 0 / 493.4 MB, free: 3.621 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.004604/0.1462, allocations: 1.227 MB / 494.6 MB, free: 2.344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.1463, allocations: 12.02 kB / 494.6 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001366/0.1477, allocations: 142.8 kB / 494.7 MB, free: 2.191 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.1501, allocations: 0.6443 MB / 495.4 MB, free: 1.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004476/0.1506, allocations: 179.1 kB / 495.6 MB, free: 1.309 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005177/0.1511, allocations: 95.78 kB / 495.7 MB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004445/0.1556, allocations: 1.418 MB / 497.1 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.647e-05/0.1557, allocations: 0 / 497.1 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/0.1559, allocations: 35.98 kB / 497.1 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004012/0.1563, allocations: 77.95 kB / 497.2 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00538/0.1617, allocations: 1.557 MB / 498.7 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01275/0.1745, allocations: 4.455 MB / 0.4914 GB, free: 9.508 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004372/0.1789, allocations: 1.243 MB / 0.4926 GB, free: 8.246 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001351/0.1791, allocations: 12.7 kB / 0.4926 GB, free: 8.234 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.527e-05/0.1792, allocations: 47.16 kB / 0.4927 GB, free: 8.176 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 5.41e-06/0.1792, allocations: 0 / 0.4927 GB, free: 8.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=102): time 0.01288/0.1921, allocations: 4.178 MB / 0.4968 GB, free: 3.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.864e-05/0.1922, allocations: 98.03 kB / 0.4968 GB, free: 3.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007246/0.193, allocations: 393.8 kB / 0.4972 GB, free: 3.348 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001977/0.1932, allocations: 41.7 kB / 0.4973 GB, free: 3.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003631/0.1935, allocations: 386.7 kB / 0.4976 GB, free: 2.918 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004907/0.1941, allocations: 354.9 kB / 0.498 GB, free: 2.566 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.005e-05/0.1942, allocations: 16 kB / 0.498 GB, free: 2.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.1944, allocations: 350.8 kB / 0.4983 GB, free: 2.199 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002034/0.1964, allocations: 0.607 MB / 0.4989 GB, free: 1.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002196/0.1986, allocations: 0.7581 MB / 0.4997 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00224/0.2009, allocations: 0.6861 MB / 0.5003 GB, free: 108 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.2009, allocations: 0 / 0.5003 GB, free: 108 kB / 346.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.005174/0.2061, allocations: 1.6 MB / 0.5019 GB, free: 14.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.2062, allocations: 15.88 kB / 0.5019 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/0.2062, allocations: 4 kB / 0.5019 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001744/0.2064, allocations: 28.84 kB / 0.5019 GB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005307/0.2117, allocations: 0.6283 MB / 0.5025 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/0.2231, allocations: 6.392 MB / 0.5088 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.2245, allocations: 92.08 kB / 0.5089 GB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.2246, allocations: 35.98 kB / 0.5089 GB, free: 6.746 MB / 362.7 MB 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 (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 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.0007465/0.2254, allocations: 321.4 kB / 0.5092 GB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.2257, allocations: 63.23 kB / 0.5093 GB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004905/0.2306, allocations: 1.616 MB / 0.5109 GB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.421e-05/0.2307, allocations: 28 kB / 0.5109 GB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.2307, allocations: 4 kB / 0.5109 GB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.845e-05/0.2307, allocations: 7.969 kB / 0.5109 GB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008407/0.2391, allocations: 2.896 MB / 0.5137 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.2392, allocations: 0 / 0.5137 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006129/0.2453, allocations: 0.687 MB / 0.5144 GB, free: 1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001531/0.2455, allocations: 24.86 kB / 0.5144 GB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/0.2457, allocations: 23.97 kB / 0.5144 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3112/0.5569, allocations: 1.389 MB / 0.5158 GB, free: 51.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.557, allocations: 5.562 kB / 0.5158 GB, free: 51.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00776/0.5647, allocations: 2.666 MB / 0.5184 GB, free: 50.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002238/0.565, allocations: 142.1 kB / 0.5185 GB, free: 50.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002606/0.5653, allocations: 21.33 kB / 0.5186 GB, free: 50.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.5664, allocations: 79.44 kB / 0.5186 GB, free: 50.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003391/0.5668, allocations: 79.44 kB / 0.5187 GB, free: 50.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.5669, allocations: 28.81 kB / 0.5187 GB, free: 50.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004562/0.5674, allocations: 280.2 kB / 0.519 GB, free: 50.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5674, allocations: 0 / 0.519 GB, free: 50.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001324/0.5687, allocations: 238.7 kB / 0.5192 GB, free: 50.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * 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 (87): * Single equations (assignments): 82 * Array equations: 3 * 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.0003938/0.5691, allocations: 146.1 kB / 0.5194 GB, free: 50.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008573/0.5777, allocations: 1.994 MB / 0.5213 GB, free: 49.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.5778, allocations: 0 / 0.5213 GB, free: 49.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006029/0.5838, allocations: 1.316 MB / 0.5226 GB, free: 49.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.5852, allocations: 134.7 kB / 0.5227 GB, free: 49.19 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008824/0.594, allocations: 3.111 MB / 0.5258 GB, free: 47.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009361/0.595, allocations: 1.105 MB / 0.5269 GB, free: 46.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006871/0.5957, allocations: 61.64 kB / 0.5269 GB, free: 46.86 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5957, allocations: 1.094 kB / 0.5269 GB, free: 46.86 MB / 362.7 MB Notification: Performance of Templates: time 0.03855/0.6343, allocations: 22.95 MB / 0.5493 GB, free: 29.89 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.makefile make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.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.RectifierCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.RectifierCalcHelperMain.cpp\nIn file included from OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.RectifierCalcHelperMain.cpp:28:\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.RectifierFunctions.cpp:85:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.RectifierFunctions.cpp:144:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.RectifierFunctions.cpp:262:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.RectifierFunctions.cpp:321:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n4 errors generated.\n: recipe for target \'OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.RectifierCalcHelperMain.o\' failed\nmake: *** [OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.RectifierCalcHelperMain.o] Error 1\n'