Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008083/0.0008077, allocations: 99.83 kB / 15.71 MB, free: 452 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.0009501/0.0009504, allocations: 177.6 kB / 16.58 MB, free: 6.422 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.518/1.518, allocations: 223.3 MB / 240.6 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.752/2.752, allocations: 436.7 MB / 0.7113 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004014/0.0004016, allocations: 12.22 kB / 0.8717 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8584/0.8588, allocations: 153.6 MB / 1.022 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.0008952/0.8597, allocations: 396.9 kB / 1.022 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.861, allocations: 1.035 MB / 1.023 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.222e-05/0.861, allocations: 0 / 1.023 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.618e-05/0.8611, allocations: 3.938 kB / 1.023 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.653e-05/0.8611, allocations: 3.984 kB / 1.023 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000217/0.8614, allocations: 31.91 kB / 1.023 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.978e-05/0.8614, allocations: 43.84 kB / 1.023 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.318e-05/0.8615, allocations: 8 kB / 1.023 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.652e-05/0.8616, allocations: 15.92 kB / 1.023 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.047e-05/0.8617, allocations: 23.92 kB / 1.023 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.8617, allocations: 0 / 1.023 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.886e-05/0.8617, allocations: 19.97 kB / 1.023 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.8618, allocations: 11.98 kB / 1.023 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.65e-05/0.8618, allocations: 25.7 kB / 1.023 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.862, allocations: 31.94 kB / 1.023 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.862, allocations: 0 / 1.023 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.854e-06/0.862, allocations: 3.938 kB / 1.023 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.862, allocations: 0 / 1.023 GB, free: 15.45 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006616/0.8627, allocations: 369.2 kB / 1.024 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.8627, allocations: 19.97 kB / 1.024 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.8628, allocations: 7.906 kB / 1.024 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.8629, allocations: 167.1 kB / 1.024 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.872e-05/0.8629, allocations: 0 / 1.024 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.863, allocations: 11.94 kB / 1.024 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002086/0.8632, allocations: 69.61 kB / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.8632, allocations: 0 / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.8632, allocations: 4 kB / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.8632, allocations: 4 kB / 1.024 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.8634, allocations: 55.89 kB / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004466/0.8639, allocations: 268.9 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.864, allocations: 58.55 kB / 1.024 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.881e-05/0.8642, allocations: 44.95 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.8642, allocations: 0 / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/0.8644, allocations: 87.22 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/0.8644, allocations: 4 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0003927/0.8648, allocations: 125.6 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.8649, allocations: 59.41 kB / 1.025 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.576e-05/0.8649, allocations: 105.8 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.865, allocations: 29.7 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.865, allocations: 80.14 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.305e-05/0.8651, allocations: 23.81 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.8651, allocations: 0 / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.8652, allocations: 314.8 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.8653, allocations: 35.92 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.8654, allocations: 59.34 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.8656, allocations: 35.94 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.8656, allocations: 0 / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.00025/0.8658, allocations: 117.5 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.8659, allocations: 8.094 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.8659, allocations: 4 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.8659, allocations: 0 / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.866, allocations: 19.92 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.866, allocations: 0 / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.326e-05/0.8661, allocations: 11.98 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.8661, allocations: 4 kB / 1.025 GB, free: 13.06 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 9.076e-05/0.8662, allocations: 125.8 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.457e-06/0.8662, allocations: 0 / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002816/0.8665, allocations: 118.4 kB / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.8665, allocations: 4 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.403e-06/0.8665, allocations: 8 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.8665, allocations: 7.984 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004262/0.867, allocations: 354.5 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.867, allocations: 0 / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.14e-05/0.867, allocations: 15.98 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.867, allocations: 0 / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.8671, allocations: 4 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.8671, allocations: 3.938 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.8671, allocations: 4 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.8674, allocations: 199.5 kB / 1.026 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-05/0.8674, allocations: 88.95 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.8674, allocations: 4 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.244e-05/0.8675, allocations: 11.98 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.8676, allocations: 7.984 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.8676, allocations: 0 / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.322e-05/0.8677, allocations: 87.28 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8677, allocations: 0 / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000257/0.8679, allocations: 15.98 kB / 1.026 GB, free: 11.92 MB / 0.7794 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001787/0.8681, allocations: 95.25 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002434/0.8684, allocations: 79.89 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.8684, allocations: 0 / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.8685, allocations: 39.91 kB / 1.027 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.8688, allocations: 18.12 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003696/0.8692, allocations: 172.5 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.8696, allocations: 0.6848 MB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.051e-05/0.8697, allocations: 15.38 kB / 1.028 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.8697, allocations: 0 / 1.028 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of Templates: time 0.002781/0.8725, allocations: 0.8469 MB / 1.028 GB, free: 9.918 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.SamplerCalcHelperMain.o OMCppBuildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.SamplerCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.SamplerCalcHelperMain.o] Error 1