Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Shade.Validation.Shade_H,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H",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.001277/0.001277, 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.001296/0.001296, allocations: 195.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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.665/2.665, allocations: 461.9 MB / 0.7346 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 64.88 kB / 0.8992 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3286, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.00283/0.3315, allocations: 0.695 MB / 1.054 GB, free: 7.555 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001192/0.3327, allocations: 0.843 MB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.792e-05/0.3328, allocations: 7.875 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.168e-05/0.3328, allocations: 3.938 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001009/0.333, allocations: 7.875 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001793/0.3332, allocations: 31.89 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.3333, allocations: 55.86 kB / 1.055 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.3334, allocations: 19.98 kB / 1.055 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.3335, allocations: 23.91 kB / 1.055 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.688e-05/0.3336, allocations: 27.86 kB / 1.055 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.3336, allocations: 8 kB / 1.055 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.564e-05/0.3337, allocations: 8 kB / 1.055 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.458e-05/0.3337, allocations: 15.92 kB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.161e-05/0.3337, allocations: 23.88 kB / 1.055 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.3339, allocations: 68.05 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3339, allocations: 0 / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3339, allocations: 0 / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.789e-06/0.3339, allocations: 0 / 1.055 GB, free: 6.402 MB / 0.8106 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.0004677/0.3344, allocations: 368.8 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.3344, allocations: 8.625 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.632e-05/0.3345, allocations: 42.62 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.473e-05/0.3345, allocations: 12.84 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.3348, allocations: 188.3 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.3348, allocations: 8.375 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.3348, allocations: 384 / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001534/0.335, allocations: 58.23 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.335, allocations: 3.938 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.335, allocations: 3.984 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.335, allocations: 0 / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.3351, allocations: 39.91 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004487/0.3356, allocations: 304.7 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.3359, allocations: 66.53 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.632e-05/0.336, allocations: 20.86 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.336, allocations: 0 / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.336, allocations: 38.64 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.336, allocations: 0 / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002483/0.3363, allocations: 69.58 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.3363, allocations: 55.41 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.621e-05/0.3364, allocations: 125.7 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.3364, allocations: 25.7 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.374e-05/0.3365, allocations: 96.12 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.3365, allocations: 7.844 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.876e-05/0.3366, allocations: 17.72 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.943e-05/0.3367, allocations: 326.8 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.417e-05/0.3367, allocations: 23.86 kB / 1.057 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.68e-05/0.3368, allocations: 25.72 kB / 1.057 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.863e-05/0.3369, allocations: 32.83 kB / 1.057 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3369, allocations: 0 / 1.057 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001357/0.337, allocations: 61.59 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3371, allocations: 13.97 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.3371, allocations: 0 / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.3371, allocations: 0 / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.595e-05/0.3371, allocations: 16.02 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.3372, allocations: 3.938 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.097e-05/0.3372, allocations: 7.984 kB / 1.057 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-06/0.3372, allocations: 7.984 kB / 1.057 GB, free: 4.125 MB / 0.8106 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 7.827e-05/0.3373, allocations: 117.8 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.091e-05/0.3374, allocations: 3.906 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.648e-05/0.3374, allocations: 7.906 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.3374, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3374, allocations: 4 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3374, allocations: 0 / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.3376, allocations: 181.6 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3376, allocations: 0 / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.225e-05/0.3376, allocations: 4 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3376, allocations: 336 / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.3377, allocations: 3.984 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3377, allocations: 0 / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3377, allocations: 4 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001701/0.3378, allocations: 171.3 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.586e-05/0.3379, allocations: 77.11 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.3379, allocations: 4 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.47e-05/0.338, allocations: 7.984 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.338, allocations: 8 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.3381, allocations: 3.984 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.8e-05/0.3381, allocations: 87.28 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3381, allocations: 0 / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002257/0.3384, allocations: 12 kB / 1.057 GB, free: 3.344 MB / 0.8106 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.0004208/0.3388, allocations: 0.6928 MB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001659/0.339, allocations: 35.92 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.339, allocations: 4 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.938e-05/0.339, allocations: 19.98 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.3393, allocations: 11.88 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.3407, allocations: 1.331 MB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.3409, allocations: 0.6885 MB / 1.06 GB, free: 444 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.158e-05/0.341, allocations: 4 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.341, allocations: 19.42 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of SimCode: time 3.11e-07/0.341, allocations: 0 / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01811/0.3591, allocations: 1.706 MB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.946/7.305, allocations: 11.83 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H.fmu > Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches