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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_latest_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.009889/0.009888, allocations: 98.16 kB / 15.73 MB, free: 6.031 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.002068/0.002068, allocations: 194.9 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.764/2.764, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 67.89 kB / 1.054 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3311, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002128/0.3333, allocations: 0.7064 MB / 1.208 GB, free: 9.496 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.3345, allocations: 0.839 MB / 1.209 GB, free: 8.645 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.82e-05/0.3346, allocations: 3.938 kB / 1.209 GB, free: 8.641 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.658e-05/0.3346, allocations: 7.938 kB / 1.209 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.3347, allocations: 11.86 kB / 1.209 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001848/0.3349, allocations: 19.98 kB / 1.209 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.3351, allocations: 59.78 kB / 1.209 GB, free: 8.543 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.3352, allocations: 27.92 kB / 1.209 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.3354, allocations: 35.86 kB / 1.209 GB, free: 8.48 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.22e-05/0.3355, allocations: 27.84 kB / 1.209 GB, free: 8.453 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.3355, allocations: 8 kB / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.586e-05/0.3355, allocations: 4 kB / 1.209 GB, free: 8.441 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.219e-05/0.3355, allocations: 8 kB / 1.209 GB, free: 8.434 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.627e-05/0.3356, allocations: 27.84 kB / 1.209 GB, free: 8.406 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.3357, allocations: 64 kB / 1.209 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3358, allocations: 4 kB / 1.209 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3358, allocations: 0 / 1.209 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.114e-06/0.3358, allocations: 4 kB / 1.209 GB, free: 8.336 MB / 0.9669 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.0005706/0.3364, allocations: 363.3 kB / 1.209 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.3364, allocations: 12.62 kB / 1.209 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.764e-05/0.3365, allocations: 34.75 kB / 1.209 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.041e-05/0.3365, allocations: 8.844 kB / 1.209 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.3368, allocations: 200.1 kB / 1.21 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.3368, allocations: 4.375 kB / 1.21 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.3368, allocations: 4.375 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.337, allocations: 58.23 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.337, allocations: 3.938 kB / 1.21 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.337, allocations: 4 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.337, allocations: 8 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001062/0.3372, allocations: 23.98 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004801/0.3376, allocations: 300.7 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.338, allocations: 70.53 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.985e-05/0.338, allocations: 21 kB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.338, allocations: 0 / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.3381, allocations: 30.56 kB / 1.21 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.353e-06/0.3381, allocations: 7.938 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0002694/0.3384, allocations: 65.67 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.3384, allocations: 59.39 kB / 1.21 GB, free: 6.891 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.915e-05/0.3385, allocations: 117.8 kB / 1.21 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.3386, allocations: 29.7 kB / 1.21 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/0.3386, allocations: 92.03 kB / 1.21 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.3387, allocations: 15.84 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.055e-05/0.3387, allocations: 13.72 kB / 1.211 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.3388, allocations: 326.8 kB / 1.211 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.716e-05/0.3389, allocations: 15.94 kB / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.138e-05/0.339, allocations: 33.88 kB / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.3391, allocations: 32.78 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3391, allocations: 0 / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001486/0.3392, allocations: 69.58 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3393, allocations: 8.031 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3393, allocations: 0 / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3393, allocations: 0 / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.154e-05/0.3394, allocations: 7.938 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.3394, allocations: 3.984 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.961e-05/0.3394, allocations: 8 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.3394, allocations: 0 / 1.211 GB, free: 6.082 MB / 0.9669 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.0001004/0.3396, allocations: 121.7 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.169e-05/0.3396, allocations: 11.98 kB / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.205e-05/0.3396, allocations: 7.906 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.3396, allocations: 0 / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.3396, allocations: 0 / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3397, allocations: 0 / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.3398, allocations: 181.6 kB / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3399, allocations: 0 / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.253e-05/0.3399, allocations: 4 kB / 1.211 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3399, allocations: 0 / 1.211 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.3399, allocations: 0 / 1.211 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3399, allocations: 0 / 1.211 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3399, allocations: 8 kB / 1.211 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001768/0.3401, allocations: 155.4 kB / 1.211 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.956e-05/0.3402, allocations: 93 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.3402, allocations: 0 / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.448e-05/0.3403, allocations: 4 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.722e-05/0.3403, allocations: 15.92 kB / 1.212 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.3403, allocations: 4 kB / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.332e-05/0.3404, allocations: 99.27 kB / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3404, allocations: 0 / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002285/0.3407, allocations: 8 kB / 1.212 GB, free: 5.281 MB / 0.9669 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.0004584/0.3411, allocations: 0.6833 MB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000173/0.3413, allocations: 39.91 kB / 1.212 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3413, allocations: 0 / 1.212 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.828e-05/0.3414, allocations: 20.31 kB / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.3417, allocations: 14.88 kB / 1.212 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.3431, allocations: 1.347 MB / 1.214 GB, free: 3.078 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.3434, allocations: 0.6885 MB / 1.214 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.418e-05/0.3434, allocations: 4 kB / 1.214 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.065e-05/0.3435, allocations: 19.36 kB / 1.214 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.3435, allocations: 0 / 1.214 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.3643, allocations: 1.772 MB / 1.216 GB, free: 0.6562 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.647/8.011, allocations: 20.08 kB / 1.216 GB, free: 0.6406 MB / 0.9669 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_H.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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