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.001714/0.001714, allocations: 108 kB / 15.6 MB, free: 132 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.001892/0.001892, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.56/1.56, allocations: 222.9 MB / 240.2 MB, free: 4.367 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.89/2.89, allocations: 437 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 63.89 kB / 0.8692 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6673/0.6692, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.002322/0.6716, allocations: 0.6927 MB / 1.018 GB, free: 1.801 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.6727, allocations: 0.8468 MB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.545e-05/0.6728, allocations: 0 / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.582e-05/0.6728, allocations: 7.938 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.05e-05/0.6729, allocations: 7.938 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001833/0.6731, allocations: 31.89 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.6733, allocations: 55.8 kB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.6734, allocations: 23.97 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.6735, allocations: 23.92 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.443e-05/0.6736, allocations: 31.84 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.068e-05/0.6736, allocations: 8 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.886e-05/0.6737, allocations: 4 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.725e-05/0.6737, allocations: 15.92 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.62e-05/0.6737, allocations: 27.81 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.6739, allocations: 61.73 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.6739, allocations: 0 / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.014e-06/0.6739, allocations: 4 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.128e-05/0.6739, allocations: 0 / 1.019 GB, free: 0.6445 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.0005927/0.6745, allocations: 379.1 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.6746, allocations: 8.031 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.062e-05/0.6746, allocations: 4.938 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.6749, allocations: 188.3 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.675, allocations: 4.375 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.675, allocations: 4.312 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/0.6752, allocations: 62.22 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.6752, allocations: 192 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.6752, allocations: 11.88 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.6752, allocations: 0 / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.6753, allocations: 27.98 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005152/0.6759, allocations: 300.7 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003284/0.6762, allocations: 78.44 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.942e-05/0.6763, allocations: 16.92 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.6763, allocations: 3.984 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.6763, allocations: 34.56 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.6763, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002916/0.6766, allocations: 73.75 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.6767, allocations: 51.41 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.6768, allocations: 133.6 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.6768, allocations: 25.7 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.385e-05/0.6769, allocations: 92.12 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.6769, allocations: 7.906 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/0.677, allocations: 13.72 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.6771, allocations: 326.8 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.502e-05/0.6772, allocations: 16 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.521e-05/0.6773, allocations: 25.7 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.012e-05/0.6774, allocations: 32.84 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.6774, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001459/0.6775, allocations: 65.58 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.6776, allocations: 8 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.6776, allocations: 7.969 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.6776, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.117e-05/0.6776, allocations: 7.984 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.6777, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.792e-05/0.6777, allocations: 4 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.6777, allocations: 4 kB / 1.021 GB, free: 14.43 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.0001012/0.6778, allocations: 125.7 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.6779, allocations: 7.844 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.584e-05/0.6779, allocations: 15.91 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.6779, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.6779, allocations: 4 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.6779, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001999/0.6781, allocations: 177.6 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.6782, allocations: 0 / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.239e-05/0.6782, allocations: 4 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.6782, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.6782, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.6782, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.6782, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001879/0.6784, allocations: 163.7 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.675e-05/0.6785, allocations: 89.05 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.6785, allocations: 7.984 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.461e-05/0.6786, allocations: 4 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.925e-05/0.6787, allocations: 7.984 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.6787, allocations: 0 / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.501e-05/0.6787, allocations: 99.7 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6787, allocations: 0 / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002344/0.679, allocations: 11.94 kB / 1.022 GB, free: 13.63 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.0001257/0.6791, allocations: 97.36 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001817/0.6793, allocations: 39.91 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.6793, allocations: 0 / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.74e-05/0.6794, allocations: 19.98 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.6797, allocations: 13.98 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000387/0.6801, allocations: 155.8 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.6804, allocations: 0.6807 MB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.239e-05/0.6805, allocations: 11.98 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.6805, allocations: 11.44 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of SimCode: time 2.034e-06/0.6805, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of Templates: time 0.003314/0.6839, allocations: 0.6953 MB / 1.023 GB, free: 11.86 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