Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002015/0.002015, allocations: 220 kB / 22.25 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.622/1.622, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.288/3.288, allocations: 0.49 GB / 0.7951 GB, free: 35.56 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 66.47 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3786, allocations: 176.1 MB / 1.326 GB, free: 1.469 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.00248/0.3811, allocations: 1.041 MB / 1.327 GB, free: 440 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.3827, allocations: 1.131 MB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.425e-05/0.3828, allocations: 4 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.419e-05/0.3828, allocations: 19.75 kB / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.3829, allocations: 43.56 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004858/0.3834, allocations: 155.6 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003662/0.3838, allocations: 323.1 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.384, allocations: 36.58 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002671/0.3842, allocations: 143.6 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.3845, allocations: 151.4 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.907e-05/0.3845, allocations: 28 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.708e-05/0.3846, allocations: 36 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.337e-05/0.3847, allocations: 75.78 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.3848, allocations: 119.5 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000375/0.3852, allocations: 322.9 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3852, allocations: 0 / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3852, allocations: 0 / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.3852, allocations: 0 / 1.329 GB, free: 13.85 MB / 1.029 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.001274/0.3865, allocations: 0.5598 MB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3865, allocations: 12.03 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.003e-05/0.3866, allocations: 62.72 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003288/0.3869, allocations: 60.72 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.387, allocations: 139 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003657/0.3874, allocations: 0.4918 MB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.561e-05/0.3875, allocations: 24.38 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005211/0.388, allocations: 266 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.388, allocations: 11.95 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.3881, allocations: 4 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.3881, allocations: 4 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004288/0.3885, allocations: 179.8 kB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.3896, allocations: 0.6871 MB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005028/0.3901, allocations: 199.7 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000258/0.3904, allocations: 126.5 kB / 1.332 GB, free: 10.76 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.534e-05/0.3904, allocations: 15.98 kB / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006033/0.391, allocations: 311.6 kB / 1.332 GB, free: 10.42 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 2.194e-06/0.391, allocations: 0 / 1.332 GB, free: 10.42 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001094/0.3921, allocations: 487.9 kB / 1.333 GB, free: 9.938 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.04e-05/0.3922, allocations: 126.8 kB / 1.333 GB, free: 9.789 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.3924, allocations: 183.5 kB / 1.333 GB, free: 9.598 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.114e-05/0.3924, allocations: 41.69 kB / 1.333 GB, free: 9.551 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.822e-05/0.3925, allocations: 113.4 kB / 1.333 GB, free: 9.438 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.3927, allocations: 158.7 kB / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.3928, allocations: 106.3 kB / 1.334 GB, free: 9.168 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.393, allocations: 338.8 kB / 1.334 GB, free: 8.828 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.3933, allocations: 149.2 kB / 1.334 GB, free: 8.684 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003874/0.3937, allocations: 248.8 kB / 1.334 GB, free: 8.402 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006669/0.3944, allocations: 398 kB / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3944, allocations: 0 / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008926/0.3952, allocations: 493.7 kB / 1.335 GB, free: 7.488 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.3953, allocations: 11.94 kB / 1.335 GB, free: 7.477 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3953, allocations: 4 kB / 1.335 GB, free: 7.473 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.3953, allocations: 4 kB / 1.335 GB, free: 7.469 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004075/0.3957, allocations: 99.83 kB / 1.335 GB, free: 7.371 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.3957, allocations: 7.984 kB / 1.335 GB, free: 7.363 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.396, allocations: 55.7 kB / 1.335 GB, free: 7.309 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.396, allocations: 20 kB / 1.335 GB, free: 7.289 MB / 1.029 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.0001838/0.3962, allocations: 163.9 kB / 1.336 GB, free: 7.121 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.923e-05/0.3963, allocations: 31.78 kB / 1.336 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.235e-05/0.3964, allocations: 33.97 kB / 1.336 GB, free: 7.055 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.3964, allocations: 4 kB / 1.336 GB, free: 7.051 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.3964, allocations: 4 kB / 1.336 GB, free: 7.047 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.3964, allocations: 3.984 kB / 1.336 GB, free: 7.043 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003547/0.3967, allocations: 280.4 kB / 1.336 GB, free: 6.727 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.3967, allocations: 0 / 1.336 GB, free: 6.727 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004317/0.3972, allocations: 75.89 kB / 1.336 GB, free: 6.652 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.3972, allocations: 7.938 kB / 1.336 GB, free: 6.645 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/0.3972, allocations: 11.98 kB / 1.336 GB, free: 6.633 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.3972, allocations: 0 / 1.336 GB, free: 6.633 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3972, allocations: 8 kB / 1.336 GB, free: 6.625 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.3984, allocations: 0.5869 MB / 1.337 GB, free: 6.012 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.3984, allocations: 31.73 kB / 1.337 GB, free: 5.98 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.22e-05/0.3985, allocations: 12 kB / 1.337 GB, free: 5.969 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.3987, allocations: 31.95 kB / 1.337 GB, free: 5.938 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.3989, allocations: 55.91 kB / 1.337 GB, free: 5.883 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/0.3989, allocations: 20 kB / 1.337 GB, free: 5.863 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001169/0.399, allocations: 121.2 kB / 1.337 GB, free: 5.746 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.399, allocations: 4 kB / 1.337 GB, free: 5.742 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003653/0.3994, allocations: 83.94 kB / 1.337 GB, free: 5.66 MB / 1.029 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.00148/0.4009, allocations: 1.144 MB / 1.338 GB, free: 4.488 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008042/0.4017, allocations: 370.9 kB / 1.338 GB, free: 4.125 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4017, allocations: 0 / 1.338 GB, free: 4.125 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003904/0.4021, allocations: 181.5 kB / 1.339 GB, free: 3.949 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.4024, allocations: 52.16 kB / 1.339 GB, free: 3.898 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004442/0.4069, allocations: 3.17 MB / 1.342 GB, free: 0.5664 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001614/0.407, allocations: 156.2 kB / 1.342 GB, free: 408 kB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001682/0.4072, allocations: 38.97 kB / 1.342 GB, free: 364 kB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/0.4074, allocations: 91.41 kB / 1.342 GB, free: 272 kB / 1.029 GB Notification: Performance of SimCode: time 1.162e-06/0.4074, allocations: 0 / 1.342 GB, free: 272 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03913/0.4465, allocations: 7.413 MB / 1.349 GB, free: 9.039 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.04, allocations: 5.703 kB / 1.349 GB, free: 9.035 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.1165996940108]