Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008725/0.0008725, allocations: 102.4 kB / 15.71 MB, free: 440 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.0009831/0.0009831, allocations: 178.9 kB / 16.58 MB, free: 6.09 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.676/1.676, allocations: 205.4 MB / 222.8 MB, free: 5.609 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.854/1.854, allocations: 292.7 MB / 0.5505 GB, free: 14.57 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.0005435/0.0005435, allocations: 19.44 kB / 0.6744 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3165, allocations: 116.3 MB / 0.7879 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001218/0.3178, allocations: 0.5214 MB / 0.7884 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001655/0.3195, allocations: 1.181 MB / 0.7896 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.944e-05/0.3196, allocations: 0 / 0.7896 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.107e-05/0.3196, allocations: 3.938 kB / 0.7896 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.038e-05/0.3197, allocations: 11.92 kB / 0.7896 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005355/0.3202, allocations: 131.1 kB / 0.7897 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.3204, allocations: 131.6 kB / 0.7899 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.3205, allocations: 12.23 kB / 0.7899 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3206, allocations: 51.89 kB / 0.7899 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.6e-05/0.3207, allocations: 51.8 kB / 0.79 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.3208, allocations: 8 kB / 0.79 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.334e-05/0.3208, allocations: 23.92 kB / 0.79 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.622e-05/0.3209, allocations: 15.98 kB / 0.79 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.483e-05/0.3209, allocations: 41.64 kB / 0.7901 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.3211, allocations: 99.98 kB / 0.7902 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.3211, allocations: 0 / 0.7902 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.294e-06/0.3211, allocations: 0 / 0.7902 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.3211, allocations: 0 / 0.7902 GB, free: 9.633 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007086/0.3218, allocations: 432.8 kB / 0.7906 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3219, allocations: 15.97 kB / 0.7906 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.321e-05/0.322, allocations: 11.91 kB / 0.7906 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.3221, allocations: 186.9 kB / 0.7908 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.3221, allocations: 7.938 kB / 0.7908 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.693e-05/0.3222, allocations: 12 kB / 0.7908 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.3225, allocations: 105.6 kB / 0.7909 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.3225, allocations: 4 kB / 0.7909 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.3225, allocations: 4 kB / 0.7909 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3225, allocations: 0 / 0.7909 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000318/0.3228, allocations: 107.9 kB / 0.791 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006221/0.3235, allocations: 388.5 kB / 0.7914 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.3237, allocations: 106.6 kB / 0.7915 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.3239, allocations: 68.75 kB / 0.7915 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.324, allocations: 4 kB / 0.7915 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002755/0.3242, allocations: 123.3 kB / 0.7917 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.3243, allocations: 0 / 0.7917 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006561/0.3249, allocations: 245.4 kB / 0.7919 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.325, allocations: 63.34 kB / 0.792 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.3251, allocations: 129.8 kB / 0.7921 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.3252, allocations: 33.7 kB / 0.7921 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.613e-05/0.3253, allocations: 100 kB / 0.7922 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.23e-05/0.3253, allocations: 27.64 kB / 0.7922 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.839e-05/0.3253, allocations: 8 kB / 0.7922 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3255, allocations: 322.8 kB / 0.7926 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.3257, allocations: 87.94 kB / 0.7926 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.326, allocations: 128.1 kB / 0.7928 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.3262, allocations: 117.4 kB / 0.7929 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3262, allocations: 0 / 0.7929 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006025/0.3268, allocations: 287 kB / 0.7931 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/0.3269, allocations: 41.69 kB / 0.7932 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.3269, allocations: 4 kB / 0.7932 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.3269, allocations: 0 / 0.7932 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.3271, allocations: 32.05 kB / 0.7932 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.3271, allocations: 3.953 kB / 0.7932 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.3274, allocations: 66.61 kB / 0.7933 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.3274, allocations: 8 kB / 0.7933 GB, free: 6.164 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001138/0.3275, allocations: 130.4 kB / 0.7934 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.295e-05/0.3275, allocations: 11.81 kB / 0.7934 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004677/0.328, allocations: 193.9 kB / 0.7936 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.328, allocations: 0 / 0.7936 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.328, allocations: 3.938 kB / 0.7936 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3281, allocations: 7.938 kB / 0.7936 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006777/0.3287, allocations: 471 kB / 0.7941 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3288, allocations: 0 / 0.7941 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.951e-05/0.3289, allocations: 23.97 kB / 0.7941 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3289, allocations: 0 / 0.7941 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.3289, allocations: 4 kB / 0.7941 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.3289, allocations: 3.953 kB / 0.7941 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3289, allocations: 0 / 0.7941 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004486/0.3294, allocations: 291.3 kB / 0.7944 GB, free: 4.961 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.943e-05/0.3294, allocations: 85.02 kB / 0.7945 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.657e-05/0.3295, allocations: 11.98 kB / 0.7945 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.3296, allocations: 15.98 kB / 0.7945 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.884e-05/0.3297, allocations: 19.92 kB / 0.7945 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.3297, allocations: 4 kB / 0.7945 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.091e-05/0.3298, allocations: 99.27 kB / 0.7946 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3298, allocations: 0 / 0.7946 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002666/0.33, allocations: 28 kB / 0.7946 GB, free: 4.684 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: 9 (zeroCrossing.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002101/0.3302, allocations: 111.2 kB / 0.7947 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000552/0.3308, allocations: 259.2 kB / 0.795 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3308, allocations: 0 / 0.795 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.331, allocations: 80.14 kB / 0.7951 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.3313, allocations: 22.33 kB / 0.7951 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004922/0.3318, allocations: 237.2 kB / 0.7953 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.3322, allocations: 0.7004 MB / 0.796 GB, free: 3.211 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.122e-05/0.3322, allocations: 15.44 kB / 0.796 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of SimCode: time 2.91e-07/0.3322, allocations: 0 / 0.796 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of Templates: time 0.003718/0.336, allocations: 1.622 MB / 0.7976 GB, free: 1.586 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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 OMCppBuildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossingCalcHelperMain.o OMCppBuildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossingCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossingCalcHelperMain.o] Error 1