Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01084/0.01084, allocations: 100.8 kB / 15.87 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 191.6 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.766/1.766, allocations: 205.1 MB / 222.6 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.83/1.83, allocations: 292.3 MB / 0.5491 GB, free: 13.65 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001408, allocations: 65.39 kB / 0.6715 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3057, allocations: 114.5 MB / 0.7833 GB, free: 14 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002097/0.3078, allocations: 0.7348 MB / 0.7841 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0014/0.3093, allocations: 1.048 MB / 0.7851 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.668e-05/0.3093, allocations: 0 / 0.7851 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.79e-05/0.3094, allocations: 3.938 kB / 0.7851 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.054e-05/0.3094, allocations: 3.984 kB / 0.7851 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.3097, allocations: 39.91 kB / 0.7851 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.707e-05/0.3098, allocations: 39.86 kB / 0.7852 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.3099, allocations: 11.98 kB / 0.7852 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.785e-05/0.31, allocations: 7.984 kB / 0.7852 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.453e-05/0.31, allocations: 19.92 kB / 0.7852 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.31, allocations: 0 / 0.7852 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.642e-05/0.3101, allocations: 23.92 kB / 0.7852 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.287e-05/0.3102, allocations: 11.92 kB / 0.7852 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.211e-05/0.3102, allocations: 15.94 kB / 0.7853 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.3103, allocations: 39.92 kB / 0.7853 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3103, allocations: 4 kB / 0.7853 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3103, allocations: 0 / 0.7853 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.3103, allocations: 3.938 kB / 0.7853 GB, free: 11.98 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005419/0.3109, allocations: 351.6 kB / 0.7856 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3109, allocations: 12.03 kB / 0.7856 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.311, allocations: 8.844 kB / 0.7857 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.3111, allocations: 168.3 kB / 0.7858 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.3111, allocations: 12.36 kB / 0.7858 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.3111, allocations: 4.375 kB / 0.7858 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.3113, allocations: 58.23 kB / 0.7859 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.3114, allocations: 192 / 0.7859 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.3114, allocations: 3.938 kB / 0.7859 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.3114, allocations: 0 / 0.7859 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.3116, allocations: 43.89 kB / 0.7859 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004664/0.3121, allocations: 276.9 kB / 0.7862 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.3122, allocations: 50.48 kB / 0.7862 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.104e-05/0.3123, allocations: 24.94 kB / 0.7863 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.3123, allocations: 0 / 0.7863 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002018/0.3125, allocations: 83.3 kB / 0.7863 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.543e-06/0.3125, allocations: 0 / 0.7863 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0003819/0.3129, allocations: 97.64 kB / 0.7864 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.313, allocations: 51.41 kB / 0.7865 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.765e-05/0.3131, allocations: 109.8 kB / 0.7866 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.3131, allocations: 33.7 kB / 0.7866 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.661e-05/0.3132, allocations: 92.03 kB / 0.7867 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.3132, allocations: 7.906 kB / 0.7867 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.54e-05/0.3132, allocations: 17.72 kB / 0.7867 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3133, allocations: 322.8 kB / 0.787 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.773e-05/0.3134, allocations: 19.98 kB / 0.7871 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.3136, allocations: 51.41 kB / 0.7871 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/0.3138, allocations: 83.27 kB / 0.7872 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3138, allocations: 4 kB / 0.7872 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000247/0.314, allocations: 97.5 kB / 0.7873 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.3141, allocations: 4 kB / 0.7873 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3141, allocations: 480 / 0.7873 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3141, allocations: 4 kB / 0.7873 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.3142, allocations: 11.98 kB / 0.7873 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3142, allocations: 3.938 kB / 0.7873 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.364e-05/0.3143, allocations: 20.05 kB / 0.7873 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.3143, allocations: 3.938 kB / 0.7873 GB, free: 9.641 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.3144, allocations: 122.4 kB / 0.7875 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.405e-05/0.3144, allocations: 7.906 kB / 0.7875 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.3147, allocations: 89.92 kB / 0.7875 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3147, allocations: 4 kB / 0.7875 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3148, allocations: 4 kB / 0.7876 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3148, allocations: 0 / 0.7876 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004398/0.3152, allocations: 342.4 kB / 0.7879 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3152, allocations: 0 / 0.7879 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.627e-05/0.3153, allocations: 4 kB / 0.7879 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3153, allocations: 0 / 0.7879 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.3153, allocations: 11.98 kB / 0.7879 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3153, allocations: 0 / 0.7879 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3153, allocations: 7.984 kB / 0.7879 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002703/0.3156, allocations: 183.4 kB / 0.7881 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.66e-05/0.3156, allocations: 85.02 kB / 0.7882 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.3157, allocations: 0 / 0.7882 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.23e-05/0.3158, allocations: 7.984 kB / 0.7882 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.672e-05/0.3158, allocations: 0 / 0.7882 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.3158, allocations: 15.92 kB / 0.7882 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.227e-05/0.3159, allocations: 83.28 kB / 0.7883 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3159, allocations: 0 / 0.7883 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002399/0.3161, allocations: 16 kB / 0.7883 GB, free: 8.566 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000156/0.3163, allocations: 103.2 kB / 0.7884 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002577/0.3165, allocations: 64.02 kB / 0.7884 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3166, allocations: 0 / 0.7884 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.3167, allocations: 23.98 kB / 0.7885 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.3169, allocations: 7.984 kB / 0.7885 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000355/0.3173, allocations: 168.9 kB / 0.7886 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002412/0.3176, allocations: 0.685 MB / 0.7893 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.032e-05/0.3176, allocations: 11.44 kB / 0.7893 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of SimCode: time 8.32e-07/0.3176, allocations: 0 / 0.7893 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of Templates: time 0.00228/0.3199, allocations: 0.8168 MB / 0.7901 GB, free: 6.629 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelayCalcHelperMain.o OMCppBuildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelayCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelayCalcHelperMain.o] Error 1