Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.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.001771/0.001771, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.002065/0.002065, allocations: 215.2 kB / 22.25 MB, free: 5.105 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.574/1.574, allocations: 230.6 MB / 256 MB, free: 7.824 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.256/3.256, allocations: 0.49 GB / 0.7951 GB, free: 35.44 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.Average,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Average,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Average",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.002112/0.002112, allocations: 70.36 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.4188, 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.Average): time 0.002013/0.4208, allocations: 0.6923 MB / 1.327 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.4219, allocations: 0.8242 MB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.248e-05/0.422, allocations: 11.94 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.366e-05/0.422, allocations: 0 / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.277e-05/0.422, allocations: 7.875 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 6.657e-05/0.4221, allocations: 11.98 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 9.442e-05/0.4222, allocations: 51.83 kB / 1.327 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.4223, allocations: 8 kB / 1.327 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.685e-05/0.4224, allocations: 15.98 kB / 1.327 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.534e-05/0.4224, allocations: 19.92 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.481e-05/0.4224, allocations: 0 / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.484e-06/0.4225, allocations: 4 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.4225, allocations: 19.92 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.921e-05/0.4225, allocations: 11.94 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001007/0.4226, allocations: 52.06 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.4226, allocations: 0 / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.433e-06/0.4226, allocations: 3.938 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.4226, allocations: 0 / 1.328 GB, free: 15.73 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005229/0.4231, allocations: 282.2 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.4232, allocations: 8.031 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.661e-05/0.4232, allocations: 38.69 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.996e-05/0.4232, allocations: 4.938 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.4233, allocations: 122.4 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.106e-06/0.4234, allocations: 384 / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.4234, allocations: 8.312 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.4236, allocations: 66.22 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.4236, allocations: 7.922 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-06/0.4236, allocations: 0 / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.4236, allocations: 4 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002789/0.4239, allocations: 63.92 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003827/0.4243, allocations: 232 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.4245, allocations: 54.53 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.4247, allocations: 36.92 kB / 1.328 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.4247, allocations: 4 kB / 1.328 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.4247, allocations: 34.55 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.4247, allocations: 4 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0005216/0.4252, allocations: 129.5 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.4253, allocations: 51.41 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.236e-05/0.4254, allocations: 113.8 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.4254, allocations: 29.7 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.427e-05/0.4254, allocations: 84.14 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.161e-05/0.4254, allocations: 11.94 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.4255, allocations: 13.72 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.4256, allocations: 314.8 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.4258, allocations: 35.95 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.4259, allocations: 27.97 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002738/0.4262, allocations: 80.66 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.4262, allocations: 4 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003132/0.4265, allocations: 97.58 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.4265, allocations: 4 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.4265, allocations: 4 kB / 1.329 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.4265, allocations: 0 / 1.329 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.4266, allocations: 19.97 kB / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.4267, allocations: 0 / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.648e-05/0.4267, allocations: 11.98 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.4267, allocations: 0 / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.93e-05/0.4268, allocations: 118.3 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.52e-05/0.4269, allocations: 3.953 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.841e-05/0.4269, allocations: 7.938 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.4269, allocations: 8 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.4269, allocations: 3.938 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4269, allocations: 0 / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.4271, allocations: 144.6 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4271, allocations: 0 / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.013e-05/0.4272, allocations: 15.92 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.4272, allocations: 4 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.4272, allocations: 0 / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.4272, allocations: 0 / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.4272, allocations: 336 / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003712/0.4275, allocations: 203.4 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.156e-05/0.4276, allocations: 7.953 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.4276, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.4277, allocations: 11.98 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.206e-05/0.4277, allocations: 3.984 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.4277, allocations: 0 / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.28e-05/0.4278, allocations: 91.28 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4278, allocations: 0 / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002186/0.428, allocations: 8 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0007353/0.4287, allocations: 0.724 MB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003412/0.4291, allocations: 67.92 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.4291, allocations: 4 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.4292, allocations: 43.89 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.4296, allocations: 3.938 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005501/0.4301, allocations: 159.2 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.428e-05/0.4302, allocations: 67.34 kB / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.969e-05/0.4302, allocations: 0 / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.686e-05/0.4303, allocations: 15.44 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.4303, allocations: 0 / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02922/0.4595, allocations: 2.223 MB / 1.333 GB, free: 9.625 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.68, allocations: 12.95 kB / 1.333 GB, free: 9.617 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Average.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable avg1.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv. Warning: Get data of variable avg1.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv failed! Error: Could not read variable avg1.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv. Warning: Get data of variable avg1.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.724756582989357]