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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008971/0.0008972, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009599/0.0009598, allocations: 173 kB / 16.92 MB, free: 6.652 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.394/1.394, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.749/2.749, allocations: 437.8 MB / 0.7128 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.0003958, allocations: 8 kB / 0.8735 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6913/0.6918, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.0009773/0.6928, allocations: 440.8 kB / 1.024 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001052/0.6939, allocations: 0.8391 MB / 1.025 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.872e-05/0.6939, allocations: 0 / 1.025 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.905e-05/0.694, allocations: 0 / 1.025 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.875e-05/0.6941, allocations: 11.88 kB / 1.025 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001737/0.6942, allocations: 19.97 kB / 1.025 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.546e-05/0.6944, allocations: 55.8 kB / 1.025 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.6945, allocations: 19.97 kB / 1.025 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.6946, allocations: 27.91 kB / 1.025 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.201e-05/0.6947, allocations: 19.86 kB / 1.025 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.6947, allocations: 8 kB / 1.025 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.13e-05/0.6947, allocations: 0 / 1.025 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.133e-05/0.6947, allocations: 8 kB / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.081e-05/0.6948, allocations: 49.5 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.913e-05/0.6949, allocations: 53.78 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.6949, allocations: 0 / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6949, allocations: 0 / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.6949, allocations: 0 / 1.025 GB, free: 14.34 MB / 0.7794 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.0005091/0.6954, allocations: 363.3 kB / 1.026 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.6955, allocations: 15.97 kB / 1.026 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.094e-05/0.6955, allocations: 4.844 kB / 1.026 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/0.6958, allocations: 196.3 kB / 1.026 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.6958, allocations: 384 / 1.026 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.6959, allocations: 4.375 kB / 1.026 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.696, allocations: 58.23 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.696, allocations: 4.188 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.6961, allocations: 3.938 kB / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.6961, allocations: 0 / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001236/0.6962, allocations: 35.92 kB / 1.026 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004428/0.6967, allocations: 304.8 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.697, allocations: 86.53 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.737e-05/0.697, allocations: 21 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.6971, allocations: 0 / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.6971, allocations: 34.5 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 7.21e-07/0.6971, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002651/0.6974, allocations: 81.58 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.6974, allocations: 55.39 kB / 1.026 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.448e-05/0.6975, allocations: 121.8 kB / 1.027 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.6975, allocations: 25.7 kB / 1.027 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.997e-05/0.6976, allocations: 99.97 kB / 1.027 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.6976, allocations: 11.91 kB / 1.027 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.298e-05/0.6977, allocations: 9.719 kB / 1.027 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.6978, allocations: 322.8 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.702e-05/0.6978, allocations: 23.94 kB / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.614e-05/0.6979, allocations: 33.64 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.994e-05/0.698, allocations: 28.84 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.698, allocations: 0 / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000156/0.6982, allocations: 73.98 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.6982, allocations: 4 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.6982, allocations: 0 / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.6982, allocations: 0 / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.189e-05/0.6983, allocations: 4 kB / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.6983, allocations: 4 kB / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.781e-05/0.6984, allocations: 16.03 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.6984, allocations: 11.92 kB / 1.027 GB, free: 12.09 MB / 0.7794 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.16e-05/0.6985, allocations: 121.7 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.6985, allocations: 7.906 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.6986, allocations: 7.891 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.6986, allocations: 0 / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.6986, allocations: 0 / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.6986, allocations: 0 / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.6988, allocations: 177.6 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6988, allocations: 0 / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.371e-05/0.6988, allocations: 11.98 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.6989, allocations: 0 / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.6989, allocations: 4 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.6989, allocations: 0 / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6989, allocations: 0 / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000184/0.6991, allocations: 167.3 kB / 1.028 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.243e-05/0.6991, allocations: 81.11 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.6992, allocations: 4 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-05/0.6992, allocations: 11.98 kB / 1.028 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.828e-05/0.6993, allocations: 11.98 kB / 1.028 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.6993, allocations: 0 / 1.028 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.88e-05/0.6994, allocations: 91.7 kB / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.704e-06/0.6994, allocations: 0 / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000229/0.6996, allocations: 19.78 kB / 1.028 GB, free: 11.29 MB / 0.7794 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.0001123/0.6997, allocations: 107.2 kB / 1.028 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001698/0.6999, allocations: 39.97 kB / 1.028 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.6999, allocations: 0 / 1.028 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.693e-05/0.7, allocations: 15.94 kB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.7003, allocations: 19.92 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003671/0.7007, allocations: 202.5 kB / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.701, allocations: 0.6848 MB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.529e-05/0.701, allocations: 11.44 kB / 1.029 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of SimCode: time 2.8e-07/0.701, allocations: 4 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of Templates: time 0.002314/0.7033, allocations: 0.835 MB / 1.03 GB, free: 9.312 MB / 0.7794 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/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