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: "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_Shade_Validation_Shade_H",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_10_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.005355/0.005355, allocations: 103.7 kB / 15.74 MB, free: 5.953 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.001261/0.001261, allocations: 188.9 kB / 16.67 MB, free: 5.883 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.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.61/2.61, allocations: 437 MB / 0.7105 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 71.88 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3078, allocations: 151.6 MB / 1.166 GB, free: 7.34 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002356/0.3102, allocations: 0.6973 MB / 1.167 GB, free: 6.637 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001258/0.3114, allocations: 0.8506 MB / 1.168 GB, free: 5.773 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.01e-05/0.3116, allocations: 0 / 1.168 GB, free: 5.773 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.108e-05/0.3116, allocations: 3.938 kB / 1.168 GB, free: 5.77 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001137/0.3118, allocations: 11.88 kB / 1.168 GB, free: 5.758 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.312, allocations: 27.97 kB / 1.168 GB, free: 5.73 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001069/0.3121, allocations: 55.84 kB / 1.168 GB, free: 5.676 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.3122, allocations: 23.92 kB / 1.168 GB, free: 5.652 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.3123, allocations: 31.86 kB / 1.168 GB, free: 5.621 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.17e-05/0.3124, allocations: 19.92 kB / 1.168 GB, free: 5.602 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.785e-05/0.3125, allocations: 8 kB / 1.168 GB, free: 5.594 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.717e-05/0.3125, allocations: 4 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.979e-05/0.3125, allocations: 19.91 kB / 1.168 GB, free: 5.57 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.106e-05/0.3126, allocations: 19.88 kB / 1.168 GB, free: 5.551 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.3127, allocations: 62.59 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3127, allocations: 7.984 kB / 1.168 GB, free: 5.484 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.174e-06/0.3128, allocations: 4 kB / 1.168 GB, free: 5.48 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.3128, allocations: 0 / 1.168 GB, free: 5.48 MB / 0.92 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.0005585/0.3133, allocations: 360.2 kB / 1.168 GB, free: 5.078 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.3134, allocations: 12.03 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.599e-05/0.3134, allocations: 34.75 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.335e-05/0.3135, allocations: 12.83 kB / 1.168 GB, free: 5.012 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.3138, allocations: 196.1 kB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3138, allocations: 4.375 kB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.3138, allocations: 8.375 kB / 1.169 GB, free: 4.77 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.314, allocations: 58.22 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.314, allocations: 3.938 kB / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.314, allocations: 4 kB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.314, allocations: 4 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.851e-05/0.3141, allocations: 23.98 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004669/0.3146, allocations: 300.8 kB / 1.169 GB, free: 4.328 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.3149, allocations: 66.53 kB / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.356e-05/0.315, allocations: 21 kB / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.315, allocations: 0 / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.315, allocations: 38.5 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.3151, allocations: 3.938 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0002542/0.3153, allocations: 73.58 kB / 1.169 GB, free: 4.102 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.3154, allocations: 51.41 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.903e-05/0.3155, allocations: 121.8 kB / 1.169 GB, free: 3.91 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.3155, allocations: 29.7 kB / 1.169 GB, free: 3.875 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.029e-05/0.3155, allocations: 88.05 kB / 1.169 GB, free: 3.785 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.3156, allocations: 19.91 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.194e-05/0.3156, allocations: 21.7 kB / 1.169 GB, free: 3.738 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3157, allocations: 322.7 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.8e-05/0.3158, allocations: 15.98 kB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.134e-05/0.3159, allocations: 29.7 kB / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.115e-05/0.316, allocations: 32.78 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.316, allocations: 0 / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000142/0.3161, allocations: 65.72 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.3161, allocations: 4 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3161, allocations: 3.984 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3162, allocations: 0 / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.846e-05/0.3162, allocations: 4 kB / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.3162, allocations: 4 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.945e-05/0.3163, allocations: 15.89 kB / 1.17 GB, free: 3.227 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.3163, allocations: 0 / 1.17 GB, free: 3.227 MB / 0.92 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.047e-05/0.3164, allocations: 125.7 kB / 1.17 GB, free: 3.094 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.3164, allocations: 4 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.3165, allocations: 7.906 kB / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3165, allocations: 0 / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3165, allocations: 0 / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3165, allocations: 4.312 kB / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.3167, allocations: 173.6 kB / 1.17 GB, free: 2.852 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3167, allocations: 0 / 1.17 GB, free: 2.852 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.636e-05/0.3167, allocations: 7.984 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3167, allocations: 0 / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.3168, allocations: 11.98 kB / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3168, allocations: 3.938 kB / 1.17 GB, free: 2.828 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3168, allocations: 4 kB / 1.17 GB, free: 2.824 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001764/0.317, allocations: 155.4 kB / 1.17 GB, free: 2.656 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.38e-05/0.317, allocations: 81.11 kB / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.317, allocations: 0 / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.69e-05/0.3171, allocations: 7.984 kB / 1.17 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.3172, allocations: 15.92 kB / 1.17 GB, free: 2.535 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.3172, allocations: 0 / 1.17 GB, free: 2.535 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.506e-05/0.3172, allocations: 103.6 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3173, allocations: 0 / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002312/0.3175, allocations: 11.91 kB / 1.171 GB, free: 2.422 MB / 0.92 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.0004816/0.318, allocations: 0.6851 MB / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001682/0.3182, allocations: 39.92 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3182, allocations: 0 / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 5.138e-05/0.3182, allocations: 11.98 kB / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.3185, allocations: 11.94 kB / 1.171 GB, free: 1.648 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.3199, allocations: 1.343 MB / 1.173 GB, free: 236 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.3202, allocations: 0.6845 MB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.5e-05/0.3202, allocations: 7.984 kB / 1.173 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.266e-05/0.3203, allocations: 15.44 kB / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of SimCode: time 5.41e-07/0.3203, allocations: 0 / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01964/0.34, allocations: 1.74 MB / 1.175 GB, free: 13.84 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/8.018, allocations: 8.062 kB / 1.175 GB, free: 13.84 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_Shade_Validation_Shade_H_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_Shade_Validation_Shade_H.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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