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 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_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.00119/0.00119, allocations: 108 kB / 15.6 MB, free: 132 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.001379/0.00138, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.944/2.944, allocations: 469.4 MB / 0.742 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 63.44 kB / 0.9083 GB, free: 34.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3428, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002402/0.3453, allocations: 0.7068 MB / 1.064 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001152/0.3465, allocations: 0.8408 MB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.952e-05/0.3466, allocations: 0 / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.416e-05/0.3466, allocations: 3.938 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.3468, allocations: 15.84 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002107/0.347, allocations: 19.98 kB / 1.065 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.3471, allocations: 63.78 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.3472, allocations: 16 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.3473, allocations: 27.91 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.928e-05/0.3474, allocations: 35.78 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.3475, allocations: 4 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.626e-05/0.3475, allocations: 8 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.3475, allocations: 4 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.353e-05/0.3475, allocations: 31.8 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.3477, allocations: 68.05 kB / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3477, allocations: 4 kB / 1.065 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3477, allocations: 0 / 1.065 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.978e-06/0.3477, allocations: 0 / 1.065 GB, free: 12.61 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.0004992/0.3482, allocations: 363.3 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3483, allocations: 8.031 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.178e-05/0.3483, allocations: 38.73 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.815e-05/0.3484, allocations: 12.78 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.3486, allocations: 192.2 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.3487, allocations: 4.375 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/0.3487, allocations: 8.312 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.3488, allocations: 62.16 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.3489, allocations: 3.938 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.3489, allocations: 4 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3489, allocations: 0 / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.349, allocations: 27.98 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004406/0.3494, allocations: 296.8 kB / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002857/0.3497, allocations: 70.47 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.593e-05/0.3498, allocations: 21 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.3498, allocations: 4 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.3499, allocations: 30.56 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.3499, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002597/0.3501, allocations: 77.52 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.3502, allocations: 51.41 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.653e-05/0.3503, allocations: 125.8 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.3503, allocations: 25.7 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.726e-05/0.3504, allocations: 92.14 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.3504, allocations: 19.73 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.883e-05/0.3504, allocations: 13.72 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3505, allocations: 322.8 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.443e-05/0.3506, allocations: 15.98 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.566e-05/0.3507, allocations: 25.7 kB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.3508, allocations: 37.14 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3508, allocations: 4 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001471/0.351, allocations: 69.61 kB / 1.067 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.351, allocations: 6.188 kB / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.351, allocations: 0 / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.351, allocations: 0 / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.302e-05/0.3511, allocations: 8 kB / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.3511, allocations: 0 / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.499e-05/0.3511, allocations: 11.98 kB / 1.067 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-06/0.3512, allocations: 0 / 1.067 GB, free: 10.36 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 (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 8.278e-05/0.3513, allocations: 121.7 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.823e-05/0.3513, allocations: 7.906 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.8e-05/0.3513, allocations: 11.89 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3513, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3513, allocations: 4 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.3513, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.3515, allocations: 169.6 kB / 1.068 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3515, allocations: 7.938 kB / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.577e-05/0.3516, allocations: 7.984 kB / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.3516, allocations: 4 kB / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.3516, allocations: 3.938 kB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3516, allocations: 0 / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3516, allocations: 0 / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001756/0.3518, allocations: 159.4 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.028e-05/0.3518, allocations: 81.11 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.3519, allocations: 4 kB / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.624e-05/0.3519, allocations: 7.984 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.352, allocations: 7.984 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.352, allocations: 4 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.215e-05/0.3521, allocations: 95.27 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3521, allocations: 0 / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002285/0.3523, allocations: 8 kB / 1.068 GB, free: 9.574 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 (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.0004371/0.3528, allocations: 0.6933 MB / 1.069 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001586/0.3529, allocations: 35.97 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3529, allocations: 0 / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.619e-05/0.353, allocations: 15.94 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.3533, allocations: 19.97 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.3547, allocations: 1.336 MB / 1.07 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.355, allocations: 0.6885 MB / 1.071 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.448e-05/0.355, allocations: 8 kB / 1.071 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/0.3551, allocations: 19.42 kB / 1.071 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.3551, allocations: 0 / 1.071 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.3752, allocations: 1.729 MB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.348/7.723, allocations: 8 kB / 1.073 GB, free: 4.969 MB / 0.8262 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