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.007316/0.007316, allocations: 103.6 kB / 15.74 MB, free: 6.047 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.001884/0.001884, allocations: 188.4 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.558/1.558, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.94/2.94, allocations: 482.4 MB / 0.7548 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 63.91 kB / 1.083 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.292, allocations: 162.2 MB / 1.241 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.001902/0.2939, allocations: 0.7048 MB / 1.242 GB, free: 9.613 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001087/0.295, allocations: 0.8351 MB / 1.243 GB, free: 8.766 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.357e-05/0.2951, allocations: 0 / 1.243 GB, free: 8.766 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.048e-05/0.2951, allocations: 3.938 kB / 1.243 GB, free: 8.762 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.433e-05/0.2952, allocations: 19.88 kB / 1.243 GB, free: 8.742 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.2954, allocations: 19.97 kB / 1.243 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.883e-05/0.2955, allocations: 59.78 kB / 1.243 GB, free: 8.664 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2956, allocations: 15.98 kB / 1.243 GB, free: 8.648 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.55e-05/0.2957, allocations: 31.86 kB / 1.243 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.879e-05/0.2958, allocations: 23.86 kB / 1.243 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.247e-05/0.2958, allocations: 8 kB / 1.243 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.587e-05/0.2958, allocations: 8 kB / 1.243 GB, free: 8.578 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.2958, allocations: 15.97 kB / 1.243 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.701e-05/0.2959, allocations: 19.88 kB / 1.243 GB, free: 8.543 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.296, allocations: 63.72 kB / 1.243 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.296, allocations: 7.984 kB / 1.243 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.133e-06/0.296, allocations: 0 / 1.243 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.296, allocations: 0 / 1.243 GB, free: 8.473 MB / 0.9981 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.0005021/0.2966, allocations: 363.2 kB / 1.244 GB, free: 8.066 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.2966, allocations: 12.03 kB / 1.244 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.757e-05/0.2966, allocations: 38.75 kB / 1.244 GB, free: 8.008 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.227e-05/0.2967, allocations: 16.81 kB / 1.244 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.297, allocations: 200.1 kB / 1.244 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.297, allocations: 4.375 kB / 1.244 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.297, allocations: 4.375 kB / 1.244 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.2971, allocations: 54.23 kB / 1.244 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.2971, allocations: 3.938 kB / 1.244 GB, free: 7.688 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.2972, allocations: 4 kB / 1.244 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.2972, allocations: 0 / 1.244 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.2973, allocations: 35.98 kB / 1.244 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004315/0.2977, allocations: 296.8 kB / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.298, allocations: 70.53 kB / 1.244 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.032e-05/0.2981, allocations: 24.98 kB / 1.244 GB, free: 7.203 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.2981, allocations: 0 / 1.244 GB, free: 7.203 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.2982, allocations: 34.5 kB / 1.244 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.2982, allocations: 0 / 1.244 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0002488/0.2984, allocations: 73.62 kB / 1.244 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.2985, allocations: 51.41 kB / 1.244 GB, free: 7.02 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.2986, allocations: 125.8 kB / 1.245 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.2986, allocations: 29.7 kB / 1.245 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.024e-05/0.2987, allocations: 92.03 kB / 1.245 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.2987, allocations: 11.95 kB / 1.245 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.2987, allocations: 17.7 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.2989, allocations: 318.8 kB / 1.245 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.517e-05/0.299, allocations: 15.98 kB / 1.245 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.227e-05/0.299, allocations: 37.7 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.79e-05/0.2991, allocations: 28.78 kB / 1.245 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2991, allocations: 0 / 1.245 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001455/0.2993, allocations: 61.64 kB / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.2993, allocations: 8 kB / 1.245 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.2993, allocations: 3.984 kB / 1.245 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.2993, allocations: 0 / 1.245 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.837e-05/0.2994, allocations: 4 kB / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.2994, allocations: 4.031 kB / 1.245 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.554e-05/0.2995, allocations: 15.92 kB / 1.245 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.2995, allocations: 0 / 1.245 GB, free: 6.211 MB / 0.9981 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.383e-05/0.2996, allocations: 122.2 kB / 1.245 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.2996, allocations: 0 / 1.245 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.58e-05/0.2997, allocations: 11.91 kB / 1.245 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2997, allocations: 0 / 1.245 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2997, allocations: 0 / 1.245 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.2997, allocations: 3.984 kB / 1.245 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.2999, allocations: 181.7 kB / 1.245 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2999, allocations: 3.938 kB / 1.245 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.944e-05/0.3, allocations: 11.98 kB / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.3, allocations: 0 / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.3, allocations: 0 / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3, allocations: 0 / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3, allocations: 0 / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001966/0.3002, allocations: 163.4 kB / 1.246 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.101e-05/0.3002, allocations: 85.44 kB / 1.246 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.3003, allocations: 0 / 1.246 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-05/0.3004, allocations: 7.984 kB / 1.246 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.956e-05/0.3004, allocations: 11.92 kB / 1.246 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.3004, allocations: 4 kB / 1.246 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.572e-05/0.3005, allocations: 103.6 kB / 1.246 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3005, allocations: 0 / 1.246 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002265/0.3007, allocations: 4 kB / 1.246 GB, free: 5.41 MB / 0.9981 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.0005106/0.3012, allocations: 0.7006 MB / 1.247 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001507/0.3014, allocations: 35.92 kB / 1.247 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3014, allocations: 0 / 1.247 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 6.015e-05/0.3015, allocations: 19.98 kB / 1.247 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.3018, allocations: 8 kB / 1.247 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.3032, allocations: 1.341 MB / 1.248 GB, free: 3.199 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.3035, allocations: 0.6902 MB / 1.249 GB, free: 2.484 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.961e-05/0.3035, allocations: 7.984 kB / 1.249 GB, free: 2.477 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.782e-05/0.3036, allocations: 19.44 kB / 1.249 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/0.3036, allocations: 0 / 1.249 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.3252, allocations: 1.746 MB / 1.25 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.541/7.866, allocations: 5.344 kB / 1.25 GB, free: 0.7969 MB / 0.9981 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 400 --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