Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.Shade.Validation.Shade_H.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.001836/0.001836, 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.002281/0.002281, allocations: 216.3 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.498/1.498, allocations: 230.6 MB / 256 MB, free: 7.793 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.268/3.268, allocations: 0.49 GB / 0.7951 GB, free: 35.43 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.Shade.Validation.Shade_H,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Shade_Validation_Shade_H",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Shade_Validation_Shade_H",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.002857/0.002857, allocations: 70.14 kB / 1.154 GB, free: 25.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4065, allocations: 176.1 MB / 1.326 GB, free: 1.539 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002029/0.4085, allocations: 0.6973 MB / 1.326 GB, free: 0.8477 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.4097, allocations: 0.8861 MB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.047e-05/0.4097, allocations: 0 / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.991e-05/0.4097, allocations: 7.938 kB / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.476e-05/0.4098, allocations: 11.88 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001892/0.41, allocations: 27.91 kB / 1.327 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 9.242e-05/0.4101, allocations: 59.8 kB / 1.327 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.266e-05/0.4102, allocations: 15.97 kB / 1.327 GB, free: 15.83 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.4103, allocations: 27.92 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.037e-05/0.4104, allocations: 27.86 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.4104, allocations: 11.88 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 3.672e-05/0.4104, allocations: 8 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.122e-05/0.4105, allocations: 19.97 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.876e-05/0.4105, allocations: 19.88 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.4106, allocations: 79.91 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.4106, allocations: 0 / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.363e-06/0.4106, allocations: 0 / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.4106, allocations: 0 / 1.328 GB, free: 15.64 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004553/0.4111, allocations: 287.4 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.4111, allocations: 8.031 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.255e-05/0.4112, allocations: 42.73 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.4113, allocations: 12.89 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.4115, allocations: 138.4 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.4115, allocations: 384 / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.4115, allocations: 12.31 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.4117, allocations: 58.23 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.4117, allocations: 3.938 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.4117, allocations: 0 / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.4117, allocations: 0 / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.899e-05/0.4118, allocations: 31.97 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004132/0.4122, allocations: 259.8 kB / 1.328 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.4125, allocations: 74.45 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.382e-05/0.4126, allocations: 16.92 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.4126, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.4126, allocations: 34.64 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 8.52e-07/0.4126, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0002449/0.4128, allocations: 81.56 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.4129, allocations: 51.41 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.413, allocations: 117.8 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.413, allocations: 29.7 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.859e-05/0.4131, allocations: 96.06 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.4131, allocations: 8.016 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.854e-05/0.4131, allocations: 17.72 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.4133, allocations: 326.8 kB / 1.329 GB, free: 13.78 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.49e-05/0.4133, allocations: 15.98 kB / 1.329 GB, free: 13.76 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.929e-05/0.4134, allocations: 47.42 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.735e-05/0.4135, allocations: 40.86 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.4135, allocations: 4 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001379/0.4136, allocations: 65.86 kB / 1.329 GB, free: 13.59 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.4137, allocations: 8 kB / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-06/0.4137, allocations: 0 / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.4137, allocations: 48 / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.022e-05/0.4137, allocations: 15.91 kB / 1.329 GB, free: 13.56 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.4137, allocations: 0 / 1.329 GB, free: 13.56 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.916e-05/0.4138, allocations: 11.98 kB / 1.329 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.4138, allocations: 4 kB / 1.329 GB, free: 13.55 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: 2 (shaH.hys.y,$PRE.shaH.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001046/0.4139, allocations: 120.7 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.4139, allocations: 3.953 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.414, allocations: 12 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.414, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.414, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.414, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001695/0.4141, allocations: 144.7 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4141, allocations: 3.938 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.504e-05/0.4142, allocations: 7.938 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.4142, allocations: 4 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/0.4142, allocations: 3.984 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4142, allocations: 0 / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4142, allocations: 4 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001807/0.4144, allocations: 159.4 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.198e-06/0.4144, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.4144, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.214e-05/0.4145, allocations: 4 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.856e-05/0.4145, allocations: 15.97 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.4145, allocations: 4 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.872e-05/0.4146, allocations: 95.27 kB / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4146, allocations: 0 / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002206/0.4148, allocations: 11.95 kB / 1.33 GB, free: 12.89 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: 1 (shaH.hys.y) * Number of discrete states: 1 (shaH.hys.y) * 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.0004939/0.4153, allocations: 0.6889 MB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001477/0.4155, allocations: 35.98 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4155, allocations: 0 / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.839e-05/0.4155, allocations: 23.92 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.4158, allocations: 4 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.4172, allocations: 1.335 MB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.436e-05/0.4173, allocations: 67.34 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.403e-05/0.4174, allocations: 16.39 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.339e-05/0.4174, allocations: 19.44 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.4174, allocations: 0 / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0271/0.4445, allocations: 2.333 MB / 1.334 GB, free: 8.375 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.73, allocations: 1.891 kB / 1.334 GB, free: 8.375 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_Shade_Validation_Shade_H_fmu --startTime=0 --stopTime=1800 --stepSize=0.72 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_Shade_Validation_Shade_H.fmu > Buildings_12_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.Shade.Validation.Shade_H.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: 18.565434863994597]