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.001616/0.001616, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001643/0.001643, allocations: 189 kB / 16.25 MB, free: 6.637 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.63/1.63, allocations: 222.9 MB / 239.9 MB, free: 4.555 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.952/2.952, allocations: 437 MB / 0.7101 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001982, allocations: 71.89 kB / 0.8687 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8975/0.8995, allocations: 151.6 MB / 1.017 GB, free: 2.734 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002178/0.9017, allocations: 0.7575 MB / 1.018 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00114/0.9028, allocations: 0.8391 MB / 1.018 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.256e-05/0.9029, allocations: 3.938 kB / 1.018 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.502e-05/0.9029, allocations: 0 / 1.018 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.36e-05/0.903, allocations: 11.86 kB / 1.018 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001653/0.9032, allocations: 19.98 kB / 1.018 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.9033, allocations: 67.72 kB / 1.018 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.9035, allocations: 19.98 kB / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.9036, allocations: 27.91 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.279e-05/0.9036, allocations: 31.84 kB / 1.019 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/0.9037, allocations: 4 kB / 1.019 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.477e-05/0.9037, allocations: 12 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.169e-05/0.9037, allocations: 8 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.923e-05/0.9038, allocations: 27.86 kB / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.9039, allocations: 65.73 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.9039, allocations: 0 / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.212e-06/0.9039, allocations: 0 / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.9039, allocations: 0 / 1.019 GB, free: 0.8359 MB / 0.7637 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.00055/0.9045, allocations: 375.1 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.9045, allocations: 8.031 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.552e-05/0.9046, allocations: 8.938 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.9048, allocations: 192.2 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.9049, allocations: 384 / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.9049, allocations: 4.375 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/0.905, allocations: 58.22 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.905, allocations: 192 / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.9051, allocations: 7.938 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.9051, allocations: 7.938 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.9052, allocations: 31.98 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000484/0.9057, allocations: 300.7 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.906, allocations: 70.53 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.723e-05/0.9061, allocations: 21 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.9061, allocations: 0 / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.9061, allocations: 30.56 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.001e-06/0.9061, allocations: 0 / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002676/0.9064, allocations: 77.59 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.9064, allocations: 55.41 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.9066, allocations: 126.1 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.9066, allocations: 29.7 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.738e-05/0.9067, allocations: 92.08 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.9067, allocations: 7.906 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.9068, allocations: 17.7 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.9069, allocations: 318.8 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.943e-05/0.907, allocations: 15.98 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.013e-05/0.9071, allocations: 37.7 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.373e-05/0.9072, allocations: 28.78 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.9072, allocations: 3.938 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001557/0.9074, allocations: 69.58 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.9074, allocations: 5.406 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.9074, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.9074, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.868e-05/0.9075, allocations: 4 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.9075, allocations: 4.031 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.143e-05/0.9075, allocations: 11.98 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.9076, allocations: 0 / 1.021 GB, free: 14.62 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 0.0001022/0.9077, allocations: 118.6 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.908e-05/0.9077, allocations: 7.906 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.9077, allocations: 7.906 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.9078, allocations: 3.984 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.9078, allocations: 7.875 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.634e-06/0.9078, allocations: 4 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002057/0.908, allocations: 173.6 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.908, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.643e-05/0.908, allocations: 11.98 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.9081, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.9081, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.9081, allocations: 4 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.9081, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002039/0.9083, allocations: 159.5 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.9085, allocations: 81.02 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.9085, allocations: 0 / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.801e-05/0.9086, allocations: 7.984 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.055e-05/0.9086, allocations: 7.984 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.9086, allocations: 4 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.814e-05/0.9087, allocations: 103.3 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9087, allocations: 3.938 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002296/0.909, allocations: 11.94 kB / 1.021 GB, free: 13.82 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.0001527/0.9091, allocations: 99.25 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001744/0.9093, allocations: 36.34 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.9093, allocations: 0 / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.557e-05/0.9094, allocations: 12 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.9097, allocations: 11.94 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004235/0.9101, allocations: 180 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.9105, allocations: 0.6846 MB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.93e-05/0.9106, allocations: 11.98 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.871e-05/0.9106, allocations: 11.44 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.9106, allocations: 3.938 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of Templates: time 0.003306/0.9139, allocations: 0.6284 MB / 1.023 GB, free: 12.1 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=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/jenkins/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