Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006624/0.006624, allocations: 101.1 kB / 15.88 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.001123/0.001123, allocations: 190.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.742/1.742, allocations: 205.1 MB / 222.7 MB, free: 4.941 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.91/1.91, allocations: 292.3 MB / 0.5491 GB, free: 13.69 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.001417/0.001417, allocations: 63.08 kB / 0.6715 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3584, allocations: 114.5 MB / 0.7833 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.003115/0.3616, allocations: 0.945 MB / 0.7843 GB, free: 13.08 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002151/0.3638, allocations: 1.333 MB / 0.7856 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.112e-05/0.3638, allocations: 7.875 kB / 0.7856 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.364, allocations: 11.92 kB / 0.7856 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001591/0.3642, allocations: 23.78 kB / 0.7856 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006779/0.3649, allocations: 239.4 kB / 0.7858 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002669/0.3651, allocations: 255.5 kB / 0.7861 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.3653, allocations: 29.11 kB / 0.7861 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.3655, allocations: 119.7 kB / 0.7862 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.3657, allocations: 107.6 kB / 0.7863 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.438e-05/0.3657, allocations: 12 kB / 0.7863 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.876e-05/0.3658, allocations: 27.92 kB / 0.7864 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.874e-05/0.3659, allocations: 43.88 kB / 0.7864 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.3661, allocations: 95.61 kB / 0.7865 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.3663, allocations: 187.8 kB / 0.7867 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3663, allocations: 0 / 0.7867 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.143e-06/0.3663, allocations: 0 / 0.7867 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.3663, allocations: 0 / 0.7867 GB, free: 10.59 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001006/0.3673, allocations: 0.53 MB / 0.7872 GB, free: 10 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.3674, allocations: 15.97 kB / 0.7872 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.879e-05/0.3675, allocations: 24.75 kB / 0.7872 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002636/0.3678, allocations: 232 kB / 0.7874 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.3678, allocations: 16.36 kB / 0.7875 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/0.3678, allocations: 16.38 kB / 0.7875 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.3682, allocations: 190.7 kB / 0.7877 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.3683, allocations: 192 / 0.7877 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.3683, allocations: 3.938 kB / 0.7877 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.3683, allocations: 4 kB / 0.7877 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.3685, allocations: 92.17 kB / 0.7878 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006587/0.3692, allocations: 472.6 kB / 0.7882 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/0.3694, allocations: 138.4 kB / 0.7883 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.3696, allocations: 92.81 kB / 0.7884 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.3697, allocations: 4 kB / 0.7884 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003521/0.37, allocations: 219.8 kB / 0.7886 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/0.37, allocations: 0 / 0.7886 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.000865/0.3709, allocations: 447.5 kB / 0.7891 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.371, allocations: 59.39 kB / 0.7891 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.3711, allocations: 144.5 kB / 0.7893 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.815e-05/0.3712, allocations: 41.69 kB / 0.7893 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.877e-05/0.3713, allocations: 108.6 kB / 0.7894 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.949e-05/0.3713, allocations: 63.25 kB / 0.7895 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.3715, allocations: 89.98 kB / 0.7896 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.3716, allocations: 334.8 kB / 0.7899 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/0.3719, allocations: 144.7 kB / 0.79 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.3723, allocations: 213.2 kB / 0.7902 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005804/0.3728, allocations: 362.3 kB / 0.7906 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3729, allocations: 4 kB / 0.7906 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008807/0.3738, allocations: 498.7 kB / 0.791 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.933e-05/0.3738, allocations: 67.39 kB / 0.7911 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.3738, allocations: 4 kB / 0.7911 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.3739, allocations: 3.938 kB / 0.7911 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.3741, allocations: 59.84 kB / 0.7912 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.3741, allocations: 7.938 kB / 0.7912 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.3746, allocations: 83.81 kB / 0.7913 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.232e-05/0.3746, allocations: 23.98 kB / 0.7913 GB, free: 5.559 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0001712/0.3748, allocations: 157.8 kB / 0.7914 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.482e-05/0.3748, allocations: 19.8 kB / 0.7914 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.3749, allocations: 21.88 kB / 0.7915 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.3749, allocations: 4 kB / 0.7915 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3749, allocations: 0 / 0.7915 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3749, allocations: 3.938 kB / 0.7915 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008645/0.3758, allocations: 0.6583 MB / 0.7921 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3758, allocations: 0 / 0.7921 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.35e-05/0.3758, allocations: 7.938 kB / 0.7921 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3759, allocations: 0 / 0.7921 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.3759, allocations: 11.97 kB / 0.7921 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3759, allocations: 11.94 kB / 0.7921 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3759, allocations: 0 / 0.7921 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006549/0.3766, allocations: 458.7 kB / 0.7926 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.3766, allocations: 92.92 kB / 0.7927 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.604e-05/0.3767, allocations: 15.98 kB / 0.7927 GB, free: 4.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.3768, allocations: 7.922 kB / 0.7927 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.214e-05/0.3769, allocations: 15.98 kB / 0.7927 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/0.377, allocations: 31.91 kB / 0.7927 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.558e-05/0.377, allocations: 99.27 kB / 0.7928 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.3e-07/0.377, allocations: 0 / 0.7928 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003506/0.3774, allocations: 67.91 kB / 0.7929 GB, free: 3.793 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: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0002434/0.3777, allocations: 137.5 kB / 0.793 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006917/0.3784, allocations: 450.5 kB / 0.7935 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3784, allocations: 0 / 0.7935 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.3786, allocations: 119.9 kB / 0.7936 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.379, allocations: 35.09 kB / 0.7936 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006797/0.3797, allocations: 385.7 kB / 0.794 GB, free: 2.637 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.38, allocations: 0.7206 MB / 0.7947 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.917e-05/0.3801, allocations: 19.44 kB / 0.7947 GB, free: 1.871 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.3801, allocations: 3.938 kB / 0.7947 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of Templates: time 0.005324/0.3855, allocations: 3.039 MB / 0.7977 GB, free: 14.84 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.TriggeredMovingMeanCalcHelperMain.o OMCppBuildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMeanCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMeanCalcHelperMain.o] Error 1