Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_Shade_Validation_Shade_H",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_11_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.007339/0.00734, allocations: 98.47 kB / 15.73 MB, free: 5.949 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.001978/0.001978, allocations: 196.3 kB / 16.68 MB, free: 5.871 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.732/2.732, allocations: 469.8 MB / 0.7425 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 71.89 kB / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6942/0.6963, allocations: 159.2 MB / 1.22 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.00198/0.6983, allocations: 0.6911 MB / 1.221 GB, free: 1.348 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001102/0.6994, allocations: 0.8429 MB / 1.222 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.384e-05/0.6995, allocations: 0 / 1.222 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.23e-05/0.6996, allocations: 7.875 kB / 1.222 GB, free: 496 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.211e-05/0.6997, allocations: 15.92 kB / 1.222 GB, free: 480 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001606/0.6998, allocations: 19.92 kB / 1.222 GB, free: 460 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.6999, allocations: 59.78 kB / 1.222 GB, free: 400 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.7001, allocations: 23.94 kB / 1.222 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.481e-05/0.7002, allocations: 27.92 kB / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.512e-05/0.7002, allocations: 27.84 kB / 1.222 GB, free: 320 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.7003, allocations: 8 kB / 1.222 GB, free: 312 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.361e-05/0.7003, allocations: 4 kB / 1.222 GB, free: 308 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.457e-05/0.7003, allocations: 11.98 kB / 1.222 GB, free: 296 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.068e-05/0.7004, allocations: 23.86 kB / 1.222 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.7005, allocations: 67.38 kB / 1.222 GB, free: 208 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.7005, allocations: 4 kB / 1.222 GB, free: 204 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.773e-06/0.7005, allocations: 0 / 1.222 GB, free: 204 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.7005, allocations: 4 kB / 1.222 GB, free: 200 kB / 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.0005204/0.7011, allocations: 367.2 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.7011, allocations: 15.97 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.7e-05/0.7011, allocations: 34.75 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.056e-05/0.7012, allocations: 8.891 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.7015, allocations: 196.2 kB / 1.223 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.7015, allocations: 4.375 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.7015, allocations: 4.375 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.7016, allocations: 62.17 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.7017, allocations: 3.938 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.7017, allocations: 4 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.7017, allocations: 0 / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001067/0.7018, allocations: 31.98 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004363/0.7023, allocations: 288.8 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.7025, allocations: 74.47 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.75e-05/0.7026, allocations: 21 kB / 1.223 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.7026, allocations: 0 / 1.223 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.7027, allocations: 30.56 kB / 1.223 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.7027, allocations: 4 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0002509/0.7029, allocations: 73.62 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.703, allocations: 59.33 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.7031, allocations: 121.8 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.7031, allocations: 29.7 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.185e-05/0.7032, allocations: 92.08 kB / 1.223 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.7032, allocations: 11.95 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.776e-05/0.7032, allocations: 13.72 kB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.7034, allocations: 326.8 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.416e-05/0.7034, allocations: 12 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.08e-05/0.7035, allocations: 33.7 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.651e-05/0.7036, allocations: 24.84 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.7036, allocations: 0 / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001471/0.7038, allocations: 69.89 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.7038, allocations: 12.03 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.7038, allocations: 0 / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.7038, allocations: 0 / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.621e-05/0.7039, allocations: 7.938 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.7039, allocations: 3.984 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.774e-05/0.704, allocations: 8 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.704, allocations: 0 / 1.224 GB, free: 13.95 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 9.59e-05/0.7041, allocations: 121.8 kB / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.7041, allocations: 7.984 kB / 1.224 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.81e-05/0.7041, allocations: 11.91 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.7041, allocations: 0 / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.7042, allocations: 0 / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.7042, allocations: 3.938 kB / 1.224 GB, free: 13.78 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000198/0.7044, allocations: 185.6 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.7044, allocations: 0 / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.481e-05/0.7044, allocations: 8 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.7044, allocations: 0 / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.525e-06/0.7044, allocations: 0 / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.7045, allocations: 0 / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.7045, allocations: 4 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001828/0.7046, allocations: 159.4 kB / 1.224 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.757e-05/0.7047, allocations: 93.05 kB / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.7047, allocations: 0 / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.748e-05/0.7048, allocations: 4 kB / 1.224 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.7049, allocations: 7.984 kB / 1.224 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.7049, allocations: 0 / 1.224 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.619e-05/0.705, allocations: 103.3 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.705, allocations: 0 / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002288/0.7052, allocations: 7.938 kB / 1.225 GB, free: 13.14 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.0005073/0.7057, allocations: 0.7011 MB / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001572/0.7059, allocations: 31.97 kB / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.7059, allocations: 4 kB / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.517e-05/0.706, allocations: 11.98 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.7063, allocations: 10.64 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/0.7077, allocations: 1.34 MB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.708, allocations: 0.6924 MB / 1.227 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.772e-05/0.708, allocations: 4.328 kB / 1.227 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.341e-05/0.7081, allocations: 23.42 kB / 1.227 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of SimCode: time 2.7e-07/0.7081, allocations: 0 / 1.227 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.7301, allocations: 1.744 MB / 1.229 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.673/8.403, allocations: 4.531 kB / 1.229 GB, free: 8.523 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv --start-time 0 --stop-time 1800 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.72 Buildings_11_Buildings_Controls_OBC_Shade_Validation_Shade_H.fmu > Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.H from file Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HHigh in file Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HHigh from file Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HLow in file Buildings_11_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HLow from file Buildings_11_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