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.001782/0.001782, allocations: 101.8 kB / 16.27 MB, free: 5.969 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.001332/0.001333, allocations: 192.5 kB / 17.2 MB, free: 5.594 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.429/1.429, allocations: 222.9 MB / 240.9 MB, free: 15.21 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.559/2.559, allocations: 437.1 MB / 0.7111 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.001981, allocations: 71.95 kB / 0.8699 GB, free: 2.199 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3149, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.001922/0.3168, allocations: 0.6989 MB / 1.019 GB, free: 9.938 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001027/0.3179, allocations: 0.8506 MB / 1.019 GB, free: 9.074 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.901e-05/0.3179, allocations: 0 / 1.019 GB, free: 9.074 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.161e-05/0.318, allocations: 3.938 kB / 1.019 GB, free: 9.07 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.791e-05/0.3181, allocations: 11.86 kB / 1.02 GB, free: 9.059 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000138/0.3182, allocations: 19.98 kB / 1.02 GB, free: 9.039 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.023e-05/0.3183, allocations: 63.8 kB / 1.02 GB, free: 8.977 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.3184, allocations: 27.95 kB / 1.02 GB, free: 8.949 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.27e-05/0.3185, allocations: 23.86 kB / 1.02 GB, free: 8.926 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.736e-05/0.3186, allocations: 27.86 kB / 1.02 GB, free: 8.898 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.324e-05/0.3186, allocations: 8 kB / 1.02 GB, free: 8.891 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.462e-05/0.3186, allocations: 4 kB / 1.02 GB, free: 8.887 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.354e-05/0.3187, allocations: 11.98 kB / 1.02 GB, free: 8.875 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.086e-05/0.3187, allocations: 35.8 kB / 1.02 GB, free: 8.84 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.874e-05/0.3188, allocations: 56.11 kB / 1.02 GB, free: 8.785 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3188, allocations: 4 kB / 1.02 GB, free: 8.781 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3188, allocations: 0 / 1.02 GB, free: 8.781 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.3188, allocations: 0 / 1.02 GB, free: 8.781 MB / 0.795 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.0005048/0.3194, allocations: 371.2 kB / 1.02 GB, free: 8.367 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.3194, allocations: 8.922 kB / 1.02 GB, free: 8.359 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.3194, allocations: 4.938 kB / 1.02 GB, free: 8.355 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.3197, allocations: 204.1 kB / 1.02 GB, free: 8.117 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.3198, allocations: 4.312 kB / 1.02 GB, free: 8.113 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.3198, allocations: 4.375 kB / 1.02 GB, free: 8.109 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.3199, allocations: 54.23 kB / 1.02 GB, free: 8.051 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.3199, allocations: 192 / 1.02 GB, free: 8.051 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.32, allocations: 11.94 kB / 1.02 GB, free: 8.039 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.32, allocations: 4 kB / 1.02 GB, free: 8.035 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001095/0.3201, allocations: 27.97 kB / 1.02 GB, free: 8.008 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004486/0.3205, allocations: 304.7 kB / 1.021 GB, free: 7.66 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002946/0.3208, allocations: 66.53 kB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.023e-05/0.3209, allocations: 20.92 kB / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.3209, allocations: 0 / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.321, allocations: 34.64 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 7.92e-07/0.321, allocations: 0 / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0002539/0.3212, allocations: 77.52 kB / 1.021 GB, free: 7.438 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.3213, allocations: 55.41 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.3214, allocations: 121.8 kB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.3214, allocations: 29.7 kB / 1.021 GB, free: 7.207 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.977e-05/0.3215, allocations: 92.12 kB / 1.021 GB, free: 7.113 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.3215, allocations: 7.906 kB / 1.021 GB, free: 7.105 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-05/0.3216, allocations: 13.72 kB / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3217, allocations: 322.8 kB / 1.022 GB, free: 6.762 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.562e-05/0.3218, allocations: 19.92 kB / 1.022 GB, free: 6.742 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.2e-05/0.3218, allocations: 25.72 kB / 1.022 GB, free: 6.711 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.932e-05/0.3219, allocations: 40.8 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3219, allocations: 0 / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001478/0.3221, allocations: 65.92 kB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.3221, allocations: 4 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.3221, allocations: 3.984 kB / 1.022 GB, free: 6.59 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.3221, allocations: 0 / 1.022 GB, free: 6.59 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.174e-05/0.3222, allocations: 11.98 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.3222, allocations: 0 / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.54e-05/0.3223, allocations: 15.92 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.3223, allocations: 3.938 kB / 1.022 GB, free: 6.559 MB / 0.795 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.167e-05/0.3224, allocations: 117.8 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.3224, allocations: 7.906 kB / 1.022 GB, free: 6.426 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.54e-05/0.3224, allocations: 7.906 kB / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3225, allocations: 0 / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3225, allocations: 0 / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3225, allocations: 4 kB / 1.022 GB, free: 6.41 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001938/0.3227, allocations: 181.6 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3227, allocations: 4 kB / 1.022 GB, free: 6.18 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.192e-05/0.3227, allocations: 4 kB / 1.022 GB, free: 6.176 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3227, allocations: 0 / 1.022 GB, free: 6.176 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.3227, allocations: 7.984 kB / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3228, allocations: 0 / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3228, allocations: 0 / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001972/0.323, allocations: 159.5 kB / 1.022 GB, free: 5.996 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.558e-05/0.323, allocations: 85.02 kB / 1.022 GB, free: 5.895 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.323, allocations: 0 / 1.022 GB, free: 5.895 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.003e-05/0.3231, allocations: 11.98 kB / 1.022 GB, free: 5.883 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.624e-05/0.3232, allocations: 4 kB / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.3232, allocations: 3.984 kB / 1.022 GB, free: 5.875 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.863e-05/0.3233, allocations: 95.28 kB / 1.022 GB, free: 5.781 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3233, allocations: 0 / 1.022 GB, free: 5.781 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002214/0.3235, allocations: 8 kB / 1.022 GB, free: 5.773 MB / 0.795 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.0001126/0.3236, allocations: 107.2 kB / 1.022 GB, free: 5.656 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001632/0.3238, allocations: 31.98 kB / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.3238, allocations: 0 / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.383e-05/0.3238, allocations: 15.98 kB / 1.023 GB, free: 5.609 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.3241, allocations: 11.94 kB / 1.023 GB, free: 5.598 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003734/0.3245, allocations: 194.9 kB / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.3248, allocations: 0.6923 MB / 1.023 GB, free: 4.66 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.353e-05/0.3249, allocations: 11.44 kB / 1.023 GB, free: 4.648 MB / 0.795 GB Notification: Performance of SimCode: time 2e-07/0.3249, allocations: 0 / 1.023 GB, free: 4.648 MB / 0.795 GB Notification: Performance of Templates: time 0.002235/0.3271, allocations: 0.8339 MB / 1.024 GB, free: 3.812 MB / 0.795 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=400 -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/jenkins1/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