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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.01001/0.01001, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001873/0.001873, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.705/2.705, allocations: 472.7 MB / 0.7453 GB, free: 428 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 83.81 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8961/0.8974, allocations: 159.9 MB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.001912/0.8994, allocations: 0.6998 MB / 1.226 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001043/0.9004, allocations: 0.8351 MB / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.492e-05/0.9005, allocations: 4 kB / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.603e-05/0.9005, allocations: 3.938 kB / 1.227 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.9006, allocations: 23.84 kB / 1.227 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000182/0.9008, allocations: 19.92 kB / 1.227 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.901, allocations: 59.78 kB / 1.227 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.9011, allocations: 19.94 kB / 1.227 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.9012, allocations: 31.92 kB / 1.227 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.861e-05/0.9013, allocations: 27.84 kB / 1.227 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/0.9013, allocations: 8 kB / 1.227 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.405e-05/0.9014, allocations: 4 kB / 1.227 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.379e-05/0.9014, allocations: 8 kB / 1.227 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.772e-05/0.9014, allocations: 35.78 kB / 1.227 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.9016, allocations: 54.52 kB / 1.227 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.9016, allocations: 4 kB / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.837e-06/0.9016, allocations: 0 / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.9016, allocations: 3.938 kB / 1.227 GB, free: 11.61 MB / 0.9512 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.0005681/0.9022, allocations: 372.2 kB / 1.227 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.9023, allocations: 12.03 kB / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.9023, allocations: 34.75 kB / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.9024, allocations: 12.83 kB / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.9027, allocations: 188.3 kB / 1.228 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.9027, allocations: 4.375 kB / 1.228 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.9027, allocations: 8.312 kB / 1.228 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/0.9029, allocations: 58.23 kB / 1.228 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.9029, allocations: 7.938 kB / 1.228 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.9029, allocations: 0 / 1.228 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.9029, allocations: 4 kB / 1.228 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001037/0.903, allocations: 31.92 kB / 1.228 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004781/0.9035, allocations: 288.8 kB / 1.228 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.9038, allocations: 74.47 kB / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.307e-05/0.9039, allocations: 21 kB / 1.228 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.9039, allocations: 0 / 1.228 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.904, allocations: 34.56 kB / 1.228 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.904, allocations: 0 / 1.228 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0002698/0.9042, allocations: 73.62 kB / 1.228 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.9043, allocations: 55.39 kB / 1.228 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.961e-05/0.9044, allocations: 121.8 kB / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.9044, allocations: 29.7 kB / 1.228 GB, free: 10 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.228e-05/0.9045, allocations: 92.09 kB / 1.228 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.9045, allocations: 11.94 kB / 1.228 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.9046, allocations: 21.66 kB / 1.228 GB, free: 9.867 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001789/0.9048, allocations: 318.8 kB / 1.229 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.487e-05/0.9048, allocations: 20 kB / 1.229 GB, free: 9.527 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.992e-05/0.9049, allocations: 33.7 kB / 1.229 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.238e-05/0.905, allocations: 25.12 kB / 1.229 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.905, allocations: 0 / 1.229 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000135/0.9051, allocations: 73.61 kB / 1.229 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.9052, allocations: 4 kB / 1.229 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.9052, allocations: 3.938 kB / 1.229 GB, free: 9.375 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.9052, allocations: 4.031 kB / 1.229 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.047e-05/0.9052, allocations: 7.938 kB / 1.229 GB, free: 9.363 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.9053, allocations: 0 / 1.229 GB, free: 9.363 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.733e-05/0.9053, allocations: 11.98 kB / 1.229 GB, free: 9.352 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.9053, allocations: 0 / 1.229 GB, free: 9.352 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 0.0001089/0.9054, allocations: 118.3 kB / 1.229 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.797e-05/0.9055, allocations: 7.984 kB / 1.229 GB, free: 9.219 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.051e-05/0.9055, allocations: 11.91 kB / 1.229 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.9055, allocations: 0 / 1.229 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.9055, allocations: 0 / 1.229 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.9055, allocations: 0 / 1.229 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.9057, allocations: 185.5 kB / 1.229 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.9057, allocations: 0 / 1.229 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.123e-05/0.9058, allocations: 4 kB / 1.229 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.9058, allocations: 0 / 1.229 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.9058, allocations: 3.938 kB / 1.229 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.9058, allocations: 0 / 1.229 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.9058, allocations: 4 kB / 1.229 GB, free: 8.957 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001799/0.906, allocations: 159.4 kB / 1.229 GB, free: 8.785 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.9061, allocations: 85.06 kB / 1.229 GB, free: 8.684 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.9061, allocations: 3.984 kB / 1.229 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.179e-05/0.9062, allocations: 4 kB / 1.229 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.9062, allocations: 11.98 kB / 1.229 GB, free: 8.664 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.9062, allocations: 0 / 1.229 GB, free: 8.664 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.212e-05/0.9063, allocations: 95.27 kB / 1.23 GB, free: 8.57 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9063, allocations: 4 kB / 1.23 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002236/0.9065, allocations: 11.94 kB / 1.23 GB, free: 8.555 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.0004453/0.907, allocations: 0.688 MB / 1.23 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001965/0.9072, allocations: 43.91 kB / 1.23 GB, free: 7.801 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.9072, allocations: 0 / 1.23 GB, free: 7.801 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.42e-05/0.9073, allocations: 19.98 kB / 1.23 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.9075, allocations: 4.844 kB / 1.23 GB, free: 7.777 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.9089, allocations: 1.352 MB / 1.232 GB, free: 6.352 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.9093, allocations: 0.6885 MB / 1.232 GB, free: 5.637 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.229e-05/0.9093, allocations: 8.031 kB / 1.232 GB, free: 5.629 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.362e-05/0.9094, allocations: 23.42 kB / 1.232 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of SimCode: time 2.71e-07/0.9094, allocations: 0 / 1.232 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01773/0.9271, allocations: 1.752 MB / 1.234 GB, free: 3.934 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.308/8.235, allocations: 7.25 kB / 1.234 GB, free: 3.93 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