Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_OBC_Shade_Validation_Shade_H",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_10_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.0123/0.0123, allocations: 100.3 kB / 15.73 MB, free: 6.047 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.001962/0.001962, allocations: 195.3 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.388/2.388, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 4.531/4.531, allocations: 437 MB / 0.7105 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002681/0.002681, allocations: 63.91 kB / 1.018 GB, free: 9.961 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.573/1.575, allocations: 151.6 MB / 1.166 GB, free: 3.82 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.003043/1.578, allocations: 0.6989 MB / 1.167 GB, free: 3.121 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001815/1.58, allocations: 0.8453 MB / 1.168 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.676e-05/1.58, allocations: 0 / 1.168 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.787e-05/1.58, allocations: 7.922 kB / 1.168 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001381/1.581, allocations: 15.86 kB / 1.168 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/1.581, allocations: 23.98 kB / 1.168 GB, free: 2.219 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001661/1.581, allocations: 63.78 kB / 1.168 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/1.581, allocations: 15.98 kB / 1.168 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/1.581, allocations: 27.86 kB / 1.168 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/1.581, allocations: 31.84 kB / 1.168 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/1.582, allocations: 8 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.41e-05/1.582, allocations: 8 kB / 1.168 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.012e-05/1.582, allocations: 4 kB / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.26e-05/1.582, allocations: 27.86 kB / 1.168 GB, free: 2.035 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001932/1.582, allocations: 66.44 kB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/1.582, allocations: 0 / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.363e-06/1.582, allocations: 0 / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.411e-05/1.582, allocations: 0 / 1.168 GB, free: 1.973 MB / 0.8887 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.0007922/1.583, allocations: 376.1 kB / 1.168 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 6.621e-05/1.583, allocations: 12.92 kB / 1.168 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.615e-05/1.583, allocations: 34.75 kB / 1.168 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.141e-05/1.583, allocations: 12.83 kB / 1.168 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/1.583, allocations: 192.2 kB / 1.169 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/1.583, allocations: 384 / 1.169 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/1.583, allocations: 4.375 kB / 1.169 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/1.584, allocations: 62.22 kB / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/1.584, allocations: 3.938 kB / 1.169 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/1.584, allocations: 7.922 kB / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/1.584, allocations: 4 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/1.584, allocations: 31.97 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006605/1.585, allocations: 296.8 kB / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004619/1.585, allocations: 74.52 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.673e-05/1.585, allocations: 16.92 kB / 1.169 GB, free: 0.7031 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/1.585, allocations: 0 / 1.169 GB, free: 0.7031 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/1.585, allocations: 34.5 kB / 1.169 GB, free: 0.6602 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 2.014e-06/1.585, allocations: 4 kB / 1.169 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0004156/1.586, allocations: 73.7 kB / 1.169 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.074e-05/1.586, allocations: 55.41 kB / 1.169 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/1.586, allocations: 129.7 kB / 1.169 GB, free: 384 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/1.586, allocations: 25.7 kB / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 9.565e-05/1.586, allocations: 96.08 kB / 1.169 GB, free: 252 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/1.586, allocations: 7.953 kB / 1.169 GB, free: 244 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.266e-05/1.586, allocations: 13.72 kB / 1.169 GB, free: 224 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002329/1.587, allocations: 326.8 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.671e-05/1.587, allocations: 12 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/1.587, allocations: 29.7 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/1.587, allocations: 32.78 kB / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.587, allocations: 4 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002362/1.587, allocations: 65.62 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/1.587, allocations: 4 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/1.587, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/1.587, allocations: 4 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.144e-05/1.587, allocations: 12.02 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/1.587, allocations: 0 / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.904e-05/1.587, allocations: 4 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/1.588, allocations: 0 / 1.17 GB, free: 15.71 MB / 0.9044 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.0001594/1.588, allocations: 125.7 kB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.886e-05/1.588, allocations: 4 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.869e-05/1.588, allocations: 7.906 kB / 1.17 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/1.588, allocations: 7.938 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.588, allocations: 0 / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/1.588, allocations: 4 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003205/1.588, allocations: 173.6 kB / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/1.588, allocations: 3.938 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.857e-05/1.588, allocations: 4 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/1.588, allocations: 4.328 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/1.588, allocations: 0 / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/1.588, allocations: 0 / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/1.588, allocations: 3.984 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003166/1.589, allocations: 163.4 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.39e-05/1.589, allocations: 89.05 kB / 1.17 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.844e-05/1.589, allocations: 4 kB / 1.17 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/1.589, allocations: 0 / 1.17 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.51e-05/1.589, allocations: 11.92 kB / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/1.589, allocations: 4 kB / 1.17 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001162/1.589, allocations: 95.27 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.2e-07/1.589, allocations: 0 / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000431/1.59, allocations: 15.94 kB / 1.171 GB, free: 14.9 MB / 0.9044 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.0008401/1.591, allocations: 0.6889 MB / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000283/1.591, allocations: 35.92 kB / 1.171 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/1.591, allocations: 4 kB / 1.171 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/1.591, allocations: 19.98 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004749/1.591, allocations: 8 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/1.594, allocations: 1.335 MB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/1.595, allocations: 0.6846 MB / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.655e-05/1.595, allocations: 11.94 kB / 1.173 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.097e-05/1.595, allocations: 19.42 kB / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of SimCode: time 3.877e-06/1.595, allocations: 0 / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03828/1.633, allocations: 1.746 MB / 1.175 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/14.32, allocations: 4 kB / 1.175 GB, free: 10.31 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_Shade_Validation_Shade_H.fmu > Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.H from file Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HHigh in file Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HHigh from file Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HLow in file Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HLow from file Buildings_10_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