Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.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_T,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_T,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_T",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.001762/0.001762, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002218/0.002218, allocations: 195.8 kB / 16.53 MB, free: 6.699 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.421/1.421, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.864/2.864, allocations: 469.4 MB / 0.742 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 62.42 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.333, allocations: 159.1 MB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_T): time 0.00243/0.3354, allocations: 0.7106 MB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.3365, allocations: 0.839 MB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.796e-05/0.3366, allocations: 4 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.64e-05/0.3366, allocations: 7.922 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.706e-05/0.3367, allocations: 7.875 kB / 1.065 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001678/0.3369, allocations: 23.97 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.322e-05/0.337, allocations: 63.78 kB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.3371, allocations: 16 kB / 1.065 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.3373, allocations: 27.86 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.444e-05/0.3373, allocations: 31.83 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.3374, allocations: 4 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.736e-05/0.3374, allocations: 8 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.375e-05/0.3374, allocations: 8 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.934e-05/0.3375, allocations: 31.8 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.3376, allocations: 68.05 kB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3376, allocations: 0 / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3376, allocations: 0 / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.3376, allocations: 4 kB / 1.065 GB, free: 12.69 MB / 0.8262 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.000465/0.3381, allocations: 367.3 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.3381, allocations: 8.031 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.186e-05/0.3382, allocations: 30.75 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.969e-05/0.3382, allocations: 8.844 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.3384, allocations: 204.1 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.3385, allocations: 4.375 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.3385, allocations: 4.375 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001634/0.3387, allocations: 58.23 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3387, allocations: 3.938 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.3387, allocations: 0 / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.3387, allocations: 0 / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.3388, allocations: 27.98 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004244/0.3392, allocations: 308.7 kB / 1.066 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.3395, allocations: 62.53 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.567e-05/0.3396, allocations: 22.67 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.3396, allocations: 0 / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.3397, allocations: 38.56 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.3397, allocations: 3.938 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002421/0.3399, allocations: 69.58 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.3399, allocations: 55.39 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.488e-05/0.34, allocations: 121.8 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.3401, allocations: 25.7 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.239e-05/0.3401, allocations: 92.12 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.3401, allocations: 19.75 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.594e-05/0.3402, allocations: 17.66 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.575e-05/0.3403, allocations: 326.8 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.348e-05/0.3403, allocations: 12 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.945e-05/0.3404, allocations: 25.7 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.69e-05/0.3405, allocations: 36.78 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3405, allocations: 0 / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001352/0.3407, allocations: 65.98 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3407, allocations: 8 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.3407, allocations: 48 / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.3407, allocations: 3.984 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.021e-05/0.3408, allocations: 4 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.3408, allocations: 7.938 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.9e-05/0.3408, allocations: 7.984 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.3409, allocations: 4 kB / 1.067 GB, free: 10.43 MB / 0.8262 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 (shaT.hys.y,$PRE.shaT.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 8.511e-05/0.341, allocations: 127.5 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.341, allocations: 7.891 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.025e-05/0.341, allocations: 11.91 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.341, allocations: 0 / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.341, allocations: 0 / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.341, allocations: 0 / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.3412, allocations: 177.6 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3412, allocations: 0 / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.347e-05/0.3413, allocations: 4 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3413, allocations: 4 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.3413, allocations: 0 / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-06/0.3413, allocations: 0 / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3413, allocations: 0 / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001621/0.3415, allocations: 159.4 kB / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.3415, allocations: 77.11 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.3415, allocations: 11.98 kB / 1.068 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.659e-05/0.3416, allocations: 4 kB / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.111e-05/0.3417, allocations: 15.92 kB / 1.068 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.3417, allocations: 0 / 1.068 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.688e-05/0.3417, allocations: 95.27 kB / 1.068 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3417, allocations: 0 / 1.068 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002304/0.342, allocations: 8 kB / 1.068 GB, free: 9.648 MB / 0.8262 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 (shaT.hys.y) * Number of discrete states: 1 (shaT.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.0004375/0.3424, allocations: 0.6894 MB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001854/0.3426, allocations: 39.91 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.3426, allocations: 0 / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.944e-05/0.3427, allocations: 19.98 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.343, allocations: 10.11 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.3443, allocations: 1.337 MB / 1.07 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.3445, allocations: 0.6849 MB / 1.071 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.712e-05/0.3446, allocations: 11.97 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.098e-05/0.3447, allocations: 23.44 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3447, allocations: 0 / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.3642, allocations: 1.724 MB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.413/7.777, allocations: 9.797 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_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_T.fmu > Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Shade_Validation_Shade_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.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 shaT.THigh in file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv. Warning: Get data of variable shaT.THigh from file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv failed! Error: Could not read variable shaT.TLow in file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv. Warning: Get data of variable shaT.TLow from file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv failed! Error: Could not read variable shaT.T in file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv. Warning: Get data of variable shaT.T from file Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv failed! " Variables in the reference:time,shaT.THigh,shaT.TLow,shaT.T,shaT.y Variables in the result:time,T.y,shaT.y,T.amplitude,T.freqHz,T.offset