Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 108 kB / 15.6 MB, free: 132 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.001696/0.001696, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.337/1.337, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.677/1.677, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001471/0.001471, allocations: 72.27 kB / 0.6716 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2114, allocations: 114.6 MB / 0.7835 GB, free: 13.35 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean): time 0.003101/0.2145, allocations: 1.964 MB / 0.7854 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.2156, allocations: 0.6875 MB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.581e-05/0.2156, allocations: 4 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.058e-05/0.2157, allocations: 23.67 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.711e-05/0.2158, allocations: 39.58 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003828/0.2162, allocations: 151.7 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.2164, allocations: 319.1 kB / 0.7866 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.2166, allocations: 52.36 kB / 0.7866 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.2168, allocations: 131.6 kB / 0.7868 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.2169, allocations: 147.4 kB / 0.7869 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.552e-05/0.217, allocations: 28 kB / 0.7869 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.145e-05/0.217, allocations: 28 kB / 0.787 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.165e-05/0.2171, allocations: 87.77 kB / 0.787 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.2172, allocations: 131.4 kB / 0.7872 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.2175, allocations: 303.3 kB / 0.7875 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2175, allocations: 0 / 0.7875 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2175, allocations: 4 kB / 0.7875 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.2175, allocations: 0 / 0.7875 GB, free: 9.238 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001089/0.2186, allocations: 0.6197 MB / 0.7881 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2187, allocations: 12.03 kB / 0.7881 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.853e-05/0.2187, allocations: 58.73 kB / 0.7881 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.297e-05/0.2188, allocations: 36.58 kB / 0.7882 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.2189, allocations: 200.8 kB / 0.7884 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.2191, allocations: 268.3 kB / 0.7886 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.2192, allocations: 36.27 kB / 0.7887 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004402/0.2196, allocations: 253.7 kB / 0.7889 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.2196, allocations: 15.92 kB / 0.7889 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.2197, allocations: 4 kB / 0.7889 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.2197, allocations: 8 kB / 0.7889 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003886/0.2201, allocations: 171.9 kB / 0.7891 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009645/0.2211, allocations: 0.7776 MB / 0.7898 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.2215, allocations: 210.1 kB / 0.79 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.2218, allocations: 134.5 kB / 0.7902 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.2218, allocations: 12.36 kB / 0.7902 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005348/0.2224, allocations: 311.2 kB / 0.7905 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=48): time 1.664e-06/0.2224, allocations: 4 kB / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48): time 0.000999/0.2234, allocations: 480.6 kB / 0.7909 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.167e-05/0.2235, allocations: 114.8 kB / 0.7911 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.2237, allocations: 176.6 kB / 0.7912 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.2237, allocations: 37.7 kB / 0.7913 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.16e-05/0.2238, allocations: 121.2 kB / 0.7914 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.2239, allocations: 157.9 kB / 0.7915 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.2241, allocations: 102.3 kB / 0.7916 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.2242, allocations: 342.8 kB / 0.792 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.2245, allocations: 145.2 kB / 0.7921 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003644/0.2249, allocations: 260.7 kB / 0.7923 GB, free: 3.867 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005913/0.2255, allocations: 394.1 kB / 0.7927 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.2255, allocations: 0 / 0.7927 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007944/0.2263, allocations: 0.4895 MB / 0.7932 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.2263, allocations: 11.98 kB / 0.7932 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.2264, allocations: 4 kB / 0.7932 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.2264, allocations: 4 kB / 0.7932 GB, free: 2.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003581/0.2267, allocations: 99.89 kB / 0.7933 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.2268, allocations: 8 kB / 0.7933 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002516/0.227, allocations: 51.66 kB / 0.7934 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.034e-05/0.2271, allocations: 24 kB / 0.7934 GB, free: 2.75 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (movingMean_1.mode,$PRE.movingMean_1.mode,$whenCondition5,movingMean_2.mode,$PRE.movingMean_2.mode,$whenCondition6,movingMean_3.mode,$PRE.movingMean_3.mode,$whenCondition7,movingMean_4.mode,$PRE.movingMean_4.mode,$whenCondition8,movingMean_5.mode,$PRE.movingMean_5.mode,$whenCondition9,movingMean_6.mode,$PRE.movingMean_6.mode,$whenCondition3,movingMean_7.mode,$PRE.movingMean_7.mode,$whenCondition4,movingMean_8.mode,$PRE.movingMean_8.mode,$whenCondition1,movingMean_9.mode,$PRE.movingMean_9.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * 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.00015/0.2272, allocations: 160 kB / 0.7935 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.693e-05/0.2273, allocations: 27.66 kB / 0.7936 GB, free: 2.559 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.228e-05/0.2273, allocations: 33.86 kB / 0.7936 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.2273, allocations: 11.94 kB / 0.7936 GB, free: 2.512 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.2274, allocations: 4 kB / 0.7936 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.2274, allocations: 0 / 0.7936 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/0.2277, allocations: 353.2 kB / 0.794 GB, free: 2.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2277, allocations: 3.938 kB / 0.794 GB, free: 2.109 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000377/0.2281, allocations: 75.89 kB / 0.794 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.2281, allocations: 96 / 0.794 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.524e-05/0.2281, allocations: 12 kB / 0.794 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2282, allocations: 3.984 kB / 0.794 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.2282, allocations: 11.92 kB / 0.7941 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009709/0.2291, allocations: 0.5784 MB / 0.7946 GB, free: 1.402 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.095e-05/0.2292, allocations: 108.7 kB / 0.7947 GB, free: 1.277 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.904e-05/0.2293, allocations: 12 kB / 0.7947 GB, free: 1.266 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.2295, allocations: 31.95 kB / 0.7948 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.2296, allocations: 55.94 kB / 0.7948 GB, free: 1.18 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-05/0.2296, allocations: 12.09 kB / 0.7948 GB, free: 1.168 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.622e-05/0.2297, allocations: 133.1 kB / 0.795 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2297, allocations: 0 / 0.795 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003047/0.2301, allocations: 83.91 kB / 0.795 GB, free: 0.957 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movingMean_1.mu,movingMean_2.mu,movingMean_3.mu,movingMean_4.mu,movingMean_5.mu,movingMean_6.mu,movingMean_7.mu,movingMean_8.mu,movingMean_9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movingMean_1.mode,movingMean_2.mode,movingMean_3.mode,movingMean_4.mode,movingMean_5.mode,$whenCondition4,$whenCondition3,movingMean_6.mode,movingMean_7.mode,$whenCondition2,$whenCondition1,movingMean_8.mode,movingMean_9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001277/0.2313, allocations: 1.149 MB / 0.7962 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.000714/0.2321, allocations: 403.6 kB / 0.7965 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2321, allocations: 4 kB / 0.7965 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003535/0.2324, allocations: 205.4 kB / 0.7967 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.2328, allocations: 42.98 kB / 0.7968 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003659/0.2364, allocations: 3.171 MB / 0.7999 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.2367, allocations: 0.7686 MB / 0.8006 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001566/0.2369, allocations: 42.89 kB / 0.8007 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.2371, allocations: 91.41 kB / 0.8008 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of SimCode: time 6.51e-07/0.2371, allocations: 0 / 0.8008 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.2609, allocations: 6.56 MB / 0.8072 GB, free: 4.434 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.35/7.611, allocations: 13.69 kB / 0.8072 GB, free: 4.426 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe 2>&1)