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.006467/0.006466, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001207/0.001207, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.507/1.507, allocations: 222.9 MB / 240.4 MB, free: 15.1 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 2.562/2.562, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 59.91 kB / 1.018 GB, free: 9.945 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9586/0.9603, allocations: 151.6 MB / 1.166 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002177/0.9625, allocations: 0.6898 MB / 1.167 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001195/0.9637, allocations: 0.853 MB / 1.168 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.361e-05/0.9638, allocations: 0 / 1.168 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.705e-05/0.9639, allocations: 3.938 kB / 1.168 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.964, allocations: 11.88 kB / 1.168 GB, free: 2.246 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.9643, allocations: 19.98 kB / 1.168 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001363/0.9644, allocations: 63.77 kB / 1.168 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.9646, allocations: 23.98 kB / 1.168 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.9647, allocations: 27.86 kB / 1.168 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.9648, allocations: 31.78 kB / 1.168 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.617e-05/0.9649, allocations: 8 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.546e-05/0.9649, allocations: 4 kB / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.03e-05/0.9649, allocations: 11.98 kB / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.55e-05/0.965, allocations: 23.88 kB / 1.168 GB, free: 2.035 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.9652, allocations: 70.44 kB / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.9652, allocations: 0 / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.034e-06/0.9652, allocations: 4 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.363e-05/0.9652, allocations: 0 / 1.168 GB, free: 1.965 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.0006134/0.9658, allocations: 372.1 kB / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.9659, allocations: 8.922 kB / 1.168 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.9659, allocations: 34.75 kB / 1.168 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.34e-05/0.966, allocations: 12.89 kB / 1.168 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.9663, allocations: 196.2 kB / 1.169 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.9663, allocations: 8.375 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.9663, allocations: 4.375 kB / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.9665, allocations: 58.17 kB / 1.169 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.9665, allocations: 7.922 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.9665, allocations: 0 / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.9666, allocations: 0 / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.9667, allocations: 31.97 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004786/0.9672, allocations: 304.8 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.9675, allocations: 66.53 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.189e-05/0.9675, allocations: 12.92 kB / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.9676, allocations: 8.062 kB / 1.169 GB, free: 0.6992 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.9676, allocations: 42.58 kB / 1.169 GB, free: 0.6484 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.9676, allocations: 0 / 1.169 GB, free: 0.6484 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0002542/0.9678, allocations: 69.62 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.9679, allocations: 51.41 kB / 1.169 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.382e-05/0.968, allocations: 121.8 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.968, allocations: 29.7 kB / 1.169 GB, free: 356 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 6.221e-05/0.9681, allocations: 100.1 kB / 1.169 GB, free: 252 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.9681, allocations: 7.953 kB / 1.169 GB, free: 244 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.563e-05/0.9682, allocations: 17.72 kB / 1.169 GB, free: 220 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.9683, allocations: 322.8 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.739e-05/0.9684, allocations: 15.98 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.342e-05/0.9685, allocations: 25.72 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.426e-05/0.9686, allocations: 32.77 kB / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.9686, allocations: 4.031 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00014/0.9687, allocations: 65.64 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.9687, allocations: 8 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.9688, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.9688, allocations: 3.938 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.224e-05/0.9688, allocations: 7.984 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.9688, allocations: 0 / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.199e-05/0.9689, allocations: 11.98 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.9689, allocations: 0 / 1.17 GB, free: 15.7 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.000101/0.969, allocations: 125.7 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.9691, allocations: 3.938 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.415e-05/0.9691, allocations: 11.91 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.9691, allocations: 0 / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.9691, allocations: 0 / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.9691, allocations: 336 / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.9693, allocations: 177.6 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.9693, allocations: 0 / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.462e-05/0.9694, allocations: 4 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.9694, allocations: 4 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.9694, allocations: 3.984 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.9694, allocations: 3.984 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.9694, allocations: 7.984 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001965/0.9696, allocations: 159.4 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.894e-05/0.9697, allocations: 85.06 kB / 1.17 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.9697, allocations: 0 / 1.17 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.718e-05/0.9698, allocations: 12 kB / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.9699, allocations: 11.92 kB / 1.17 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.9699, allocations: 3.984 kB / 1.17 GB, free: 15 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.128e-05/0.9699, allocations: 91.28 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.9699, allocations: 0 / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000229/0.9702, allocations: 11.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.0005063/0.9707, allocations: 0.6929 MB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001708/0.9709, allocations: 35.92 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.9709, allocations: 0 / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.54e-05/0.9709, allocations: 19.98 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.9713, 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.001348/0.9727, allocations: 1.325 MB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.9729, allocations: 0.6923 MB / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.205e-05/0.973, allocations: 0 / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.627e-05/0.973, allocations: 31.3 kB / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of SimCode: time 3.91e-07/0.973, allocations: 0 / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01922/0.9923, allocations: 1.743 MB / 1.175 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.435/8.428, allocations: 9.188 kB / 1.175 GB, free: 10.3 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