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: translateModel(Buildings.Controls.OBC.Shade.Validation.Shade_H,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|shaH.H|shaH.HHigh|shaH.HLow|shaH.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H") translateModel(Buildings.Controls.OBC.Shade.Validation.Shade_H,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|shaH.H|shaH.HHigh|shaH.HLow|shaH.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001244/0.001244, allocations: 194.4 kB / 16.14 MB, free: 6.691 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.414/1.414, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.828/2.828, allocations: 472.6 MB / 0.7447 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 64.28 kB / 0.9114 GB, free: 33.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3313, allocations: 159.9 MB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002151/0.3334, allocations: 0.7679 MB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001138/0.3346, allocations: 0.8429 MB / 1.069 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.236e-05/0.3347, allocations: 0 / 1.069 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.41e-05/0.3348, allocations: 7.938 kB / 1.069 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.3349, allocations: 3.938 kB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.3351, allocations: 23.98 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.898e-05/0.3352, allocations: 63.77 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.3353, allocations: 8 kB / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.3354, allocations: 27.86 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.829e-05/0.3355, allocations: 39.83 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.655e-05/0.3356, allocations: 0 / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.635e-05/0.3356, allocations: 4 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.437e-05/0.3356, allocations: 0 / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.797e-05/0.3357, allocations: 31.8 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.3358, allocations: 56.11 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3358, allocations: 0 / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3358, allocations: 0 / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.3359, allocations: 3.938 kB / 1.069 GB, free: 9.035 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.0005663/0.3364, allocations: 375.3 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3365, allocations: 8.031 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.452e-05/0.3365, allocations: 8.844 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.3368, allocations: 196.1 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.3368, allocations: 8.312 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.3369, allocations: 4.375 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/0.337, allocations: 54.23 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.3371, allocations: 4.172 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.3371, allocations: 3.938 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3371, allocations: 8 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.3372, allocations: 27.98 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004752/0.3377, allocations: 296.8 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/0.338, allocations: 70.53 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.912e-05/0.3381, allocations: 21 kB / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.3381, allocations: 0 / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.3382, allocations: 30.56 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.433e-06/0.3382, allocations: 0 / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003848/0.3386, allocations: 77.52 kB / 1.071 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.3386, allocations: 55.41 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.3387, allocations: 117.8 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.3388, allocations: 33.7 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.802e-05/0.3388, allocations: 88.12 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.3389, allocations: 11.89 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.971e-05/0.3389, allocations: 21.7 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.339, allocations: 318.8 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.828e-05/0.3391, allocations: 19.98 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.741e-05/0.3391, allocations: 29.7 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.912e-05/0.3392, allocations: 24.84 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3393, allocations: 0 / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001476/0.3394, allocations: 69.61 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3394, allocations: 4 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3394, allocations: 0 / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.3395, allocations: 4.031 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.584e-05/0.3395, allocations: 8 kB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.3395, allocations: 0 / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.33e-05/0.3396, allocations: 19.86 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.3396, allocations: 0 / 1.071 GB, free: 6.824 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 9.018e-05/0.3397, allocations: 117.8 kB / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.3398, allocations: 7.906 kB / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.414e-05/0.3398, allocations: 7.891 kB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3398, allocations: 4 kB / 1.071 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3398, allocations: 3.938 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3398, allocations: 336 / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000185/0.34, allocations: 177.6 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.34, allocations: 4 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.797e-05/0.3401, allocations: 11.92 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3401, allocations: 0 / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.3401, allocations: 0 / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.3401, allocations: 4 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3401, allocations: 3.984 kB / 1.072 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001967/0.3403, allocations: 163.4 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-05/0.3404, allocations: 77.11 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.3404, allocations: 0 / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.867e-05/0.3405, allocations: 7.984 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.3406, allocations: 11.98 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-06/0.3406, allocations: 0 / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.379e-05/0.3406, allocations: 95.27 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3406, allocations: 4 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002303/0.3409, allocations: 11.91 kB / 1.072 GB, free: 6.023 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.0001178/0.341, allocations: 99.19 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001691/0.3412, allocations: 35.97 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3412, allocations: 0 / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.58e-05/0.3412, allocations: 16 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.3416, allocations: 15.92 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004153/0.342, allocations: 169.6 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.3423, allocations: 0.6848 MB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.885e-05/0.3423, allocations: 8 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.434e-05/0.3424, allocations: 11.42 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3424, allocations: 4 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of Templates: time 0.002871/0.3453, allocations: 0.6067 MB / 1.074 GB, free: 4.32 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches