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.008569/0.008575, allocations: 105 kB / 15.74 MB, free: 5.984 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.001891/0.001891, allocations: 197.5 kB / 16.67 MB, free: 5.91 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.26/2.26, allocations: 390.3 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 71.89 kB / 0.9504 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8314/0.8329, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.001734/0.8347, allocations: 0.7001 MB / 1.088 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001009/0.8357, allocations: 0.8428 MB / 1.089 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.28e-05/0.8358, allocations: 0 / 1.089 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.347e-05/0.8359, allocations: 5.891 kB / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.482e-05/0.836, allocations: 10.05 kB / 1.089 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.8361, allocations: 24.88 kB / 1.089 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.8363, allocations: 58 kB / 1.089 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.8364, allocations: 24.22 kB / 1.089 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.8365, allocations: 27.77 kB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.378e-05/0.8366, allocations: 28.62 kB / 1.089 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.8366, allocations: 9.094 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.646e-05/0.8367, allocations: 5.562 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.723e-05/0.8367, allocations: 15.92 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.766e-05/0.8367, allocations: 23.42 kB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.8369, allocations: 71.7 kB / 1.089 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.8369, allocations: 4.562 kB / 1.089 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.903e-06/0.8369, allocations: 0.8438 kB / 1.089 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.8369, allocations: 0 / 1.089 GB, free: 4.035 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.0005168/0.8374, allocations: 367.4 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.8375, allocations: 9.719 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.855e-05/0.8375, allocations: 33.69 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.512e-05/0.8376, allocations: 8.031 kB / 1.09 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.8378, allocations: 190.9 kB / 1.09 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.8378, allocations: 7.812 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.8379, allocations: 3.156 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.838, allocations: 58.91 kB / 1.09 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.838, allocations: 4.641 kB / 1.09 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.838, allocations: 0 / 1.09 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.8381, allocations: 1.406 kB / 1.09 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.8382, allocations: 29.41 kB / 1.09 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004119/0.8386, allocations: 301.1 kB / 1.09 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000301/0.8389, allocations: 71.09 kB / 1.09 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.192e-05/0.839, allocations: 19.09 kB / 1.09 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.839, allocations: 0 / 1.09 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.239e-05/0.839, allocations: 36.66 kB / 1.09 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.839, allocations: 0 / 1.09 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002386/0.8392, allocations: 71.09 kB / 1.09 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.8393, allocations: 57.12 kB / 1.09 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.382e-05/0.8394, allocations: 126.3 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.8394, allocations: 30.92 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.8394, allocations: 89.78 kB / 1.091 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.8394, allocations: 13.98 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/0.8395, allocations: 19.41 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.959e-05/0.8395, allocations: 321.7 kB / 1.091 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.3e-05/0.8396, allocations: 19.48 kB / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.978e-05/0.8397, allocations: 26.94 kB / 1.091 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.148e-05/0.8397, allocations: 30.22 kB / 1.091 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.8398, allocations: 5.125 kB / 1.091 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001299/0.8399, allocations: 70.06 kB / 1.091 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.8399, allocations: 5.125 kB / 1.091 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.8399, allocations: 0.5156 kB / 1.091 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.8399, allocations: 1.25 kB / 1.091 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.965e-05/0.84, allocations: 9.703 kB / 1.091 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.84, allocations: 0.5156 kB / 1.091 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.866e-05/0.8401, allocations: 9.109 kB / 1.091 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.8401, allocations: 0.6562 kB / 1.091 GB, free: 2.168 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.837e-05/0.8401, allocations: 122.5 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.676e-05/0.8402, allocations: 6.281 kB / 1.091 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.767e-05/0.8402, allocations: 7.219 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.8402, allocations: 0.7188 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.8402, allocations: 0 / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.8402, allocations: 1.422 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.8404, allocations: 177.5 kB / 1.091 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.8404, allocations: 0.7188 kB / 1.091 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.253e-05/0.8404, allocations: 5.719 kB / 1.091 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.8404, allocations: 5.312 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.8405, allocations: 1.484 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.8405, allocations: 3.984 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.8405, allocations: 0.8125 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001547/0.8406, allocations: 162.9 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/0.8407, allocations: 83.66 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.8407, allocations: 1.703 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.453e-05/0.8408, allocations: 13.78 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.753e-05/0.8408, allocations: 6.469 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.8408, allocations: 1.703 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.753e-05/0.8409, allocations: 93.73 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.8409, allocations: 0 / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002313/0.8411, allocations: 15 kB / 1.092 GB, free: 1.48 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.0004203/0.8415, allocations: 0.6935 MB / 1.093 GB, free: 16.8 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001742/0.8417, allocations: 34.03 kB / 1.093 GB, free: 16.8 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.8417, allocations: 0 / 1.093 GB, free: 16.8 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.708e-05/0.8418, allocations: 16.41 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.8421, allocations: 9.188 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.8434, allocations: 1.344 MB / 1.094 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.8437, allocations: 0.6848 MB / 1.095 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.256e-05/0.8437, allocations: 8.578 kB / 1.095 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.982e-05/0.8438, allocations: 19.91 kB / 1.095 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of SimCode: time 3.41e-07/0.8438, allocations: 3.938 kB / 1.095 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01884/0.8626, allocations: 1.774 MB / 1.096 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.791/8.654, allocations: 7.906 kB / 1.096 GB, free: 14.42 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_Shade_Validation_Shade_H_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,shaH.H,shaH.HHigh,shaH.HLow,shaH.y Variables in the result:H.amplitude,H.freqHz,H.offset,H.phase,H.startTime,H.y,shaH.H,shaH.HHigh,shaH.HLow,shaH.y,time