Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.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.Elementary.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source") translateModel(PowerSystems.Examples.AC3ph.Elementary.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001613/0.001618, allocations: 184.2 kB / 15.77 MB, free: 6.375 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.003/2.003, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001147/0.001146, allocations: 98.83 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2751/0.2751, allocations: 38.05 MB / 356.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006233/0.0006235, allocations: 8 kB / 422.7 MB, free: 26.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1123, allocations: 56.33 MB / 479 MB, free: 2.062 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.007041/0.1194, allocations: 4.287 MB / 483.3 MB, free: 13.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004175/0.1236, allocations: 1.654 MB / 485 MB, free: 12.09 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004883/0.1242, allocations: 27.88 kB / 485 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.1245, allocations: 71.45 kB / 485.1 MB, free: 11.99 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009965/0.1255, allocations: 235.2 kB / 485.3 MB, free: 11.76 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.1266, allocations: 231.5 kB / 485.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008083/0.1274, allocations: 311.8 kB / 485.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.1285, allocations: 426.5 kB / 486.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004922/0.129, allocations: 187.3 kB / 486.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005826/0.1296, allocations: 267.3 kB / 486.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.299e-05/0.1297, allocations: 23.94 kB / 486.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005279/0.1302, allocations: 151.8 kB / 486.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003048/0.1306, allocations: 195.5 kB / 487.1 MB, free: 9.977 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.1307, allocations: 105.5 kB / 487.2 MB, free: 9.867 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008687/0.1316, allocations: 498.8 kB / 487.6 MB, free: 9.379 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1316, allocations: 0 / 487.6 MB, free: 9.379 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1317, allocations: 0 / 487.6 MB, free: 9.379 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.1317, allocations: 0 / 487.6 MB, free: 9.379 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001827/0.1335, allocations: 0.6919 MB / 488.3 MB, free: 8.641 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.1336, allocations: 8.031 kB / 488.3 MB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009736/0.1346, allocations: 107.2 kB / 488.5 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.1356, allocations: 386.1 kB / 488.8 MB, free: 8.109 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.033e-05/0.1357, allocations: 32.98 kB / 488.9 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002264/0.136, allocations: 55.91 kB / 488.9 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.1375, allocations: 0.6797 MB / 489.6 MB, free: 7.305 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.1376, allocations: 4 kB / 489.6 MB, free: 7.301 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.23e-05/0.1377, allocations: 19.94 kB / 489.6 MB, free: 7.281 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003692/0.1381, allocations: 68.95 kB / 489.7 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.1398, allocations: 0.6596 MB / 490.3 MB, free: 6.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005876/0.1457, allocations: 2.65 MB / 493 MB, free: 3.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008673/0.1466, allocations: 314.2 kB / 493.3 MB, free: 3.426 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.258e-05/0.1467, allocations: 4.062 kB / 493.3 MB, free: 3.422 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.1468, allocations: 38.56 kB / 493.3 MB, free: 3.375 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 3.656e-06/0.1468, allocations: 3.938 kB / 493.3 MB, free: 3.371 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.003394/0.1502, allocations: 1.458 MB / 494.8 MB, free: 1.824 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.74e-05/0.1503, allocations: 89.19 kB / 494.9 MB, free: 1.719 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004535/0.1508, allocations: 287.2 kB / 495.2 MB, free: 1.426 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.382e-05/0.1508, allocations: 29.7 kB / 495.2 MB, free: 1.391 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/0.1511, allocations: 306 kB / 495.5 MB, free: 1.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.1513, allocations: 142 kB / 495.6 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.998e-05/0.1513, allocations: 7.938 kB / 495.6 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1515, allocations: 334.8 kB / 496 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004523/0.1519, allocations: 184.9 kB / 496.2 MB, free: 436 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005587/0.1525, allocations: 321.3 kB / 496.5 MB, free: 60 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006103/0.1531, allocations: 247.9 kB / 496.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.1532, allocations: 0 / 496.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001981/0.1552, allocations: 0.6548 MB / 497.4 MB, free: 15.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/0.1552, allocations: 8 kB / 497.4 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001403/0.1566, allocations: 491.5 kB / 497.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007005/0.1574, allocations: 121.8 kB / 498 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005932/0.158, allocations: 83.89 kB / 498.1 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004141/0.1621, allocations: 3.05 MB / 0.4894 GB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004629/0.1626, allocations: 27.83 kB / 0.4894 GB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.442e-05/0.1627, allocations: 20 kB / 0.4894 GB, free: 11.08 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004281/0.1632, allocations: 209.7 kB / 0.4896 GB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.1633, allocations: 31.62 kB / 0.4896 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.1645, allocations: 484.5 kB / 0.4901 GB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.284e-05/0.1646, allocations: 11.98 kB / 0.4901 GB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1646, allocations: 4 kB / 0.4901 GB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.1646, allocations: 0 / 0.4901 GB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002423/0.167, allocations: 1.015 MB / 0.4911 GB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/0.1671, allocations: 11.92 kB / 0.4911 GB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006736/0.1678, allocations: 67.89 kB / 0.4912 GB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.086e-06/0.1678, allocations: 8.062 kB / 0.4912 GB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.1679, allocations: 8 kB / 0.4912 GB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.1679, allocations: 0 / 0.4912 GB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1679, allocations: 4 kB / 0.4912 GB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.1695, allocations: 0.7757 MB / 0.492 GB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.1698, allocations: 136.7 kB / 0.4921 GB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.289e-05/0.1699, allocations: 8 kB / 0.4921 GB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003386/0.1703, allocations: 15.98 kB / 0.4921 GB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.962e-05/0.1704, allocations: 23.92 kB / 0.4921 GB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.1704, allocations: 8 kB / 0.4921 GB, free: 8.137 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003216/0.1707, allocations: 207.1 kB / 0.4923 GB, free: 7.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1708, allocations: 0 / 0.4923 GB, free: 7.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007742/0.1715, allocations: 115.9 kB / 0.4924 GB, free: 7.816 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (30): * Single equations (assignments): 27 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002667/0.1718, allocations: 119.2 kB / 0.4926 GB, free: 7.691 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.1735, allocations: 0.705 MB / 0.4933 GB, free: 6.961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1735, allocations: 4 kB / 0.4933 GB, free: 6.957 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004763/0.174, allocations: 216.2 kB / 0.4935 GB, free: 6.746 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006172/0.1746, allocations: 57.33 kB / 0.4935 GB, free: 6.691 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.1776, allocations: 1.397 MB / 0.4949 GB, free: 5.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006594/0.1783, allocations: 0.8748 MB / 0.4957 GB, free: 4.352 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.1785, allocations: 39.44 kB / 0.4958 GB, free: 4.312 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.1785, allocations: 0 / 0.4958 GB, free: 4.312 MB / 346.7 MB Notification: Performance of Templates: time 0.01612/0.1947, allocations: 6.725 MB / 0.5023 GB, free: 13.58 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.makefile make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.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.Elementary.SourceCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.SourceCalcHelperMain.cpp\nIn file included from OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.SourceCalcHelperMain.cpp:28:\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.SourceFunctions.cpp:85:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.SourceFunctions.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.Elementary.SourceCalcHelperMain.o\' failed\nmake: *** [OMCppPowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.SourceCalcHelperMain.o] Error 1\n'