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.01085/0.01085, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001596/0.001596, allocations: 201.2 kB / 16.68 MB, free: 5.969 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.999/2.999, allocations: 472.6 MB / 0.7453 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 63.91 kB / 1.069 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4184/0.42, allocations: 159.9 MB / 1.226 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002069/0.4221, allocations: 0.703 MB / 1.226 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001224/0.4234, allocations: 0.8351 MB / 1.227 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.586e-05/0.4235, allocations: 0 / 1.227 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.966e-05/0.4235, allocations: 3.938 kB / 1.227 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.4236, allocations: 15.86 kB / 1.227 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.4238, allocations: 23.97 kB / 1.227 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.424, allocations: 63.78 kB / 1.227 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.4241, allocations: 15.95 kB / 1.227 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.4242, allocations: 27.91 kB / 1.227 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.079e-05/0.4243, allocations: 35.78 kB / 1.227 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.4244, allocations: 8 kB / 1.227 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.598e-05/0.4244, allocations: 8 kB / 1.227 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.211e-05/0.4244, allocations: 4 kB / 1.227 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.547e-05/0.4245, allocations: 27.86 kB / 1.227 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.4246, allocations: 67.7 kB / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4246, allocations: 0 / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.344e-06/0.4246, allocations: 0 / 1.227 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.4246, allocations: 0 / 1.227 GB, free: 7.434 MB / 0.9825 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.0005982/0.4252, allocations: 363.3 kB / 1.228 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.4253, allocations: 12.03 kB / 1.228 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.669e-05/0.4254, allocations: 12.88 kB / 1.228 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.4257, allocations: 196.2 kB / 1.228 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.4257, allocations: 384 / 1.228 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.4257, allocations: 12.31 kB / 1.228 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.4259, allocations: 62.16 kB / 1.228 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.4259, allocations: 192 / 1.228 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.4259, allocations: 3.938 kB / 1.228 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.4259, allocations: 4 kB / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.426, allocations: 31.98 kB / 1.228 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004468/0.4265, allocations: 292.8 kB / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.4268, allocations: 74.47 kB / 1.228 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.631e-05/0.4268, allocations: 21 kB / 1.228 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.4269, allocations: 0 / 1.228 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.866e-05/0.4269, allocations: 30.56 kB / 1.228 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.4269, allocations: 0 / 1.228 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0002727/0.4272, allocations: 77.73 kB / 1.228 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.4273, allocations: 55.41 kB / 1.229 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.4274, allocations: 125.8 kB / 1.229 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.4274, allocations: 29.7 kB / 1.229 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.346e-05/0.4275, allocations: 100 kB / 1.229 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.4275, allocations: 3.953 kB / 1.229 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.4276, allocations: 21.7 kB / 1.229 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002464/0.4278, allocations: 318.8 kB / 1.229 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.372e-05/0.4279, allocations: 15.98 kB / 1.229 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.695e-05/0.428, allocations: 33.7 kB / 1.229 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.588e-05/0.4281, allocations: 28.84 kB / 1.229 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4281, allocations: 0 / 1.229 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001334/0.4282, allocations: 69.58 kB / 1.229 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.4282, allocations: 7.984 kB / 1.229 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4283, allocations: 0 / 1.229 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.4283, allocations: 0 / 1.229 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.678e-05/0.4283, allocations: 7.938 kB / 1.229 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.4283, allocations: 8.031 kB / 1.229 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.684e-05/0.4284, allocations: 11.98 kB / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.4284, allocations: 0 / 1.229 GB, free: 5.211 MB / 0.9825 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.144e-05/0.4285, allocations: 117.8 kB / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.502e-05/0.4285, allocations: 4 kB / 1.229 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.4286, allocations: 3.906 kB / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.4286, allocations: 0 / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4286, allocations: 0 / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.4286, allocations: 3.984 kB / 1.229 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.4288, allocations: 185.5 kB / 1.23 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4288, allocations: 0 / 1.23 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.162e-05/0.4289, allocations: 7.984 kB / 1.23 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.4289, allocations: 0 / 1.23 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.4289, allocations: 7.875 kB / 1.23 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.4289, allocations: 4 kB / 1.23 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.4289, allocations: 0 / 1.23 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001757/0.4291, allocations: 159.5 kB / 1.23 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.733e-05/0.4291, allocations: 81.06 kB / 1.23 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.4291, allocations: 0 / 1.23 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.455e-05/0.4292, allocations: 7.984 kB / 1.23 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.807e-05/0.4293, allocations: 11.98 kB / 1.23 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.4293, allocations: 0 / 1.23 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.413e-05/0.4294, allocations: 95.27 kB / 1.23 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4294, allocations: 0 / 1.23 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002174/0.4296, allocations: 8 kB / 1.23 GB, free: 4.422 MB / 0.9825 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.0001214/0.4297, allocations: 111.2 kB / 1.23 GB, free: 4.305 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002147/0.4299, allocations: 31.92 kB / 1.23 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4299, allocations: 4 kB / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.724e-05/0.43, allocations: 15.98 kB / 1.23 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.4304, allocations: 14.33 kB / 1.23 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004202/0.4308, allocations: 175.5 kB / 1.23 GB, free: 4.047 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/0.4313, allocations: 0.6846 MB / 1.231 GB, free: 3.336 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.326e-05/0.4313, allocations: 11.92 kB / 1.231 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.976e-05/0.4314, allocations: 11.44 kB / 1.231 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of SimCode: time 3.4e-07/0.4314, allocations: 0 / 1.231 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of Templates: time 0.003291/0.4347, allocations: 0.7072 MB / 1.232 GB, free: 2.609 MB / 0.9825 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