Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_9_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.0008864/0.0008865, allocations: 102.6 kB / 15.71 MB, free: 460 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.0008755/0.0008757, allocations: 176.6 kB / 16.58 MB, free: 6.402 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.507/1.507, allocations: 223.3 MB / 240.6 MB, free: 5.398 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.621/2.621, allocations: 390.5 MB / 0.6662 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003558, allocations: 11.98 kB / 0.8154 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.882/0.8824, allocations: 142.3 MB / 0.9544 GB, free: 8.305 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001302/0.8837, allocations: 0.5694 MB / 0.955 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002284/0.8861, allocations: 1.288 MB / 0.9562 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.8862, allocations: 1.188 kB / 0.9562 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.8863, allocations: 7.922 kB / 0.9562 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.8866, allocations: 28.47 kB / 0.9563 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.8877, allocations: 238.1 kB / 0.9565 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004467/0.8882, allocations: 229.5 kB / 0.9567 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.8884, allocations: 32.02 kB / 0.9567 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.8887, allocations: 106.4 kB / 0.9568 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003091/0.889, allocations: 108.5 kB / 0.957 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.122e-05/0.8891, allocations: 10.69 kB / 0.957 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.8893, allocations: 26.45 kB / 0.957 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.737e-05/0.8894, allocations: 35.23 kB / 0.957 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.8895, allocations: 55.52 kB / 0.9571 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002887/0.8898, allocations: 180 kB / 0.9572 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.8898, allocations: 0 / 0.9572 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.615e-06/0.8898, allocations: 5.094 kB / 0.9572 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.8899, allocations: 3.938 kB / 0.9573 GB, free: 6.152 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001042/0.8909, allocations: 498.5 kB / 0.9577 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.891, allocations: 9.5 kB / 0.9577 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.8911, allocations: 24.14 kB / 0.9578 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.8915, allocations: 232 kB / 0.958 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.087e-05/0.8916, allocations: 16.77 kB / 0.958 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.976e-05/0.8917, allocations: 18.69 kB / 0.958 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/0.8922, allocations: 193.3 kB / 0.9582 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.8922, allocations: 0 / 0.9582 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.8922, allocations: 1.25 kB / 0.9582 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.8922, allocations: 2.625 kB / 0.9582 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.8925, allocations: 94.31 kB / 0.9583 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008246/0.8934, allocations: 481.1 kB / 0.9588 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003459/0.8937, allocations: 133.9 kB / 0.9589 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002162/0.894, allocations: 95.52 kB / 0.959 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.894, allocations: 10.77 kB / 0.959 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004406/0.8945, allocations: 206.8 kB / 0.9592 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=28): time 2.975e-06/0.8945, allocations: 0 / 0.9592 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=28): time 0.001092/0.8956, allocations: 460.6 kB / 0.9596 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.8956, allocations: 58.16 kB / 0.9597 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.8958, allocations: 149.9 kB / 0.9598 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.8958, allocations: 37.95 kB / 0.9599 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.849e-05/0.8959, allocations: 107.4 kB / 0.96 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.759e-05/0.896, allocations: 63.7 kB / 0.96 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.894e-05/0.8961, allocations: 8.125 kB / 0.96 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.166e-05/0.8961, allocations: 328.3 kB / 0.9603 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004102/0.8966, allocations: 149.4 kB / 0.9605 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004439/0.897, allocations: 209.3 kB / 0.9607 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004621/0.8975, allocations: 215.7 kB / 0.9609 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.8975, allocations: 1.031 kB / 0.9609 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001252/0.8988, allocations: 0.5021 MB / 0.9614 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.911e-05/0.8989, allocations: 68.92 kB / 0.9614 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.8989, allocations: 1.844 kB / 0.9614 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/0.8989, allocations: 3.969 kB / 0.9614 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003441/0.8993, allocations: 54.62 kB / 0.9615 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/0.8993, allocations: 7.531 kB / 0.9615 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006254/0.8999, allocations: 101.7 kB / 0.9616 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.615e-05/0.9, allocations: 24.05 kB / 0.9616 GB, free: 2.785 MB / 0.7169 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,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002487/0.9003, allocations: 159.7 kB / 0.9618 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.131e-05/0.9003, allocations: 19.89 kB / 0.9618 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.9004, allocations: 15.67 kB / 0.9618 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.9004, allocations: 7.062 kB / 0.9618 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.9004, allocations: 0 / 0.9618 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.9004, allocations: 1.031 kB / 0.9618 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.9016, allocations: 0.6716 MB / 0.9625 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.9016, allocations: 5.016 kB / 0.9625 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.526e-05/0.9017, allocations: 9.641 kB / 0.9625 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/0.9017, allocations: 1.25 kB / 0.9625 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/0.9018, allocations: 12.23 kB / 0.9625 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.9018, allocations: 1.438 kB / 0.9625 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.9018, allocations: 4 kB / 0.9625 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008799/0.9027, allocations: 455.1 kB / 0.9629 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.423e-05/0.9027, allocations: 105.9 kB / 0.963 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.021e-05/0.9028, allocations: 15.2 kB / 0.9631 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.903, allocations: 8.75 kB / 0.9631 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.9031, allocations: 20.09 kB / 0.9631 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.133e-05/0.9031, allocations: 16.8 kB / 0.9631 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.489e-05/0.9032, allocations: 104.7 kB / 0.9632 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.11e-07/0.9032, allocations: 0 / 0.9632 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0006171/0.9039, allocations: 67.34 kB / 0.9633 GB, free: 1.582 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: 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 (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.0002807/0.9041, allocations: 142.8 kB / 0.9634 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009863/0.9051, allocations: 447.4 kB / 0.9638 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.9052, allocations: 3.938 kB / 0.9638 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003275/0.9055, allocations: 120.5 kB / 0.9639 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005512/0.9061, allocations: 37.44 kB / 0.964 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008752/0.9069, allocations: 379.3 kB / 0.9643 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.9072, allocations: 0.7215 MB / 0.965 GB, free: 116 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.011e-05/0.9073, allocations: 16.91 kB / 0.9651 GB, free: 112 kB / 0.7169 GB Notification: Performance of SimCode: time 4.61e-07/0.9073, allocations: 0 / 0.9651 GB, free: 112 kB / 0.7169 GB Notification: Performance of Templates: time 0.00981/0.9171, allocations: 3.024 MB / 0.968 GB, free: 14.56 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.TriggeredMovingMeanCalcHelperMain.o OMCppBuildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMeanCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMeanCalcHelperMain.o] Error 1