Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_10_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.001066/0.00107, allocations: 108 kB / 15.61 MB, free: 152 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.00117/0.001171, allocations: 197.4 kB / 16.53 MB, free: 6.664 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.276/1.276, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.307/2.307, allocations: 437.1 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 67.91 kB / 0.8694 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.499/0.5003, allocations: 151.6 MB / 1.017 GB, free: 2.504 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001879/0.5022, allocations: 1.105 MB / 1.019 GB, free: 1.398 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.5034, allocations: 1.108 MB / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.525e-05/0.5035, allocations: 0 / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.422e-05/0.5036, allocations: 23.67 kB / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.887e-05/0.5037, allocations: 43.58 kB / 1.02 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003331/0.504, allocations: 147.7 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.5043, allocations: 323.1 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.5044, allocations: 56.3 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.5045, allocations: 135.6 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.5047, allocations: 155.4 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.5048, allocations: 28 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 3.938e-05/0.5048, allocations: 32 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.594e-05/0.5049, allocations: 75.8 kB / 1.021 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.505, allocations: 139.3 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000232/0.5052, allocations: 309.2 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.5052, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.41e-07/0.5052, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.5052, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.7794 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.0009748/0.5062, allocations: 0.6237 MB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.616e-05/0.5063, allocations: 12.03 kB / 1.022 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.153e-05/0.5063, allocations: 58.73 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.321e-05/0.5064, allocations: 28.66 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.5065, allocations: 200.8 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.5067, allocations: 264.3 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.5067, allocations: 32.28 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004069/0.5071, allocations: 266 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.5072, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.5072, allocations: 15.98 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.5072, allocations: 4 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003731/0.5076, allocations: 171.4 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008791/0.5085, allocations: 0.7814 MB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000398/0.5089, allocations: 207.7 kB / 1.024 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002275/0.5091, allocations: 135.1 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.5091, allocations: 8 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004395/0.5096, allocations: 311.5 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 1.583e-06/0.5096, allocations: 4 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.0008739/0.5105, allocations: 481.7 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.5105, allocations: 118.8 kB / 1.025 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.5107, allocations: 175.5 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.617e-05/0.5107, allocations: 41.7 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.317e-05/0.5108, allocations: 121.2 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.853e-05/0.5109, allocations: 150 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.511, allocations: 110.3 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.5111, allocations: 342.8 kB / 1.025 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002734/0.5114, allocations: 145.2 kB / 1.026 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000316/0.5117, allocations: 252.8 kB / 1.026 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000558/0.5123, allocations: 398 kB / 1.026 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.5123, allocations: 0 / 1.026 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007416/0.5131, allocations: 493 kB / 1.027 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.5131, allocations: 7.938 kB / 1.027 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.5131, allocations: 4 kB / 1.027 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.5131, allocations: 7.984 kB / 1.027 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.5135, allocations: 107.8 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.5135, allocations: 4 kB / 1.027 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.5137, allocations: 55.66 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.5138, allocations: 20 kB / 1.027 GB, free: 8.355 MB / 0.7794 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.0001364/0.5139, allocations: 159.5 kB / 1.027 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.313e-05/0.5139, allocations: 31.66 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.251e-05/0.514, allocations: 29.88 kB / 1.027 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.514, allocations: 4 kB / 1.027 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.514, allocations: 4 kB / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.514, allocations: 3.984 kB / 1.027 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003046/0.5143, allocations: 369 kB / 1.027 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.5143, allocations: 0 / 1.027 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003593/0.5147, allocations: 71.89 kB / 1.028 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.5147, allocations: 7.938 kB / 1.028 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.079e-05/0.5148, allocations: 12 kB / 1.028 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.5148, allocations: 7.938 kB / 1.028 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.5148, allocations: 4 kB / 1.028 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009105/0.5157, allocations: 0.5783 MB / 1.028 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-05/0.5157, allocations: 112.7 kB / 1.028 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.65e-05/0.5158, allocations: 8.062 kB / 1.028 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.516, allocations: 35.97 kB / 1.028 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.5161, allocations: 59.95 kB / 1.028 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.5161, allocations: 12 kB / 1.028 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.085e-05/0.5162, allocations: 129.2 kB / 1.028 GB, free: 6.637 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5162, allocations: 0 / 1.028 GB, free: 6.637 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002802/0.5165, allocations: 79.94 kB / 1.029 GB, free: 6.559 MB / 0.7794 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.001179/0.5177, allocations: 1.155 MB / 1.03 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006677/0.5184, allocations: 396.4 kB / 1.03 GB, free: 4.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.5184, allocations: 0 / 1.03 GB, free: 4.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003488/0.5187, allocations: 202.1 kB / 1.03 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.519, allocations: 58.45 kB / 1.03 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003434/0.5225, allocations: 3.157 MB / 1.033 GB, free: 1.406 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.5227, allocations: 0.7608 MB / 1.034 GB, free: 0.6211 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001446/0.5229, allocations: 47.12 kB / 1.034 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.523, allocations: 87.41 kB / 1.034 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.523, allocations: 4 kB / 1.034 GB, free: 500 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.051/2.574, allocations: 6.542 MB / 1.041 GB, free: 10.05 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.168/10.74, allocations: 3.953 kB / 1.041 GB, free: 10.04 MB / 0.795 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1)