Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007925/0.0007927, allocations: 99.98 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.0009273/0.0009274, allocations: 180.7 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.444/1.444, allocations: 223.2 MB / 240.6 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.468/2.468, allocations: 390.5 MB / 0.6662 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003807/0.0003808, allocations: 12 kB / 0.8154 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8548/0.8552, allocations: 142.3 MB / 0.9544 GB, free: 8.266 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0009057/0.8562, allocations: 393.5 kB / 0.9548 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001346/0.8576, allocations: 1.028 MB / 0.9558 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.46e-05/0.8576, allocations: 0 / 0.9558 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.155e-05/0.8576, allocations: 4.906 kB / 0.9558 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.219e-05/0.8577, allocations: 9 kB / 0.9558 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.858, allocations: 28.95 kB / 0.9558 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.886e-05/0.8581, allocations: 43.28 kB / 0.9559 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.809e-05/0.8582, allocations: 8.188 kB / 0.9559 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.098e-05/0.8583, allocations: 18.94 kB / 0.9559 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.589e-05/0.8584, allocations: 18.83 kB / 0.9559 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.8584, allocations: 1.75 kB / 0.9559 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.349e-05/0.8585, allocations: 20.02 kB / 0.9559 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.625e-05/0.8585, allocations: 5.422 kB / 0.9559 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.752e-05/0.8585, allocations: 33.77 kB / 0.956 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.915e-05/0.8586, allocations: 35.98 kB / 0.956 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.8586, allocations: 5.234 kB / 0.956 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8587, allocations: 4 kB / 0.956 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.167e-06/0.8587, allocations: 0 / 0.956 GB, free: 6.969 MB / 0.7169 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.0005566/0.8592, allocations: 363.4 kB / 0.9564 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.8593, allocations: 8.5 kB / 0.9564 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.868e-05/0.8593, allocations: 11.14 kB / 0.9564 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.8594, allocations: 173.2 kB / 0.9566 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.8595, allocations: 1.094 kB / 0.9566 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.8595, allocations: 2.156 kB / 0.9566 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.8597, allocations: 72.2 kB / 0.9566 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.8597, allocations: 0 / 0.9566 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.8597, allocations: 5.016 kB / 0.9566 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.8597, allocations: 1.25 kB / 0.9566 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.8599, allocations: 60.56 kB / 0.9567 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004208/0.8604, allocations: 274.5 kB / 0.9569 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.8605, allocations: 62.2 kB / 0.957 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.362e-05/0.8606, allocations: 35.73 kB / 0.957 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.8607, allocations: 0 / 0.957 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002016/0.8609, allocations: 81.75 kB / 0.9571 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.213e-06/0.8609, allocations: 3.938 kB / 0.9571 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004311/0.8613, allocations: 149.1 kB / 0.9573 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.8614, allocations: 52.44 kB / 0.9573 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.355e-05/0.8615, allocations: 110.3 kB / 0.9574 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.8615, allocations: 29.64 kB / 0.9574 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.116e-05/0.8615, allocations: 86.23 kB / 0.9575 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.713e-05/0.8615, allocations: 13.19 kB / 0.9575 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.8615, allocations: 0.5938 kB / 0.9575 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.411e-05/0.8616, allocations: 324.3 kB / 0.9579 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.751e-05/0.8617, allocations: 27.27 kB / 0.9579 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.8618, allocations: 55.56 kB / 0.9579 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.8619, allocations: 36.11 kB / 0.958 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.8619, allocations: 0 / 0.958 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002669/0.8622, allocations: 117.5 kB / 0.9581 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.8622, allocations: 5.406 kB / 0.9581 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.8622, allocations: 0 / 0.9581 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.8623, allocations: 6.109 kB / 0.9581 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.8624, allocations: 16.39 kB / 0.9581 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.8624, allocations: 1.594 kB / 0.9581 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.403e-05/0.8625, allocations: 18.73 kB / 0.9581 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.8625, allocations: 2.656 kB / 0.9581 GB, free: 4.984 MB / 0.7169 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 7.421e-05/0.8626, allocations: 117.9 kB / 0.9582 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.8626, allocations: 2.344 kB / 0.9582 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002684/0.8628, allocations: 114.4 kB / 0.9584 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.8629, allocations: 5.141 kB / 0.9584 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.8629, allocations: 0 / 0.9584 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.8629, allocations: 3.984 kB / 0.9584 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003917/0.8633, allocations: 366.5 kB / 0.9587 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.8633, allocations: 3.984 kB / 0.9587 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.615e-05/0.8633, allocations: 8.188 kB / 0.9587 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.8634, allocations: 5.359 kB / 0.9587 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.8634, allocations: 0 / 0.9587 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.8634, allocations: 1.438 kB / 0.9587 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.8634, allocations: 3.984 kB / 0.9587 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002622/0.8637, allocations: 202.5 kB / 0.9589 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.682e-05/0.8637, allocations: 82.11 kB / 0.959 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.8637, allocations: 12.88 kB / 0.959 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.031e-05/0.8638, allocations: 16.16 kB / 0.959 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.349e-05/0.8639, allocations: 10.33 kB / 0.959 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.8639, allocations: 2.344 kB / 0.959 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.969e-05/0.8639, allocations: 79.66 kB / 0.9591 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8639, allocations: 0 / 0.9591 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002505/0.8642, allocations: 21.95 kB / 0.9591 GB, free: 4.043 MB / 0.7169 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.0001626/0.8644, allocations: 107.2 kB / 0.9592 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002364/0.8646, allocations: 77.36 kB / 0.9593 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.8646, allocations: 0 / 0.9593 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.8647, allocations: 35.47 kB / 0.9594 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.865, allocations: 15.23 kB / 0.9594 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003122/0.8653, allocations: 164.1 kB / 0.9595 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001333/0.8655, allocations: 0.682 MB / 0.9602 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.465e-05/0.8655, allocations: 10.06 kB / 0.9602 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.8655, allocations: 0 / 0.9602 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of Templates: time 0.002751/0.8683, allocations: 0.8427 MB / 0.961 GB, free: 2.602 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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_9_Buildings.Controls.OBC.CDL.Discrete.Examples.SamplerCalcHelperMain.o OMCppBuildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.SamplerCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.SamplerCalcHelperMain.o] Error 1