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.0008339/0.0008336, 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.0009026/0.0009027, allocations: 182.2 kB / 16.92 MB, free: 6.918 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.891/1.891, allocations: 205.4 MB / 223.1 MB, free: 5.5 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.871/1.871, allocations: 292.7 MB / 0.5509 GB, free: 14.45 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.0009233/0.0009236, allocations: 16.06 kB / 0.675 GB, free: 25.91 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3106, allocations: 116.3 MB / 0.7885 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001349/0.312, allocations: 0.5945 MB / 0.7891 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001779/0.3138, allocations: 1.321 MB / 0.7904 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.539e-05/0.3139, allocations: 3.938 kB / 0.7904 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001044/0.314, allocations: 7.922 kB / 0.7904 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.3142, allocations: 35.77 kB / 0.7905 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006754/0.3148, allocations: 234.2 kB / 0.7907 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002746/0.3151, allocations: 263.4 kB / 0.7909 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.3153, allocations: 29.11 kB / 0.791 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.3154, allocations: 115.7 kB / 0.7911 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.3157, allocations: 99.67 kB / 0.7912 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.233e-05/0.3157, allocations: 12 kB / 0.7912 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.298e-05/0.3158, allocations: 27.92 kB / 0.7912 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.688e-05/0.3159, allocations: 35.89 kB / 0.7912 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.3161, allocations: 117.3 kB / 0.7914 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.3163, allocations: 183.8 kB / 0.7915 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3163, allocations: 4 kB / 0.7915 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.462e-06/0.3163, allocations: 0 / 0.7915 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.181e-05/0.3163, allocations: 0 / 0.7915 GB, free: 8.465 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.0009331/0.3173, allocations: 0.491 MB / 0.792 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.3173, allocations: 8.031 kB / 0.792 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.67e-05/0.3174, allocations: 20.75 kB / 0.792 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.3177, allocations: 234.8 kB / 0.7923 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.3177, allocations: 16.36 kB / 0.7923 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.648e-05/0.3178, allocations: 24.38 kB / 0.7923 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003762/0.3182, allocations: 186.7 kB / 0.7925 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.3182, allocations: 4.188 kB / 0.7925 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.3182, allocations: 7.938 kB / 0.7925 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.3183, allocations: 4 kB / 0.7925 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.3185, allocations: 88.17 kB / 0.7926 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006972/0.3192, allocations: 480.6 kB / 0.793 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.3195, allocations: 134.5 kB / 0.7932 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.3196, allocations: 99.25 kB / 0.7933 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.3197, allocations: 4 kB / 0.7933 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003631/0.32, allocations: 219.9 kB / 0.7935 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.3201, allocations: 3.938 kB / 0.7935 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008849/0.3209, allocations: 451.5 kB / 0.7939 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.321, allocations: 63.39 kB / 0.794 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.3212, allocations: 141.9 kB / 0.7941 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.342e-05/0.3212, allocations: 41.7 kB / 0.7941 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.665e-05/0.3213, allocations: 104.6 kB / 0.7942 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.3214, allocations: 71.17 kB / 0.7943 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.188e-05/0.3215, allocations: 41.7 kB / 0.7944 GB, free: 5.355 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3216, allocations: 334.8 kB / 0.7947 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000317/0.3219, allocations: 148.7 kB / 0.7948 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.3223, allocations: 217.1 kB / 0.795 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005509/0.3228, allocations: 358.4 kB / 0.7954 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3229, allocations: 0 / 0.7954 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008681/0.3237, allocations: 0.5028 MB / 0.7959 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.658e-05/0.3238, allocations: 75.33 kB / 0.7959 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3238, allocations: 0 / 0.7959 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.3238, allocations: 4 kB / 0.7959 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/0.3241, allocations: 47.91 kB / 0.796 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.3241, allocations: 4 kB / 0.796 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004481/0.3246, allocations: 110.7 kB / 0.7961 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.794e-05/0.3246, allocations: 23.98 kB / 0.7961 GB, free: 3.465 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.0001961/0.3248, allocations: 165.8 kB / 0.7963 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.3249, allocations: 19.8 kB / 0.7963 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.55e-05/0.3249, allocations: 13.88 kB / 0.7963 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.3249, allocations: 0 / 0.7963 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.3249, allocations: 0 / 0.7963 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.3249, allocations: 3.938 kB / 0.7963 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009007/0.3258, allocations: 0.67 MB / 0.797 GB, free: 2.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3259, allocations: 4 kB / 0.797 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-05/0.3259, allocations: 8 kB / 0.797 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.3259, allocations: 0 / 0.797 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.3259, allocations: 7.984 kB / 0.797 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.326, allocations: 7.938 kB / 0.797 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.326, allocations: 3.984 kB / 0.797 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006542/0.3266, allocations: 459.8 kB / 0.7974 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.608e-05/0.3267, allocations: 92.86 kB / 0.7975 GB, free: 1.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.3268, allocations: 23.92 kB / 0.7975 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.3269, allocations: 11.92 kB / 0.7976 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/0.327, allocations: 15.98 kB / 0.7976 GB, free: 1.871 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/0.327, allocations: 19.98 kB / 0.7976 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.873e-05/0.3271, allocations: 103.2 kB / 0.7977 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3271, allocations: 4 kB / 0.7977 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003583/0.3275, allocations: 67.94 kB / 0.7978 GB, free: 1.68 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.0002331/0.3277, allocations: 125.5 kB / 0.7979 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007734/0.3285, allocations: 458.5 kB / 0.7983 GB, free: 1.078 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3285, allocations: 4.25 kB / 0.7983 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.3288, allocations: 126.3 kB / 0.7984 GB, free: 0.9531 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.3291, allocations: 34.78 kB / 0.7985 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007078/0.3299, allocations: 392.5 kB / 0.7988 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.3303, allocations: 0.7206 MB / 0.7995 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.413e-05/0.3303, allocations: 15.44 kB / 0.7996 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of SimCode: time 2.465e-06/0.3304, allocations: 0 / 0.7996 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of Templates: time 0.005684/0.336, allocations: 3.03 MB / 0.8025 GB, free: 12.73 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