Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001646/0.001645, allocations: 184.3 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.089/2.089, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001474/0.001473, allocations: 86.89 kB / 270.2 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.2685/0.2685, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006259/0.0006261, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.108, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.008763/0.1168, allocations: 5.044 MB / 484.1 MB, free: 12.97 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005925/0.1228, allocations: 2.251 MB / 486.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000816/0.1237, allocations: 31.81 kB / 486.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005101/0.1242, allocations: 103.2 kB / 486.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001421/0.1257, allocations: 310.9 kB / 486.8 MB, free: 10.27 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001649/0.1273, allocations: 390.6 kB / 487.1 MB, free: 9.895 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.1287, allocations: 0.5902 MB / 487.7 MB, free: 9.301 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001392/0.1301, allocations: 0.6237 MB / 488.4 MB, free: 8.633 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006663/0.1308, allocations: 298.7 kB / 488.6 MB, free: 8.34 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005072/0.1313, allocations: 282.5 kB / 488.9 MB, free: 8.062 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.349e-05/0.1314, allocations: 24 kB / 488.9 MB, free: 8.039 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005492/0.132, allocations: 163.7 kB / 489.1 MB, free: 7.879 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.1322, allocations: 139.4 kB / 489.2 MB, free: 7.742 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001924/0.1324, allocations: 153.3 kB / 489.4 MB, free: 7.586 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001281/0.1337, allocations: 0.791 MB / 490.2 MB, free: 6.793 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.1337, allocations: 0 / 490.2 MB, free: 6.793 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1338, allocations: 0 / 490.2 MB, free: 6.793 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.1338, allocations: 0 / 490.2 MB, free: 6.793 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002953/0.1367, allocations: 1.017 MB / 491.2 MB, free: 5.727 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1368, allocations: 8.031 kB / 491.2 MB, free: 5.719 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001364/0.1382, allocations: 182.7 kB / 491.4 MB, free: 5.539 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.1397, allocations: 0.5687 MB / 492 MB, free: 4.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-05/0.1398, allocations: 45.31 kB / 492 MB, free: 4.883 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.14, allocations: 63.98 kB / 492.1 MB, free: 4.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002258/0.1422, allocations: 0.7757 MB / 492.8 MB, free: 4.004 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.689e-05/0.1423, allocations: 7.906 kB / 492.8 MB, free: 3.996 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.1424, allocations: 20 kB / 492.9 MB, free: 3.977 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.407e-05/0.1425, allocations: 37.25 kB / 492.9 MB, free: 3.941 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002443/0.145, allocations: 0.6842 MB / 493.6 MB, free: 3.258 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006864/0.1518, allocations: 2.942 MB / 496.5 MB, free: 200 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003044/0.1549, allocations: 0.7931 MB / 497.3 MB, free: 15.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.97e-05/0.155, allocations: 8.484 kB / 497.3 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.1551, allocations: 43 kB / 497.4 MB, free: 15.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.276e-06/0.1551, allocations: 0 / 497.4 MB, free: 15.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.003081/0.1582, allocations: 0.7911 MB / 498.2 MB, free: 14.52 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.203e-05/0.1583, allocations: 115.2 kB / 498.3 MB, free: 14.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.1596, allocations: 0.579 MB / 498.9 MB, free: 13.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.485e-05/0.1597, allocations: 33.7 kB / 498.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000388/0.1601, allocations: 378.9 kB / 499.3 MB, free: 13.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/0.1604, allocations: 177.4 kB / 499.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.103e-05/0.1604, allocations: 12 kB / 499.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1606, allocations: 335 kB / 499.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009699/0.1616, allocations: 233.2 kB / 500 MB, free: 12.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001064/0.1627, allocations: 373.5 kB / 0.4886 GB, free: 12.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.1637, allocations: 278 kB / 0.4889 GB, free: 11.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.1637, allocations: 4 kB / 0.4889 GB, free: 11.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003223/0.167, allocations: 0.8232 MB / 0.4897 GB, free: 11.1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006154/0.1676, allocations: 1.401 MB / 0.4911 GB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.1677, allocations: 7.938 kB / 0.4911 GB, free: 9.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007926/0.1685, allocations: 136.8 kB / 0.4912 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.1697, allocations: 143.8 kB / 0.4914 GB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004745/0.1744, allocations: 2.3 MB / 0.4936 GB, free: 6.871 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009259/0.1754, allocations: 95.39 kB / 0.4937 GB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.261e-05/0.1755, allocations: 20 kB / 0.4937 GB, free: 6.758 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.1755, allocations: 4 kB / 0.4937 GB, free: 6.754 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002426/0.178, allocations: 0.6735 MB / 0.4944 GB, free: 6.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.178, allocations: 4 kB / 0.4944 GB, free: 6.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000442/0.1784, allocations: 97.16 kB / 0.4945 GB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.1796, allocations: 147.8 kB / 0.4946 GB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003171/0.1828, allocations: 2.026 MB / 0.4966 GB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006114/0.1834, allocations: 67.62 kB / 0.4966 GB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.801e-05/0.1835, allocations: 24 kB / 0.4967 GB, free: 3.586 MB / 346.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: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005555/0.1841, allocations: 304.9 kB / 0.497 GB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.1843, allocations: 67.16 kB / 0.497 GB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002262/0.1865, allocations: 0.6242 MB / 0.4976 GB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.1866, allocations: 4 kB / 0.4976 GB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1866, allocations: 4 kB / 0.4976 GB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.1866, allocations: 4 kB / 0.4976 GB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003685/0.1903, allocations: 1.388 MB / 0.499 GB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.1904, allocations: 0.75 kB / 0.499 GB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.1916, allocations: 127.9 kB / 0.4991 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.1916, allocations: 0 / 0.4991 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.313e-05/0.1917, allocations: 15.98 kB / 0.4991 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.61e-05/0.1917, allocations: 4 kB / 0.4991 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1917, allocations: 3.938 kB / 0.4991 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003296/0.195, allocations: 1.012 MB / 0.5001 GB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004132/0.1955, allocations: 196.1 kB / 0.5003 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.1956, allocations: 12 kB / 0.5003 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007557/0.1964, allocations: 51.95 kB / 0.5004 GB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.1965, allocations: 36.38 kB / 0.5004 GB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-05/0.1966, allocations: 15.98 kB / 0.5004 GB, free: 15.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001005/0.1976, allocations: 423 kB / 0.5008 GB, free: 15.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1977, allocations: 0 / 0.5008 GB, free: 15.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001321/0.199, allocations: 271.3 kB / 0.5011 GB, free: 14.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * 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 (51): * Single equations (assignments): 50 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00019/0.1992, allocations: 115 kB / 0.5012 GB, free: 14.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003694/0.2029, allocations: 1.175 MB / 0.5024 GB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.2029, allocations: 0.5 kB / 0.5024 GB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.204, allocations: 286.4 kB / 0.5026 GB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.2053, allocations: 139 kB / 0.5028 GB, free: 13.19 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008464/0.2138, allocations: 1.856 MB / 0.5046 GB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.215, allocations: 0.9616 MB / 0.5055 GB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004977/0.2156, allocations: 47.42 kB / 0.5056 GB, free: 10.26 MB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/0.2156, allocations: 0 / 0.5056 GB, free: 10.26 MB / 362.7 MB Notification: Performance of Templates: time 0.03344/0.249, allocations: 9.589 MB / 0.5149 GB, free: 0.668 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerWorld.Test.PowerPlantTest2CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2CalcHelperMain.cpp\nIn file included from OMCppPowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2CalcHelperMain.cpp:31:\n./OMCppPowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2Jacobian.cpp:76:26: error: use of undeclared identifier \'__HOM_LAMBDA_\'\n _NLSJac0jac_tmp(6) = ((__HOM_LAMBDA_ * tmp60) + ((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(5)));\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2Jacobian.cpp:76:59: error: use of undeclared identifier \'__HOM_LAMBDA_\'\n _NLSJac0jac_tmp(6) = ((__HOM_LAMBDA_ * tmp60) + ((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(5)));\n ^\n2 errors generated.\n: recipe for target \'OMCppPowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2CalcHelperMain.o\' failed\nmake: *** [OMCppPowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2CalcHelperMain.o] Error 1\n'