Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",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.006075/0.006075, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001387/0.001387, allocations: 197.7 kB / 16.68 MB, free: 5.977 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.77/2.77, allocations: 482.6 MB / 0.755 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 63.91 kB / 1.083 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2993, allocations: 162.3 MB / 1.242 GB, free: 9.797 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002065/0.3014, allocations: 1.103 MB / 1.243 GB, free: 8.695 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001224/0.3027, allocations: 1.1 MB / 1.244 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.992e-05/0.3027, allocations: 0 / 1.244 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.954e-05/0.3028, allocations: 23.69 kB / 1.244 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.3029, allocations: 43.58 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.3033, allocations: 147.7 kB / 1.244 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003095/0.3036, allocations: 327.1 kB / 1.245 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.3038, allocations: 52.36 kB / 1.245 GB, free: 7 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.3039, allocations: 127.6 kB / 1.245 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.3041, allocations: 155.3 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.995e-05/0.3042, allocations: 32 kB / 1.245 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.608e-05/0.3043, allocations: 32 kB / 1.245 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.011e-05/0.3043, allocations: 79.77 kB / 1.245 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.3045, allocations: 135.4 kB / 1.245 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.3048, allocations: 306.8 kB / 1.245 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3048, allocations: 0 / 1.245 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3048, allocations: 0 / 1.245 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.3048, allocations: 0 / 1.245 GB, free: 6.148 MB / 0.9981 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.001123/0.3059, allocations: 0.639 MB / 1.246 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.3059, allocations: 8.031 kB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.399e-05/0.306, allocations: 54.73 kB / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.766e-05/0.3061, allocations: 32.73 kB / 1.246 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.3062, allocations: 220.7 kB / 1.246 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002106/0.3065, allocations: 264.3 kB / 1.247 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.839e-05/0.3065, allocations: 28.33 kB / 1.247 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004624/0.307, allocations: 262.1 kB / 1.247 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.307, allocations: 0 / 1.247 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.307, allocations: 11.98 kB / 1.247 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.307, allocations: 4 kB / 1.247 GB, free: 4.465 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004082/0.3075, allocations: 183.8 kB / 1.247 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.3085, allocations: 0.7738 MB / 1.248 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004589/0.309, allocations: 199.7 kB / 1.248 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002463/0.3092, allocations: 134.5 kB / 1.248 GB, free: 3.09 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.102e-05/0.3093, allocations: 19.98 kB / 1.248 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005092/0.3098, allocations: 303.7 kB / 1.249 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=48): time 3.316e-06/0.3098, allocations: 0 / 1.249 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48): time 0.0009755/0.3108, allocations: 495.6 kB / 1.249 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.729e-05/0.3109, allocations: 118.8 kB / 1.249 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.311, allocations: 175.5 kB / 1.249 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.3111, allocations: 41.7 kB / 1.249 GB, free: 1.891 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.606e-05/0.3111, allocations: 113.3 kB / 1.249 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.3113, allocations: 158.7 kB / 1.25 GB, free: 1.621 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.3114, allocations: 110.3 kB / 1.25 GB, free: 1.508 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3116, allocations: 350.7 kB / 1.25 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002923/0.3119, allocations: 141.2 kB / 1.25 GB, free: 1.016 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003609/0.3123, allocations: 256.7 kB / 1.25 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006257/0.3129, allocations: 394.1 kB / 1.251 GB, free: 316 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3129, allocations: 0 / 1.251 GB, free: 316 kB / 0.9981 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.4912/0.8041, allocations: 492.2 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.8041, allocations: 9.391 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.8041, allocations: 3.094 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.8042, allocations: 6.016 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.8045, allocations: 94.12 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.8046, allocations: 6.172 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/0.8049, allocations: 58.84 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.38e-05/0.8049, allocations: 24.12 kB / 1.251 GB, free: 14.38 MB / 0.9981 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 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.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.0001469/0.805, allocations: 166 kB / 1.252 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/0.8051, allocations: 28.89 kB / 1.252 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.243e-05/0.8052, allocations: 29.31 kB / 1.252 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.8052, allocations: 5.875 kB / 1.252 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.8052, allocations: 2.344 kB / 1.252 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.8052, allocations: 3.328 kB / 1.252 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.8055, allocations: 357.1 kB / 1.252 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.8055, allocations: 0.9688 kB / 1.252 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003736/0.8059, allocations: 74.36 kB / 1.252 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.8059, allocations: 6.625 kB / 1.252 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.983e-05/0.8059, allocations: 12.14 kB / 1.252 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.8059, allocations: 2.734 kB / 1.252 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.8059, allocations: 2.375 kB / 1.252 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009987/0.8069, allocations: 0.5907 MB / 1.253 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.587e-05/0.807, allocations: 105.6 kB / 1.253 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.394e-05/0.807, allocations: 11.75 kB / 1.253 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.8073, allocations: 33.75 kB / 1.253 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.8074, allocations: 54.97 kB / 1.253 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-05/0.8074, allocations: 16.67 kB / 1.253 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.335e-05/0.8075, allocations: 126 kB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8075, allocations: 0.7188 kB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003138/0.8078, allocations: 83.53 kB / 1.253 GB, free: 13.8 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.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.001226/0.8091, allocations: 1.145 MB / 1.254 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007473/0.8098, allocations: 391.2 kB / 1.255 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.8098, allocations: 3.875 kB / 1.255 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003706/0.8102, allocations: 195 kB / 1.255 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.8106, allocations: 44.08 kB / 1.255 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003738/0.8143, allocations: 3.162 MB / 1.258 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.8145, allocations: 0.7645 MB / 1.259 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001658/0.8147, allocations: 41.27 kB / 1.259 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.8149, allocations: 92.83 kB / 1.259 GB, free: 10.35 MB / 0.9981 GB Notification: Performance of SimCode: time 3.21e-07/0.8149, allocations: 6.875 kB / 1.259 GB, free: 10.35 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.35/2.165, allocations: 6.528 MB / 1.265 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/14.21, allocations: 5.766 kB / 1.265 GB, free: 9.723 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1)