Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_Shade_Validation_Shade_H",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_9_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.00897/0.00897, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.002031/0.002031, allocations: 196.1 kB / 16.68 MB, free: 5.934 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.257/2.257, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 63.91 kB / 0.9504 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8416/0.8431, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.00163/0.8448, allocations: 0.7046 MB / 1.088 GB, free: 4.82 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008024/0.8456, allocations: 0.8461 MB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.545e-05/0.8456, allocations: 4.969 kB / 1.089 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.96e-05/0.8457, allocations: 4.5 kB / 1.089 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.27e-05/0.8458, allocations: 15.53 kB / 1.089 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001639/0.8459, allocations: 19.58 kB / 1.089 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.984e-05/0.846, allocations: 53.56 kB / 1.089 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.8462, allocations: 19.27 kB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.242e-05/0.8463, allocations: 40.94 kB / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.261e-05/0.8463, allocations: 19.97 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.8464, allocations: 5.469 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.384e-05/0.8464, allocations: 5.5 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.552e-05/0.8464, allocations: 16.67 kB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.665e-05/0.8465, allocations: 23.05 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.8466, allocations: 69.27 kB / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.8466, allocations: 0 / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8466, allocations: 0 / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.8466, allocations: 1.062 kB / 1.089 GB, free: 4.027 MB / 0.8575 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.0004232/0.8471, allocations: 371.9 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.8471, allocations: 10.25 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.851e-05/0.8471, allocations: 33.2 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.111e-05/0.8472, allocations: 7.359 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002096/0.8474, allocations: 191.9 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.8474, allocations: 5.844 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.8474, allocations: 3.562 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.8476, allocations: 64.59 kB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.8476, allocations: 7.922 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.8476, allocations: 0 / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.8476, allocations: 1.312 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001069/0.8477, allocations: 33.59 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003805/0.8481, allocations: 301.3 kB / 1.09 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.8484, allocations: 71.11 kB / 1.09 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.465e-05/0.8485, allocations: 18.91 kB / 1.09 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.8485, allocations: 0.5156 kB / 1.09 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.284e-05/0.8485, allocations: 32.25 kB / 1.09 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.8485, allocations: 3.938 kB / 1.09 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002445/0.8488, allocations: 74.98 kB / 1.09 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/0.8488, allocations: 53.05 kB / 1.09 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.055e-05/0.8489, allocations: 131.1 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.8489, allocations: 30.86 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.238e-05/0.849, allocations: 88.78 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.531e-05/0.849, allocations: 6.562 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.849, allocations: 18.62 kB / 1.091 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.841e-05/0.8491, allocations: 327.4 kB / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.281e-05/0.8491, allocations: 13.5 kB / 1.091 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.755e-05/0.8492, allocations: 27.7 kB / 1.091 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.147e-05/0.8493, allocations: 34.81 kB / 1.091 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.8493, allocations: 0 / 1.091 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001305/0.8494, allocations: 66.25 kB / 1.091 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.8495, allocations: 5.547 kB / 1.091 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.8495, allocations: 4.812 kB / 1.091 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.8495, allocations: 0 / 1.091 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.034e-05/0.8495, allocations: 6.781 kB / 1.091 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.8495, allocations: 0.8125 kB / 1.091 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.352e-05/0.8496, allocations: 8.25 kB / 1.091 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.8496, allocations: 1 kB / 1.091 GB, free: 2.152 MB / 0.8575 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 5.404e-05/0.8497, allocations: 118.2 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.8497, allocations: 6.766 kB / 1.091 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.427e-05/0.8497, allocations: 14.31 kB / 1.091 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.8498, allocations: 1.141 kB / 1.091 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.8498, allocations: 4.719 kB / 1.091 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.8498, allocations: 0.5625 kB / 1.091 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.8499, allocations: 173.9 kB / 1.091 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.8499, allocations: 1.234 kB / 1.091 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.504e-05/0.85, allocations: 6.25 kB / 1.092 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.85, allocations: 0 / 1.092 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.85, allocations: 1.688 kB / 1.092 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.85, allocations: 1.609 kB / 1.092 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.85, allocations: 4 kB / 1.092 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000146/0.8501, allocations: 162.5 kB / 1.092 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.086e-05/0.8502, allocations: 80.2 kB / 1.092 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.8502, allocations: 9.094 kB / 1.092 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.09e-05/0.8503, allocations: 9.891 kB / 1.092 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.8503, allocations: 7.094 kB / 1.092 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-06/0.8503, allocations: 1.219 kB / 1.092 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.966e-05/0.8504, allocations: 97.98 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8504, allocations: 3.938 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002259/0.8506, allocations: 19.25 kB / 1.092 GB, free: 1.453 MB / 0.8575 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.000362/0.851, allocations: 0.6864 MB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001562/0.8512, allocations: 37.44 kB / 1.093 GB, free: 16.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.8512, allocations: 0 / 1.093 GB, free: 16.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 6.112e-05/0.8512, allocations: 21.5 kB / 1.093 GB, free: 16.77 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.8515, allocations: 7.062 kB / 1.093 GB, free: 16.76 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.8529, allocations: 1.341 MB / 1.094 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.8532, allocations: 0.6877 MB / 1.095 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.264e-05/0.8532, allocations: 5.547 kB / 1.095 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.655e-05/0.8533, allocations: 19.73 kB / 1.095 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.8533, allocations: 0 / 1.095 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.017/0.8703, allocations: 1.752 MB / 1.096 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.237/8.108, allocations: 4.406 kB / 1.096 GB, free: 14.41 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_Shade_Validation_Shade_H.fmu > Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.H from file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HHigh in file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HHigh from file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HLow in file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HLow from file Buildings_9_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