Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.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_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|shaT.THigh|shaT.TLow|shaT.T|shaT.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T") translateModel(Buildings.Controls.OBC.Shade.Validation.Shade_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|shaT.THigh|shaT.TLow|shaT.T|shaT.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001448/0.001448, allocations: 195.6 kB / 16.14 MB, free: 6.711 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.41/1.41, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.895/2.895, allocations: 472.6 MB / 0.7447 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 64.31 kB / 0.9114 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.3737, allocations: 159.9 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_T): time 0.002222/0.376, allocations: 0.762 MB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.3771, allocations: 0.8506 MB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.44e-05/0.3772, allocations: 0 / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.525e-05/0.3773, allocations: 3.984 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.3774, allocations: 7.938 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.3776, allocations: 27.92 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.03e-05/0.3777, allocations: 47.86 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.3778, allocations: 23.97 kB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.378, allocations: 27.86 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.131e-05/0.3781, allocations: 15.92 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/0.3781, allocations: 4 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.435e-05/0.3781, allocations: 8 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.39e-05/0.3781, allocations: 15.86 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.169e-05/0.3782, allocations: 23.86 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001148/0.3783, allocations: 56.12 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3783, allocations: 3.938 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3783, allocations: 0 / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.3783, allocations: 0 / 1.069 GB, free: 8.961 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.0006294/0.379, allocations: 375.2 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.379, allocations: 8.031 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.754e-05/0.3791, allocations: 12.84 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.3793, allocations: 192.2 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.3794, allocations: 4.375 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.3794, allocations: 4.375 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.3796, allocations: 54.23 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.3796, allocations: 192 / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.3796, allocations: 11.92 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.343e-06/0.3796, allocations: 4 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.3797, allocations: 39.91 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004764/0.3802, allocations: 284.8 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.3805, allocations: 74.52 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.429e-05/0.3806, allocations: 16.92 kB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.3806, allocations: 3.938 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.3806, allocations: 30.56 kB / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3806, allocations: 0 / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002645/0.3809, allocations: 77.66 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.381, allocations: 51.41 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.001e-05/0.3811, allocations: 121.8 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.3811, allocations: 29.7 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.529e-05/0.3811, allocations: 92.03 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.3812, allocations: 11.91 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.3812, allocations: 13.72 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.3813, allocations: 322.8 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.421e-05/0.3814, allocations: 12 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.605e-05/0.3815, allocations: 45.58 kB / 1.071 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.798e-05/0.3815, allocations: 24.84 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3815, allocations: 0 / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001284/0.3817, allocations: 65.67 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.3817, allocations: 4 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3817, allocations: 0 / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.3817, allocations: 0 / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.511e-05/0.3818, allocations: 11.98 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.3818, allocations: 4.031 kB / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.907e-05/0.3819, allocations: 15.88 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.032e-06/0.3819, allocations: 3.938 kB / 1.071 GB, free: 6.746 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 (shaT.hys.y,$PRE.shaT.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.324e-05/0.382, allocations: 121.8 kB / 1.071 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.77e-05/0.382, allocations: 7.906 kB / 1.071 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.382, allocations: 7.906 kB / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.382, allocations: 0 / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.382, allocations: 0 / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.3821, allocations: 4 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001773/0.3822, allocations: 181.6 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3822, allocations: 0 / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.295e-05/0.3823, allocations: 8 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3823, allocations: 336 / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-06/0.3823, allocations: 0 / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3823, allocations: 0 / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3823, allocations: 7.984 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.3825, allocations: 163.3 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.015e-05/0.3826, allocations: 85.09 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.3826, allocations: 0 / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.776e-05/0.3827, allocations: 4 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.3828, allocations: 7.984 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.3828, allocations: 0 / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.861e-05/0.3828, allocations: 99.27 kB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3828, allocations: 0 / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002197/0.3831, allocations: 11.91 kB / 1.072 GB, free: 5.949 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 (shaT.hys.y) * Number of discrete states: 1 (shaT.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.0001082/0.3832, allocations: 103.2 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001679/0.3834, allocations: 31.98 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3834, allocations: 0 / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.461e-05/0.3834, allocations: 23.92 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.3838, allocations: 16.47 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004103/0.3842, allocations: 169.7 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.3845, allocations: 0.6809 MB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.978e-05/0.3845, allocations: 7.984 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.646e-05/0.3846, allocations: 11.44 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3846, allocations: 0 / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of Templates: time 0.003205/0.3878, allocations: 0.6069 MB / 1.074 GB, free: 4.25 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.sim & ./Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Shade_Validation_Shade_T.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches