Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower") translateModel(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 102.7 kB / 15.71 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 177.3 kB / 16.58 MB, free: 6.863 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.421/1.421, allocations: 223.2 MB / 240.6 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 263 kB / 292 MB, free: 1.98 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8663/0.8663, allocations: 144.7 MB / 487.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004262, allocations: 11.62 kB / 0.5691 GB, free: 38.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1662, allocations: 83.09 MB / 0.6502 GB, free: 3.555 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.00177/0.168, allocations: 1.142 MB / 0.6513 GB, free: 2.402 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007405/0.1688, allocations: 351.9 kB / 0.6517 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.64e-05/0.1688, allocations: 1.188 kB / 0.6517 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.611e-05/0.1689, allocations: 3.938 kB / 0.6517 GB, free: 2.055 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.061e-05/0.1689, allocations: 2.062 kB / 0.6517 GB, free: 2.055 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004316/0.1693, allocations: 75.78 kB / 0.6518 GB, free: 1.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.012e-05/0.1694, allocations: 23.92 kB / 0.6518 GB, free: 1.957 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.58e-05/0.1695, allocations: 12.67 kB / 0.6518 GB, free: 1.945 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.444e-05/0.1696, allocations: 11.94 kB / 0.6518 GB, free: 1.934 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.482e-05/0.1696, allocations: 18.28 kB / 0.6518 GB, free: 1.918 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.1696, allocations: 0 / 0.6518 GB, free: 1.918 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003826/0.17, allocations: 259.7 kB / 0.6521 GB, free: 1.664 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.474e-05/0.1701, allocations: 8 kB / 0.6521 GB, free: 1.656 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.152e-05/0.1701, allocations: 25.7 kB / 0.6521 GB, free: 1.625 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.1703, allocations: 71.88 kB / 0.6522 GB, free: 1.555 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.1703, allocations: 2 kB / 0.6522 GB, free: 1.555 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1703, allocations: 0 / 0.6522 GB, free: 1.555 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.1703, allocations: 0 / 0.6522 GB, free: 1.555 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004778/0.1708, allocations: 356.8 kB / 0.6525 GB, free: 1.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.1708, allocations: 12.03 kB / 0.6525 GB, free: 1.148 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.178e-05/0.1709, allocations: 8.453 kB / 0.6525 GB, free: 1.141 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.1711, allocations: 167 kB / 0.6527 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.1711, allocations: 5.547 kB / 0.6527 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.908e-06/0.1711, allocations: 0 / 0.6527 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.1713, allocations: 54.73 kB / 0.6528 GB, free: 0.875 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.1713, allocations: 0.6875 kB / 0.6528 GB, free: 0.875 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.1713, allocations: 0 / 0.6528 GB, free: 0.875 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.1714, allocations: 4.594 kB / 0.6528 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.1715, allocations: 42.12 kB / 0.6528 GB, free: 0.832 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003876/0.1719, allocations: 262.1 kB / 0.653 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.1721, allocations: 49.11 kB / 0.6531 GB, free: 484 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.348e-05/0.1722, allocations: 21.62 kB / 0.6531 GB, free: 460 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007058/0.1729, allocations: 464.5 kB / 0.6536 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.1729, allocations: 35.72 kB / 0.6536 GB, free: 15.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=2): time 1.423e-06/0.1729, allocations: 0 / 0.6536 GB, free: 15.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=2): time 0.0004049/0.1734, allocations: 109.7 kB / 0.6537 GB, free: 15.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.1734, allocations: 55.34 kB / 0.6538 GB, free: 15.69 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.514e-05/0.1735, allocations: 106.5 kB / 0.6539 GB, free: 15.57 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.1735, allocations: 25.7 kB / 0.6539 GB, free: 15.54 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.559e-05/0.1736, allocations: 85.02 kB / 0.654 GB, free: 15.46 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.1736, allocations: 8.656 kB / 0.654 GB, free: 15.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-06/0.1736, allocations: 0 / 0.654 GB, free: 15.45 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1737, allocations: 321.2 kB / 0.6543 GB, free: 15.13 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.829e-05/0.1738, allocations: 19.98 kB / 0.6543 GB, free: 15.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.778e-05/0.1739, allocations: 22.11 kB / 0.6543 GB, free: 15.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.497e-05/0.174, allocations: 24.8 kB / 0.6543 GB, free: 15.07 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.174, allocations: 0 / 0.6543 GB, free: 15.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002183/0.1742, allocations: 80.53 kB / 0.6544 GB, free: 14.98 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1742, allocations: 4 kB / 0.6544 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.1743, allocations: 9.531 kB / 0.6544 GB, free: 14.97 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.1743, allocations: 0 / 0.6544 GB, free: 14.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.182e-05/0.1744, allocations: 11.98 kB / 0.6544 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.1744, allocations: 0.5625 kB / 0.6544 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.602e-05/0.1744, allocations: 9.703 kB / 0.6544 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.1744, allocations: 4 kB / 0.6545 GB, free: 14.95 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.451e-05/0.1745, allocations: 115.1 kB / 0.6546 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.365e-05/0.1746, allocations: 9 kB / 0.6546 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002253/0.1748, allocations: 85.41 kB / 0.6547 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1748, allocations: 0 / 0.6547 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1748, allocations: 0 / 0.6547 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1748, allocations: 0 / 0.6547 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.175, allocations: 169.6 kB / 0.6548 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.175, allocations: 0 / 0.6548 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.835e-05/0.1751, allocations: 19.95 kB / 0.6548 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.1751, allocations: 0 / 0.6548 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.1751, allocations: 0 / 0.6548 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1751, allocations: 0 / 0.6548 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1751, allocations: 0 / 0.6548 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.1754, allocations: 175.5 kB / 0.655 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.695e-05/0.1754, allocations: 81.06 kB / 0.6551 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.1754, allocations: 0 / 0.6551 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.449e-05/0.1755, allocations: 11.98 kB / 0.6551 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.1756, allocations: 3.938 kB / 0.6551 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.1756, allocations: 0 / 0.6551 GB, free: 14.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.688e-05/0.1756, allocations: 99.55 kB / 0.6552 GB, free: 14.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1756, allocations: 0 / 0.6552 GB, free: 14.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002324/0.1759, allocations: 23.84 kB / 0.6552 GB, free: 14.07 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001783/0.1761, allocations: 107.2 kB / 0.6553 GB, free: 13.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002118/0.1763, allocations: 51.95 kB / 0.6554 GB, free: 13.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1763, allocations: 0 / 0.6554 GB, free: 13.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 8.156e-05/0.1764, allocations: 23.98 kB / 0.6554 GB, free: 13.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.1767, allocations: 0 / 0.6554 GB, free: 13.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003037/0.177, allocations: 142.5 kB / 0.6555 GB, free: 13.71 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.1773, allocations: 0.677 MB / 0.6562 GB, free: 13.01 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.48e-05/0.1773, allocations: 7.438 kB / 0.6562 GB, free: 13 MB / 462.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1773, allocations: 0 / 0.6562 GB, free: 13 MB / 462.1 MB Notification: Performance of Templates: time 0.002356/0.1797, allocations: 0.7 MB / 0.6569 GB, free: 12.31 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.makefile make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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 OMCppBuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPowerCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPowerCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPowerCalcHelperMain.o] Error 1