Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.315/1.315, allocations: 251.5 MB / 266.7 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 173.2 kB / 325.8 MB, free: 2.668 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205 MB / 0.576 GB, free: 21.02 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008172/0.0008173, allocations: 93.23 kB / 0.6797 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 8.5 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2008, allocations: 105.4 MB / 0.8962 GB, free: 68.02 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001637/0.2025, allocations: 1.367 MB / 0.8976 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007056/0.2032, allocations: 372.5 kB / 0.8979 GB, free: 66.27 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.939e-05/0.2034, allocations: 0 / 0.8979 GB, free: 66.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.2035, allocations: 11.86 kB / 0.8979 GB, free: 66.26 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001514/0.2037, allocations: 35.77 kB / 0.898 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.2039, allocations: 63.94 kB / 0.898 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001661/0.2041, allocations: 171.5 kB / 0.8982 GB, free: 65.99 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.2042, allocations: 29.7 kB / 0.8982 GB, free: 65.96 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.2044, allocations: 71.7 kB / 0.8983 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.2046, allocations: 83.66 kB / 0.8984 GB, free: 65.8 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.2046, allocations: 12 kB / 0.8984 GB, free: 65.79 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.622e-05/0.2046, allocations: 7.938 kB / 0.8984 GB, free: 65.79 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.586e-05/0.2047, allocations: 39.88 kB / 0.8984 GB, free: 65.75 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.253e-05/0.2048, allocations: 71.58 kB / 0.8985 GB, free: 65.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001441/0.205, allocations: 155.5 kB / 0.8986 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.205, allocations: 0 / 0.8986 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.194e-06/0.205, allocations: 0 / 0.8986 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.205, allocations: 0 / 0.8986 GB, free: 65.52 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007614/0.2057, allocations: 471.3 kB / 0.8991 GB, free: 65.01 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.2058, allocations: 8.031 kB / 0.8991 GB, free: 65 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.031e-05/0.2059, allocations: 46.73 kB / 0.8991 GB, free: 64.95 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.194e-05/0.2059, allocations: 20.75 kB / 0.8992 GB, free: 64.93 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/0.2061, allocations: 208.1 kB / 0.8994 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.2061, allocations: 16.36 kB / 0.8994 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.015e-05/0.2062, allocations: 16.38 kB / 0.8994 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.2065, allocations: 190.1 kB / 0.8996 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.2065, allocations: 3.938 kB / 0.8996 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.2065, allocations: 7.938 kB / 0.8996 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.2065, allocations: 7.984 kB / 0.8996 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000195/0.2067, allocations: 95.94 kB / 0.8997 GB, free: 64.35 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005005/0.2073, allocations: 428.3 kB / 0.9001 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.2075, allocations: 146.4 kB / 0.9002 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001468/0.2077, allocations: 100.8 kB / 0.9003 GB, free: 63.63 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.2077, allocations: 176 / 0.9003 GB, free: 63.63 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002851/0.208, allocations: 207.8 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.208, allocations: 0 / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.0006837/0.2087, allocations: 453.9 kB / 0.901 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.2087, allocations: 59.41 kB / 0.901 GB, free: 62.9 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.2088, allocations: 148.1 kB / 0.9012 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.2089, allocations: 41.64 kB / 0.9012 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.591e-05/0.2089, allocations: 100.6 kB / 0.9013 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.871e-05/0.209, allocations: 71.17 kB / 0.9014 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/0.209, allocations: 41.64 kB / 0.9014 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.541e-05/0.2091, allocations: 338.8 kB / 0.9017 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.2093, allocations: 108.3 kB / 0.9018 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.2095, allocations: 163.6 kB / 0.902 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/0.2098, allocations: 279.7 kB / 0.9022 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.2098, allocations: 0 / 0.9022 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004699/0.2103, allocations: 351 kB / 0.9026 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.2103, allocations: 8 kB / 0.9026 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2103, allocations: 0 / 0.9026 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.2103, allocations: 4 kB / 0.9026 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.2106, allocations: 63.84 kB / 0.9026 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.2106, allocations: 4.156 kB / 0.9027 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.2107, allocations: 47.67 kB / 0.9027 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.2108, allocations: 15.94 kB / 0.9027 GB, free: 61.07 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition2,booPul1.pulseStart,$PRE.booPul1.pulseStart,booPul1.y,$whenCondition3,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 (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * 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.0001152/0.2109, allocations: 161.8 kB / 0.9029 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.2109, allocations: 11.91 kB / 0.9029 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.28e-05/0.211, allocations: 21.88 kB / 0.9029 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.211, allocations: 3.984 kB / 0.9029 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.211, allocations: 0 / 0.9029 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.211, allocations: 0 / 0.9029 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007905/0.2118, allocations: 0.7207 MB / 0.9036 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2118, allocations: 0 / 0.9036 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/0.2119, allocations: 11.98 kB / 0.9036 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2119, allocations: 7.938 kB / 0.9036 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.2119, allocations: 7.984 kB / 0.9036 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.2119, allocations: 0 / 0.9036 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2119, allocations: 0 / 0.9036 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004612/0.2124, allocations: 463.8 kB / 0.9041 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.892e-05/0.2124, allocations: 88.92 kB / 0.9042 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.2125, allocations: 19.92 kB / 0.9042 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.2126, allocations: 27.91 kB / 0.9042 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.387e-05/0.2127, allocations: 15.97 kB / 0.9042 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.2127, allocations: 23.98 kB / 0.9042 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.791e-05/0.2128, allocations: 113.3 kB / 0.9044 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2128, allocations: 0 / 0.9044 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002718/0.2131, allocations: 47.94 kB / 0.9044 GB, free: 59.24 MB / 0.6042 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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.000715/0.2138, allocations: 1.015 MB / 0.9054 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004207/0.2142, allocations: 268 kB / 0.9056 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2142, allocations: 0 / 0.9056 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002118/0.2145, allocations: 120.2 kB / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.2148, allocations: 31.97 kB / 0.9058 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002228/0.2171, allocations: 2.336 MB / 0.9081 GB, free: 55.33 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001482/0.2172, allocations: 0.7167 MB / 0.9088 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.164e-05/0.2173, allocations: 25.95 kB / 0.9088 GB, free: 54.56 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.094e-05/0.2174, allocations: 51.41 kB / 0.9088 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of SimCode: time 5.71e-07/0.2174, allocations: 0 / 0.9088 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.236, allocations: 3.927 MB / 0.9127 GB, free: 50.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001624/0.2362, allocations: 227.1 kB / 0.9129 GB, free: 50.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/1.899, allocations: 0 / 0.9129 GB, free: 50.51 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)