Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 98.8 kB / 16.02 MB, free: 76 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.003492/0.003492, allocations: 185 kB / 16.92 MB, free: 6.895 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.88/1.88, allocations: 205.4 MB / 223.1 MB, free: 5.516 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.937/1.937, allocations: 292.7 MB / 0.5509 GB, free: 14.49 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.0005975/0.0005976, allocations: 16.78 kB / 0.675 GB, free: 25.9 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3703, allocations: 116.3 MB / 0.7885 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001155/0.3715, allocations: 417.4 kB / 0.7889 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00181/0.3733, allocations: 1.056 MB / 0.79 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.963e-05/0.3734, allocations: 0 / 0.79 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.787e-05/0.3734, allocations: 0 / 0.79 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.332e-05/0.3735, allocations: 3.938 kB / 0.79 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.3739, allocations: 39.89 kB / 0.79 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001066/0.374, allocations: 39.92 kB / 0.79 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.3741, allocations: 15.98 kB / 0.7901 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.951e-05/0.3742, allocations: 19.92 kB / 0.7901 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.653e-05/0.3743, allocations: 19.91 kB / 0.7901 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.3743, allocations: 4 kB / 0.7901 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.711e-05/0.3744, allocations: 19.98 kB / 0.7901 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.702e-05/0.3745, allocations: 3.938 kB / 0.7901 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.821e-05/0.3745, allocations: 49.61 kB / 0.7902 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.3746, allocations: 31.92 kB / 0.7902 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3747, allocations: 0 / 0.7902 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.575e-06/0.3747, allocations: 3.938 kB / 0.7902 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.3747, allocations: 8 kB / 0.7902 GB, free: 9.879 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000717/0.3754, allocations: 367.6 kB / 0.7906 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.3755, allocations: 8.031 kB / 0.7906 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.871e-05/0.3755, allocations: 8.844 kB / 0.7906 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.3757, allocations: 172.3 kB / 0.7907 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.3757, allocations: 8.375 kB / 0.7908 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.3757, allocations: 384 / 0.7908 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.376, allocations: 74.2 kB / 0.7908 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.376, allocations: 192 / 0.7908 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.376, allocations: 3.938 kB / 0.7908 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.376, allocations: 4 kB / 0.7908 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.3763, allocations: 59.89 kB / 0.7909 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005598/0.3768, allocations: 272.8 kB / 0.7912 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.377, allocations: 74.47 kB / 0.7912 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.3772, allocations: 40.89 kB / 0.7913 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.3772, allocations: 0 / 0.7913 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002486/0.3775, allocations: 87.31 kB / 0.7913 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.3775, allocations: 0 / 0.7913 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005028/0.378, allocations: 141.7 kB / 0.7915 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.782e-05/0.378, allocations: 51.41 kB / 0.7915 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.958e-05/0.3781, allocations: 109.8 kB / 0.7916 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.3782, allocations: 29.7 kB / 0.7917 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.221e-05/0.3782, allocations: 88.05 kB / 0.7917 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.79e-05/0.3783, allocations: 19.73 kB / 0.7918 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-05/0.3783, allocations: 17.72 kB / 0.7918 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002004/0.3785, allocations: 310.8 kB / 0.7921 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.3786, allocations: 39.97 kB / 0.7921 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.3788, allocations: 64.2 kB / 0.7922 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002382/0.379, allocations: 112.1 kB / 0.7923 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.379, allocations: 0 / 0.7923 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003045/0.3794, allocations: 125.5 kB / 0.7924 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.3794, allocations: 4 kB / 0.7924 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3794, allocations: 8.125 kB / 0.7924 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.3794, allocations: 0 / 0.7924 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.3796, allocations: 19.98 kB / 0.7924 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.3796, allocations: 4.25 kB / 0.7924 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.926e-05/0.3797, allocations: 19.89 kB / 0.7925 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.3797, allocations: 4 kB / 0.7925 GB, free: 7.32 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: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001429/0.3798, allocations: 121.7 kB / 0.7926 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.191e-05/0.3799, allocations: 8 kB / 0.7926 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003115/0.3802, allocations: 114 kB / 0.7927 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3802, allocations: 4 kB / 0.7927 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3802, allocations: 0 / 0.7927 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3802, allocations: 0 / 0.7927 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005485/0.3808, allocations: 378.3 kB / 0.7931 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3808, allocations: 0 / 0.7931 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.183e-05/0.3808, allocations: 12 kB / 0.7931 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3809, allocations: 7.984 kB / 0.7931 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.3809, allocations: 0 / 0.7931 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3809, allocations: 4 kB / 0.7931 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3809, allocations: 192 / 0.7931 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003276/0.3812, allocations: 215.4 kB / 0.7933 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.497e-05/0.3813, allocations: 84.95 kB / 0.7934 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.3813, allocations: 8 kB / 0.7934 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.562e-05/0.3814, allocations: 11.98 kB / 0.7934 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.3815, allocations: 0 / 0.7934 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.3815, allocations: 7.938 kB / 0.7934 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.154e-05/0.3816, allocations: 91.52 kB / 0.7935 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of sort global known variables: time 5.11e-07/0.3816, allocations: 4 kB / 0.7935 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002395/0.3818, allocations: 15.94 kB / 0.7935 GB, free: 6.148 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000255/0.3821, allocations: 107.3 kB / 0.7936 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000292/0.3824, allocations: 84.06 kB / 0.7937 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3824, allocations: 0 / 0.7937 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.3825, allocations: 43.91 kB / 0.7937 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.3828, allocations: 6.953 kB / 0.7937 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004574/0.3833, allocations: 174.4 kB / 0.7939 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.3837, allocations: 0.6848 MB / 0.7946 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.407e-05/0.3837, allocations: 15.44 kB / 0.7946 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of SimCode: time 3.81e-07/0.3837, allocations: 0 / 0.7946 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of Templates: time 0.002822/0.3865, allocations: 0.8946 MB / 0.7955 GB, free: 4.082 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHoldCalcHelperMain.o OMCppBuildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHoldCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHoldCalcHelperMain.o] Error 1