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.00119/0.00119, allocations: 107.3 kB / 16.29 MB, free: 6.43 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.001161/0.001161, allocations: 184 kB / 17.22 MB, free: 5.934 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.679/1.679, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.005/2.005, allocations: 292.3 MB / 0.5495 GB, free: 17.55 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.001898/0.001898, allocations: 72.3 kB / 0.6722 GB, free: 6.527 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3274, allocations: 114.5 MB / 0.7841 GB, free: 3.863 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.003385/0.3308, allocations: 0.887 MB / 0.7849 GB, free: 2.973 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00243/0.3333, allocations: 1.304 MB / 0.7862 GB, free: 1.652 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.3335, allocations: 4 kB / 0.7862 GB, free: 1.648 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.3337, allocations: 15.81 kB / 0.7862 GB, free: 1.633 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002086/0.3339, allocations: 31.77 kB / 0.7863 GB, free: 1.602 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009319/0.3348, allocations: 267.1 kB / 0.7865 GB, free: 1.344 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004683/0.3353, allocations: 291.5 kB / 0.7868 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.3355, allocations: 33.09 kB / 0.7868 GB, free: 1.027 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000309/0.3358, allocations: 131.7 kB / 0.787 GB, free: 0.8984 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003178/0.3361, allocations: 131.6 kB / 0.7871 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 8.147e-05/0.3362, allocations: 24 kB / 0.7871 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000143/0.3363, allocations: 35.98 kB / 0.7871 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.3365, allocations: 39.91 kB / 0.7872 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.3366, allocations: 99.61 kB / 0.7873 GB, free: 0.5742 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004747/0.3371, allocations: 275.4 kB / 0.7875 GB, free: 312 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3371, allocations: 0 / 0.7875 GB, free: 312 kB / 0.6544 GB Notification: Performance of FrontEnd: time 2.845e-06/0.3371, allocations: 4 kB / 0.7875 GB, free: 308 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.3372, allocations: 0 / 0.7875 GB, free: 308 kB / 0.6544 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.5698/0.907, allocations: 0.5342 MB / 0.7881 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.9071, allocations: 7.969 kB / 0.7881 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.9072, allocations: 17.31 kB / 0.7881 GB, free: 48.81 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.9075, allocations: 232.3 kB / 0.7883 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/0.9076, allocations: 16.81 kB / 0.7883 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.9077, allocations: 15.78 kB / 0.7883 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004165/0.9081, allocations: 190.1 kB / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.9081, allocations: 3.094 kB / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.9081, allocations: 10.34 kB / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.9082, allocations: 3.469 kB / 0.7885 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.9084, allocations: 94.84 kB / 0.7886 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006304/0.909, allocations: 464.2 kB / 0.7891 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.9092, allocations: 141.3 kB / 0.7892 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.9094, allocations: 95.98 kB / 0.7893 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.9094, allocations: 5.75 kB / 0.7893 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003519/0.9098, allocations: 207 kB / 0.7895 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=28): time 1.663e-06/0.9098, allocations: 0 / 0.7895 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of matching and sorting (n=28): time 0.0008498/0.9107, allocations: 452.5 kB / 0.7899 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.9107, allocations: 62.8 kB / 0.79 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.9109, allocations: 139.5 kB / 0.7901 GB, free: 48.01 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.248e-05/0.9109, allocations: 42.59 kB / 0.7902 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.841e-05/0.911, allocations: 101 kB / 0.7903 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.815e-05/0.9111, allocations: 66.14 kB / 0.7903 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.9113, allocations: 89.36 kB / 0.7904 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.327e-05/0.9114, allocations: 334 kB / 0.7907 GB, free: 47.53 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.9116, allocations: 148.4 kB / 0.7909 GB, free: 47.53 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003048/0.912, allocations: 213.4 kB / 0.7911 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004628/0.9124, allocations: 353.8 kB / 0.7914 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.9124, allocations: 2.625 kB / 0.7914 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007879/0.9132, allocations: 0.4945 MB / 0.7919 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 7.666e-05/0.9133, allocations: 76.97 kB / 0.792 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.9133, allocations: 3.938 kB / 0.792 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/0.9134, allocations: 2.688 kB / 0.792 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.9136, allocations: 49.08 kB / 0.792 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.9137, allocations: 5.859 kB / 0.792 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.914, allocations: 78.8 kB / 0.7921 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.9141, allocations: 24.98 kB / 0.7921 GB, free: 47.16 MB / 0.6544 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.0001567/0.9142, allocations: 164 kB / 0.7923 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.953e-05/0.9143, allocations: 14.31 kB / 0.7923 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.733e-05/0.9143, allocations: 14.78 kB / 0.7923 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.9143, allocations: 4.156 kB / 0.7923 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.9143, allocations: 0.625 kB / 0.7923 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.9143, allocations: 3.938 kB / 0.7923 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007251/0.9151, allocations: 0.6642 MB / 0.793 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.9151, allocations: 0 / 0.793 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.05e-05/0.9151, allocations: 10.19 kB / 0.793 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.9151, allocations: 3.375 kB / 0.793 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.9152, allocations: 7.062 kB / 0.793 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.9152, allocations: 8.984 kB / 0.793 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.9152, allocations: 2.688 kB / 0.793 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005791/0.9158, allocations: 455.3 kB / 0.7934 GB, free: 46.59 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.288e-05/0.9158, allocations: 96.11 kB / 0.7935 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.186e-05/0.9159, allocations: 19.83 kB / 0.7935 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.916, allocations: 14.48 kB / 0.7936 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.852e-05/0.9161, allocations: 16.16 kB / 0.7936 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.9161, allocations: 19.66 kB / 0.7936 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.417e-05/0.9162, allocations: 107.8 kB / 0.7937 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9162, allocations: 0 / 0.7937 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003259/0.9165, allocations: 67.5 kB / 0.7938 GB, free: 46.41 MB / 0.6544 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.0002267/0.9168, allocations: 139 kB / 0.7939 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0006771/0.9175, allocations: 454.3 kB / 0.7943 GB, free: 46.19 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.9175, allocations: 0 / 0.7943 GB, free: 46.19 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.9177, allocations: 124.5 kB / 0.7944 GB, free: 46.19 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.9181, allocations: 28.33 kB / 0.7945 GB, free: 46.19 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006517/0.9187, allocations: 317.7 kB / 0.7948 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/0.919, allocations: 0.7159 MB / 0.7955 GB, free: 45.33 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.422e-05/0.9191, allocations: 22.55 kB / 0.7955 GB, free: 45.33 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.9191, allocations: 21.53 kB / 0.7955 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of SimCode: time 2.41e-07/0.9192, allocations: 0 / 0.7955 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of Templates: time 0.008293/0.9275, allocations: 3.564 MB / 0.799 GB, free: 45.19 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)