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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.004884/0.004884, allocations: 99.83 kB / 15.73 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002162/0.002162, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.669/2.669, allocations: 469.4 MB / 0.7421 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 64.05 kB / 1.064 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8546/0.8568, allocations: 159.1 MB / 1.22 GB, free: 2.371 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.001833/0.8587, allocations: 0.6949 MB / 1.22 GB, free: 1.676 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009723/0.8597, allocations: 0.8546 MB / 1.221 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.516e-05/0.8597, allocations: 0 / 1.221 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.868e-05/0.8598, allocations: 3.938 kB / 1.221 GB, free: 0.8047 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.437e-05/0.8599, allocations: 15.86 kB / 1.221 GB, free: 0.7891 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001536/0.86, allocations: 11.98 kB / 1.221 GB, free: 0.7773 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.794e-05/0.8601, allocations: 63.78 kB / 1.221 GB, free: 0.7148 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.8603, allocations: 27.94 kB / 1.221 GB, free: 0.6875 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.391e-05/0.8604, allocations: 23.91 kB / 1.221 GB, free: 0.6641 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.419e-05/0.8604, allocations: 31.8 kB / 1.221 GB, free: 0.6328 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.8605, allocations: 4 kB / 1.221 GB, free: 0.6289 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.167e-05/0.8605, allocations: 8 kB / 1.221 GB, free: 0.6211 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.618e-05/0.8605, allocations: 11.98 kB / 1.221 GB, free: 0.6094 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.775e-05/0.8606, allocations: 23.88 kB / 1.221 GB, free: 0.5859 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001234/0.8607, allocations: 62.44 kB / 1.221 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.8607, allocations: 4 kB / 1.221 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8607, allocations: 4 kB / 1.221 GB, free: 0.5195 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.927e-06/0.8607, allocations: 0 / 1.221 GB, free: 0.5195 MB / 0.9356 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.0004902/0.8612, allocations: 374.8 kB / 1.222 GB, free: 108 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.8613, allocations: 8.625 kB / 1.222 GB, free: 100 kB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.133e-05/0.8613, allocations: 34.75 kB / 1.222 GB, free: 56 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.8614, allocations: 4.891 kB / 1.222 GB, free: 52 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.8616, allocations: 188.3 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.8617, allocations: 8.312 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.8617, allocations: 12.31 kB / 1.222 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.8618, allocations: 62.17 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.8618, allocations: 3.938 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.8619, allocations: 0 / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.8619, allocations: 0 / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.862, allocations: 31.97 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004355/0.8624, allocations: 300.7 kB / 1.222 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.8627, allocations: 74.52 kB / 1.223 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.287e-05/0.8628, allocations: 12.92 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.8628, allocations: 8.078 kB / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.8628, allocations: 34.56 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8629, allocations: 4 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0002544/0.8631, allocations: 73.56 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.8632, allocations: 51.41 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.346e-05/0.8633, allocations: 121.8 kB / 1.223 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.8633, allocations: 25.7 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.661e-05/0.8633, allocations: 100.1 kB / 1.223 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.8634, allocations: 3.953 kB / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.8634, allocations: 25.7 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.8635, allocations: 318.8 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.741e-05/0.8636, allocations: 15.98 kB / 1.223 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.39e-05/0.8636, allocations: 29.7 kB / 1.223 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.701e-05/0.8637, allocations: 28.84 kB / 1.223 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.8638, allocations: 4 kB / 1.223 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001418/0.8639, allocations: 69.61 kB / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.8639, allocations: 9.875 kB / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.8639, allocations: 0 / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.8639, allocations: 0 / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.21e-05/0.864, allocations: 7.984 kB / 1.223 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.864, allocations: 0 / 1.223 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.703e-05/0.8641, allocations: 11.98 kB / 1.223 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.8641, allocations: 4 kB / 1.223 GB, free: 14.26 MB / 0.9512 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 8.607e-05/0.8642, allocations: 126.2 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.8642, allocations: 0 / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.898e-05/0.8643, allocations: 7.906 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.8643, allocations: 0 / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.8643, allocations: 0 / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.8643, allocations: 0 / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.8645, allocations: 181.5 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.8645, allocations: 4 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.447e-05/0.8645, allocations: 7.938 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.8645, allocations: 3.984 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.8645, allocations: 0 / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.8645, allocations: 7.938 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8646, allocations: 0 / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001704/0.8647, allocations: 155.8 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-05/0.8648, allocations: 81.06 kB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.8648, allocations: 4 kB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.039e-05/0.8649, allocations: 7.984 kB / 1.224 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.8649, allocations: 12.03 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.8649, allocations: 7.984 kB / 1.224 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.232e-05/0.865, allocations: 87.28 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.865, allocations: 0 / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002308/0.8652, allocations: 15.92 kB / 1.224 GB, free: 13.46 MB / 0.9512 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.0004417/0.8657, allocations: 0.6967 MB / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001568/0.8659, allocations: 31.98 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.8659, allocations: 0 / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.887e-05/0.8659, allocations: 23.92 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.8662, allocations: 3.984 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.8676, allocations: 1.341 MB / 1.226 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.8678, allocations: 0.6846 MB / 1.227 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.298e-05/0.8679, allocations: 11.84 kB / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.559e-05/0.868, allocations: 23.42 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/0.868, allocations: 0 / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.8854, allocations: 1.761 MB / 1.229 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.129/8.014, allocations: 8.469 kB / 1.229 GB, free: 8.836 MB / 0.9512 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv --start-time 0 --stop-time 1800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.72 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[505]=1800.000000 File[1377]=1124.640000 Error: Could not read variable shaH.H in file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.H from file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HHigh in file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HHigh from file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HLow in file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HLow from file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! " Variables in the reference:time,shaH.H,shaH.HHigh,shaH.HLow,shaH.y Variables in the result:time,H.y,shaH.y,H.amplitude,H.freqHz,H.offset