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.384/1.384, allocations: 251.9 MB / 266.9 MB, free: 11.03 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.001211/0.001211, allocations: 179 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.065/2.065, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.001014/0.001014, allocations: 94.23 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003377/0.0003378, allocations: 8.562 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2163, allocations: 106.3 MB / 0.9002 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001571/0.218, allocations: 1.317 MB / 0.9015 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005783/0.2186, allocations: 359.9 kB / 0.9018 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.365e-05/0.2186, allocations: 3.938 kB / 0.9018 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.843e-05/0.2187, allocations: 7.922 kB / 0.9018 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.2189, allocations: 35.94 kB / 0.9018 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.2191, allocations: 67.78 kB / 0.9019 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.2192, allocations: 111.8 kB / 0.902 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.2193, allocations: 21.48 kB / 0.902 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.2195, allocations: 67.75 kB / 0.9021 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.2196, allocations: 75.73 kB / 0.9022 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.2197, allocations: 8 kB / 0.9022 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.385e-05/0.2197, allocations: 8 kB / 0.9022 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.672e-05/0.2197, allocations: 35.88 kB / 0.9022 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.245e-05/0.2198, allocations: 49.64 kB / 0.9023 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.2199, allocations: 119.9 kB / 0.9024 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.2199, allocations: 3.938 kB / 0.9024 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.873e-06/0.22, allocations: 0 / 0.9024 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.22, allocations: 0 / 0.9024 GB, free: 61.54 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.000755/0.2207, allocations: 463.2 kB / 0.9028 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.2208, allocations: 15.97 kB / 0.9028 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.388e-05/0.2208, allocations: 42.55 kB / 0.9029 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.2209, allocations: 15.81 kB / 0.9029 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.221, allocations: 225.2 kB / 0.9031 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.2211, allocations: 8 kB / 0.9031 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.2211, allocations: 16 kB / 0.9031 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.2214, allocations: 193.5 kB / 0.9033 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.2214, allocations: 3.938 kB / 0.9033 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.2214, allocations: 0 / 0.9033 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2214, allocations: 4 kB / 0.9033 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.2216, allocations: 95.94 kB / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004764/0.2221, allocations: 428.3 kB / 0.9038 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002387/0.2224, allocations: 154.4 kB / 0.904 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.2224, allocations: 4 kB / 0.904 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002567/0.2227, allocations: 206.8 kB / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 2.284e-06/0.2227, allocations: 3.984 kB / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.0006742/0.2234, allocations: 0.583 MB / 0.9048 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.2234, allocations: 63.41 kB / 0.9048 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.006e-05/0.2235, allocations: 146 kB / 0.905 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.2235, allocations: 37.69 kB / 0.905 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.386e-05/0.2236, allocations: 100.6 kB / 0.9051 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.546e-05/0.2236, allocations: 67.23 kB / 0.9051 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.2236, allocations: 8 kB / 0.9052 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.136e-05/0.2237, allocations: 330.8 kB / 0.9055 GB, free: 58.13 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.2239, allocations: 112.3 kB / 0.9056 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.224, allocations: 171.2 kB / 0.9057 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.2242, allocations: 121.1 kB / 0.9059 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2242, allocations: 0 / 0.9059 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004334/0.2247, allocations: 343 kB / 0.9062 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.2247, allocations: 4 kB / 0.9062 GB, free: 57.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.2247, allocations: 8.094 kB / 0.9062 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.2247, allocations: 8 kB / 0.9062 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.225, allocations: 55.91 kB / 0.9063 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.225, allocations: 7.984 kB / 0.9063 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.2251, allocations: 39.73 kB / 0.9063 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/0.2252, allocations: 12 kB / 0.9063 GB, free: 57.24 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,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * 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.0001151/0.2253, allocations: 173.7 kB / 0.9065 GB, free: 57.06 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.2253, allocations: 15.81 kB / 0.9065 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.066e-05/0.2254, allocations: 17.89 kB / 0.9065 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.2254, allocations: 8 kB / 0.9065 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2254, allocations: 0 / 0.9065 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2254, allocations: 3.984 kB / 0.9065 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008223/0.2262, allocations: 0.7179 MB / 0.9072 GB, free: 56.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2262, allocations: 0 / 0.9072 GB, free: 56.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.24e-05/0.2263, allocations: 11.92 kB / 0.9072 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.2263, allocations: 4 kB / 0.9072 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.2263, allocations: 11.98 kB / 0.9072 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2263, allocations: 4 kB / 0.9073 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2263, allocations: 0 / 0.9073 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004505/0.2268, allocations: 451.1 kB / 0.9077 GB, free: 55.75 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.899e-05/0.2268, allocations: 92.92 kB / 0.9078 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.786e-05/0.2269, allocations: 15.98 kB / 0.9078 GB, free: 55.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001645/0.227, allocations: 27.97 kB / 0.9078 GB, free: 55.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.78e-05/0.2271, allocations: 19.97 kB / 0.9078 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.71e-05/0.2271, allocations: 15.98 kB / 0.9078 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.653e-05/0.2272, allocations: 105.3 kB / 0.9079 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2272, allocations: 0 / 0.9079 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002819/0.2275, allocations: 55.92 kB / 0.908 GB, free: 55.41 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 (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.0007093/0.2282, allocations: 1.011 MB / 0.909 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003976/0.2286, allocations: 272.2 kB / 0.9092 GB, free: 54.11 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2286, allocations: 0 / 0.9092 GB, free: 54.11 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.2288, allocations: 115.9 kB / 0.9094 GB, free: 53.99 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.2291, allocations: 23.92 kB / 0.9094 GB, free: 53.97 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009046/0.23, allocations: 1.67 MB / 0.911 GB, free: 52.21 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001433/0.2301, allocations: 0.7245 MB / 0.9117 GB, free: 51.46 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.692e-05/0.2302, allocations: 22.14 kB / 0.9117 GB, free: 51.45 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.243e-05/0.2303, allocations: 47.42 kB / 0.9118 GB, free: 51.4 MB / 0.6042 GB Notification: Performance of SimCode: time 8.31e-07/0.2303, allocations: 4 kB / 0.9118 GB, free: 51.39 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01358/0.2439, allocations: 3.946 MB / 0.9156 GB, free: 47.63 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001463/0.2441, allocations: 215.6 kB / 0.9158 GB, free: 47.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/1.885, allocations: 0 / 0.9158 GB, free: 47.38 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)