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.001241/0.001241, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001607/0.001607, allocations: 189.2 kB / 16.25 MB, free: 6.621 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.498/1.498, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.865/4.865, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002458/0.002458, allocations: 62.47 kB / 0.8987 GB, free: 37.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4516/0.4541, allocations: 157.4 MB / 1.052 GB, free: 8.613 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002816/0.4569, allocations: 0.7637 MB / 1.053 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.4585, allocations: 0.8546 MB / 1.054 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.205e-05/0.4585, allocations: 0 / 1.054 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.559e-05/0.4586, allocations: 0 / 1.054 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.4587, allocations: 11.92 kB / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002212/0.459, allocations: 19.92 kB / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.4591, allocations: 59.8 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.4593, allocations: 15.98 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001295/0.4594, allocations: 31.84 kB / 1.054 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.077e-05/0.4595, allocations: 27.86 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.4596, allocations: 4 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.933e-05/0.4596, allocations: 12 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.019e-05/0.4596, allocations: 7.984 kB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.326e-05/0.4597, allocations: 31.81 kB / 1.054 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.4599, allocations: 64.05 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.4599, allocations: 0 / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.984e-06/0.4599, allocations: 0 / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.4599, allocations: 0 / 1.054 GB, free: 6.699 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.0006367/0.4606, allocations: 363.3 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.4606, allocations: 8.625 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.987e-05/0.4607, allocations: 38.75 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.657e-05/0.4607, allocations: 8.844 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003625/0.4611, allocations: 196.2 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.4612, allocations: 384 / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.357e-05/0.4612, allocations: 8.375 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002083/0.4614, allocations: 62.22 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.4614, allocations: 3.938 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.4615, allocations: 0 / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.4615, allocations: 0 / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.4616, allocations: 35.97 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005868/0.4622, allocations: 296.7 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004066/0.4627, allocations: 70.53 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.674e-05/0.4628, allocations: 21.02 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.4628, allocations: 7.969 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.4629, allocations: 42.5 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.774e-06/0.4629, allocations: 0 / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003751/0.4632, allocations: 69.58 kB / 1.055 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.871e-05/0.4633, allocations: 55.41 kB / 1.055 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.4635, allocations: 121.8 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.4635, allocations: 29.69 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.52e-05/0.4636, allocations: 92.14 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/0.4636, allocations: 3.906 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.587e-05/0.4637, allocations: 21.7 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.4639, allocations: 318.8 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.093e-05/0.464, allocations: 15.98 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.4641, allocations: 33.7 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.4643, allocations: 32.78 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4643, allocations: 0 / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002428/0.4645, allocations: 61.59 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.4646, allocations: 4 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.4646, allocations: 7.938 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.4646, allocations: 0 / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.129e-05/0.4647, allocations: 12.02 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.4647, allocations: 3.938 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.4648, allocations: 15.92 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.4649, allocations: 8 kB / 1.056 GB, free: 4.43 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 0.0001371/0.465, allocations: 113.7 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-05/0.4651, allocations: 7.906 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.327e-05/0.4651, allocations: 7.906 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.4652, allocations: 4 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.4652, allocations: 4 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4652, allocations: 0 / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.4655, allocations: 177.6 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.4655, allocations: 4 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.242e-05/0.4656, allocations: 7.984 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.4656, allocations: 0 / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.4656, allocations: 0 / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.4656, allocations: 0 / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4656, allocations: 0 / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002828/0.4659, allocations: 163.4 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.466, allocations: 77.11 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.466, allocations: 4.375 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.4662, allocations: 7.984 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/0.4663, allocations: 7.938 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.4663, allocations: 7.984 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.578e-05/0.4664, allocations: 91.27 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.5e-07/0.4664, allocations: 0 / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000463/0.4669, allocations: 12 kB / 1.057 GB, free: 3.648 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.000679/0.4676, allocations: 0.6928 MB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002758/0.4679, allocations: 39.92 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.4679, allocations: 4 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.4681, allocations: 19.98 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005559/0.4686, allocations: 1.891 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/0.4707, allocations: 1.347 MB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.4711, allocations: 0.6963 MB / 1.06 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.111e-05/0.4712, allocations: 0 / 1.06 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.348e-05/0.4713, allocations: 23.36 kB / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of SimCode: time 5.51e-07/0.4713, allocations: 0 / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.4948, allocations: 1.578 MB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000377/0.4953, allocations: 203.3 kB / 1.061 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.19/3.685, allocations: 0 / 1.061 GB, free: 14.97 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