Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: 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_10_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_10_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.006253/0.006253, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.00114/0.00114, allocations: 192 kB / 16.67 MB, free: 5.961 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.48/1.48, 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 10.1.1-maint.10.0.x/package.mo): time 2.506/2.506, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 71.89 kB / 1.018 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.094/1.095, allocations: 151.6 MB / 1.167 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.001978/1.097, allocations: 0.7104 MB / 1.167 GB, free: 3.168 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001123/1.098, allocations: 0.8453 MB / 1.168 GB, free: 2.312 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.616e-05/1.098, allocations: 0 / 1.168 GB, free: 2.312 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.507e-05/1.099, allocations: 7.938 kB / 1.168 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001029/1.099, allocations: 7.875 kB / 1.168 GB, free: 2.297 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/1.099, allocations: 27.97 kB / 1.168 GB, free: 2.27 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001342/1.099, allocations: 55.8 kB / 1.168 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/1.099, allocations: 23.97 kB / 1.168 GB, free: 2.191 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/1.099, allocations: 31.86 kB / 1.168 GB, free: 2.16 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.425e-05/1.099, allocations: 15.92 kB / 1.168 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/1.099, allocations: 11.94 kB / 1.168 GB, free: 2.133 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.656e-05/1.099, allocations: 4 kB / 1.168 GB, free: 2.129 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.361e-05/1.1, allocations: 19.97 kB / 1.168 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.399e-05/1.1, allocations: 23.88 kB / 1.168 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002053/1.1, allocations: 68.28 kB / 1.168 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/1.1, allocations: 0 / 1.168 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.715e-06/1.1, allocations: 0 / 1.168 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.783e-05/1.1, allocations: 0 / 1.168 GB, free: 2.023 MB / 0.8887 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.000592/1.1, allocations: 367.2 kB / 1.169 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/1.1, allocations: 12.92 kB / 1.169 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.513e-05/1.101, allocations: 4.891 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/1.101, allocations: 204.2 kB / 1.169 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/1.101, allocations: 4.375 kB / 1.169 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/1.101, allocations: 4.375 kB / 1.169 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/1.101, allocations: 58.23 kB / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/1.101, allocations: 192 / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/1.101, allocations: 3.938 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/1.101, allocations: 0 / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/1.101, allocations: 35.91 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000481/1.102, allocations: 296.8 kB / 1.169 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/1.102, allocations: 70.5 kB / 1.169 GB, free: 0.832 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.577e-05/1.102, allocations: 16.92 kB / 1.169 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/1.102, allocations: 0 / 1.169 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/1.102, allocations: 46.5 kB / 1.169 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 7.71e-07/1.102, allocations: 0 / 1.169 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0002537/1.102, allocations: 73.7 kB / 1.17 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/1.102, allocations: 51.41 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.509e-05/1.103, allocations: 121.8 kB / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/1.103, allocations: 25.7 kB / 1.17 GB, free: 468 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 8.882e-05/1.103, allocations: 104 kB / 1.17 GB, free: 360 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/1.103, allocations: 7.953 kB / 1.17 GB, free: 352 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.177e-05/1.103, allocations: 17.72 kB / 1.17 GB, free: 328 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000174/1.103, allocations: 319 kB / 1.17 GB, free: 16 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.787e-05/1.103, allocations: 15.98 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.386e-05/1.103, allocations: 29.66 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/1.103, allocations: 32.78 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/1.103, allocations: 4.031 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001378/1.103, allocations: 65.62 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/1.103, allocations: 8 kB / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/1.103, allocations: 0 / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/1.103, allocations: 0 / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.881e-05/1.103, allocations: 7.984 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/1.103, allocations: 0 / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.363e-05/1.104, allocations: 4 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/1.104, allocations: 11.98 kB / 1.17 GB, free: 15.8 MB / 0.9044 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 0.0001105/1.104, allocations: 121.7 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/1.104, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.324e-05/1.104, allocations: 11.91 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/1.104, allocations: 0 / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.104, allocations: 0 / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/1.104, allocations: 3.938 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/1.104, allocations: 185.6 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/1.104, allocations: 0 / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.941e-05/1.104, allocations: 8 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/1.104, allocations: 4 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/1.104, allocations: 0 / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/1.104, allocations: 3.984 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.104, allocations: 3.984 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/1.104, allocations: 159.8 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.704e-05/1.104, allocations: 81.06 kB / 1.171 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/1.104, allocations: 7.938 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.271e-05/1.104, allocations: 8.047 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.351e-05/1.104, allocations: 15.97 kB / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/1.104, allocations: 0 / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.231e-05/1.105, allocations: 91.27 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/1.105, allocations: 0 / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002198/1.105, allocations: 8 kB / 1.171 GB, free: 15 MB / 0.9044 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.0001305/1.105, allocations: 103.2 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001872/1.105, allocations: 35.98 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.105, allocations: 3.938 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.634e-05/1.105, allocations: 19.92 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/1.106, allocations: 7.938 kB / 1.171 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003735/1.106, allocations: 161.9 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/1.106, allocations: 0.6885 MB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.808e-05/1.106, allocations: 7.984 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.162e-05/1.106, allocations: 7.438 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/1.106, allocations: 0 / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of Templates: time 0.003847/1.11, allocations: 0.704 MB / 1.173 GB, free: 13.22 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.makefile (rm -f Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & ./Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches