Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Continuous.Validation.MovingAverage,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.007325/0.007325, allocations: 99.73 kB / 15.73 MB, free: 5.594 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.001639/0.001639, allocations: 197.3 kB / 16.67 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.205/2.205, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.95/2.95, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001981, allocations: 63.91 kB / 0.9505 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9856/0.9876, allocations: 140.4 MB / 1.088 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.002509/0.9902, allocations: 1.118 MB / 1.089 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001421/0.9916, allocations: 1.092 MB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.523e-05/0.9917, allocations: 1.344 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.396e-05/0.9918, allocations: 22.72 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.9919, allocations: 41.42 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005095/0.9925, allocations: 148.9 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003873/0.9928, allocations: 325.7 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001689/0.993, allocations: 50.42 kB / 1.09 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.9932, allocations: 132.2 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.9935, allocations: 147.2 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.472e-05/0.9936, allocations: 30.25 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/0.9936, allocations: 29.81 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.411e-05/0.9937, allocations: 80.64 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.9939, allocations: 134.6 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004483/0.9943, allocations: 323.2 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.9944, allocations: 0.6875 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9944, allocations: 0 / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.016e-06/0.9944, allocations: 0.75 kB / 1.091 GB, free: 3.02 MB / 0.8575 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.00146/0.9959, allocations: 0.6155 MB / 1.092 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.9959, allocations: 9.703 kB / 1.092 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.927e-05/0.996, allocations: 60.12 kB / 1.092 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.9961, allocations: 30.67 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.9963, allocations: 201 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.9965, allocations: 267 kB / 1.092 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.64e-05/0.9966, allocations: 40.7 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006841/0.9973, allocations: 259.4 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.9973, allocations: 2.5 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.924e-05/0.9974, allocations: 11.44 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.9974, allocations: 5.188 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006361/0.998, allocations: 177.5 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.9995, allocations: 0.7744 MB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006359/1, allocations: 206.3 kB / 1.094 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003818/1.001, allocations: 129.7 kB / 1.094 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.11e-05/1.001, allocations: 12.03 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007998/1.001, allocations: 315 kB / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 3.627e-06/1.001, allocations: 3.938 kB / 1.094 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001503/1.003, allocations: 497.5 kB / 1.095 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/1.003, allocations: 113.1 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/1.003, allocations: 177.5 kB / 1.095 GB, free: 396 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/1.003, allocations: 38.36 kB / 1.095 GB, free: 356 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.194e-05/1.003, allocations: 117.5 kB / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/1.003, allocations: 150.1 kB / 1.095 GB, free: 128 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00022/1.004, allocations: 103.7 kB / 1.095 GB, free: 72 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001863/1.004, allocations: 343.5 kB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004973/1.004, allocations: 148.7 kB / 1.096 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005915/1.005, allocations: 251.2 kB / 1.096 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/1.006, allocations: 398.1 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/1.006, allocations: 4.875 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001389/1.007, allocations: 489.9 kB / 1.097 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/1.007, allocations: 11.17 kB / 1.097 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/1.007, allocations: 2.938 kB / 1.097 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/1.008, allocations: 5.594 kB / 1.097 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/1.008, allocations: 95.19 kB / 1.097 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.112e-05/1.008, allocations: 5.609 kB / 1.097 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004349/1.009, allocations: 62.42 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.167e-05/1.009, allocations: 20.7 kB / 1.097 GB, free: 15.04 MB / 0.8731 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.0002689/1.009, allocations: 157.6 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-05/1.009, allocations: 37.52 kB / 1.097 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/1.009, allocations: 31.89 kB / 1.097 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/1.009, allocations: 10.12 kB / 1.097 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/1.009, allocations: 5.094 kB / 1.097 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/1.009, allocations: 3.75 kB / 1.097 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006062/1.01, allocations: 351.8 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/1.01, allocations: 0 / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006117/1.01, allocations: 75.09 kB / 1.098 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-05/1.01, allocations: 6.031 kB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/1.011, allocations: 11.67 kB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/1.011, allocations: 2.719 kB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.011, allocations: 1.125 kB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/1.012, allocations: 0.5857 MB / 1.098 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/1.012, allocations: 107.2 kB / 1.098 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.85e-05/1.012, allocations: 8.172 kB / 1.098 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/1.013, allocations: 37.09 kB / 1.098 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/1.013, allocations: 53.45 kB / 1.098 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/1.013, allocations: 21.52 kB / 1.098 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000145/1.013, allocations: 126.6 kB / 1.099 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/1.013, allocations: 0 / 1.099 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005805/1.014, allocations: 88.41 kB / 1.099 GB, free: 14.01 MB / 0.8731 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.001984/1.016, allocations: 1.152 MB / 1.1 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001152/1.017, allocations: 389 kB / 1.1 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.017, allocations: 0 / 1.1 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0005781/1.018, allocations: 186.2 kB / 1.1 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005003/1.018, allocations: 44.97 kB / 1.1 GB, free: 13 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006182/1.024, allocations: 3.151 MB / 1.103 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/1.025, allocations: 0.7652 MB / 1.104 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002382/1.025, allocations: 33.7 kB / 1.104 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000234/1.025, allocations: 95.84 kB / 1.104 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of SimCode: time 6.62e-07/1.025, allocations: 1.188 kB / 1.104 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.037/6.062, allocations: 6.538 MB / 1.111 GB, free: 9.461 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/20.13, allocations: 11.78 kB / 1.111 GB, free: 9.453 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1)