Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001176/0.001177, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.002046/0.002046, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.711/2.711, allocations: 390.9 MB / 0.666 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005359/0.0005359, allocations: 8 kB / 0.8154 GB, free: 13.58 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8375/0.8381, allocations: 142.4 MB / 0.9544 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.001085/0.8392, allocations: 420.2 kB / 0.9548 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001386/0.8406, allocations: 0.8375 MB / 0.9557 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.993e-05/0.8408, allocations: 1.438 kB / 0.9557 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.808e-05/0.8408, allocations: 0 / 0.9557 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.8409, allocations: 13.28 kB / 0.9557 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.8412, allocations: 18.56 kB / 0.9557 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001397/0.8414, allocations: 51 kB / 0.9557 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.8415, allocations: 16.14 kB / 0.9558 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.8417, allocations: 11.69 kB / 0.9558 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.8418, allocations: 26.88 kB / 0.9558 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.8418, allocations: 6.375 kB / 0.9558 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.452e-05/0.8418, allocations: 1.281 kB / 0.9558 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.386e-05/0.8419, allocations: 12.98 kB / 0.9558 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.059e-05/0.8419, allocations: 37.98 kB / 0.9558 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.842, allocations: 46.11 kB / 0.9559 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.8421, allocations: 0 / 0.9559 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.294e-06/0.8421, allocations: 0 / 0.9559 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.8421, allocations: 0 / 0.9559 GB, free: 6.551 MB / 0.7169 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.0005875/0.8427, allocations: 360.5 kB / 0.9562 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.456e-05/0.8427, allocations: 8.938 kB / 0.9562 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.592e-05/0.8428, allocations: 11.11 kB / 0.9563 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/0.8432, allocations: 192.8 kB / 0.9564 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.8432, allocations: 6.188 kB / 0.9564 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.8432, allocations: 7.25 kB / 0.9564 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.8434, allocations: 56.92 kB / 0.9565 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.8435, allocations: 7.938 kB / 0.9565 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.8435, allocations: 0 / 0.9565 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.8435, allocations: 1.25 kB / 0.9565 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.8436, allocations: 35.94 kB / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005692/0.8442, allocations: 304.3 kB / 0.9568 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003964/0.8446, allocations: 87.33 kB / 0.9569 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.478e-05/0.8447, allocations: 18.78 kB / 0.9569 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.8448, allocations: 4 kB / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.8448, allocations: 35.98 kB / 0.957 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.753e-06/0.8448, allocations: 0 / 0.957 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003643/0.8452, allocations: 83.84 kB / 0.9571 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.8452, allocations: 51.41 kB / 0.9571 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.8454, allocations: 121.8 kB / 0.9572 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.8454, allocations: 26.95 kB / 0.9572 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.056e-05/0.8455, allocations: 102.6 kB / 0.9573 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.8455, allocations: 5.062 kB / 0.9573 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-06/0.8455, allocations: 0 / 0.9573 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.824e-05/0.8456, allocations: 321.1 kB / 0.9577 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.097e-05/0.8457, allocations: 22.05 kB / 0.9577 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.725e-05/0.8457, allocations: 28.7 kB / 0.9577 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.368e-05/0.8458, allocations: 14.22 kB / 0.9577 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.8458, allocations: 0 / 0.9577 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001693/0.846, allocations: 80.92 kB / 0.9578 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.846, allocations: 6.266 kB / 0.9578 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.846, allocations: 0 / 0.9578 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.8461, allocations: 1.438 kB / 0.9578 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.066e-05/0.8461, allocations: 9.141 kB / 0.9578 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.8462, allocations: 0 / 0.9578 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.608e-05/0.8462, allocations: 9.438 kB / 0.9578 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.8462, allocations: 1.438 kB / 0.9578 GB, free: 4.648 MB / 0.7169 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 ($PRE.shaH.hys.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.8464, allocations: 121 kB / 0.9579 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.192e-05/0.8464, allocations: 2.031 kB / 0.9579 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.635e-05/0.8464, allocations: 14.17 kB / 0.958 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.8464, allocations: 0 / 0.958 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.8465, allocations: 1.281 kB / 0.958 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.8465, allocations: 0 / 0.958 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.8466, allocations: 179.2 kB / 0.9581 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.8466, allocations: 1.125 kB / 0.9581 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.366e-05/0.8467, allocations: 8.406 kB / 0.9581 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.8467, allocations: 0.875 kB / 0.9581 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.8467, allocations: 4.906 kB / 0.9581 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.8467, allocations: 3.953 kB / 0.9581 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.8467, allocations: 9.016 kB / 0.9582 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001598/0.8469, allocations: 154.3 kB / 0.9583 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.173e-05/0.8469, allocations: 86.8 kB / 0.9584 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.847, allocations: 5.906 kB / 0.9584 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.493e-05/0.8471, allocations: 6.062 kB / 0.9584 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.73e-05/0.8471, allocations: 11.81 kB / 0.9584 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.8471, allocations: 3.984 kB / 0.9584 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.643e-05/0.8472, allocations: 96.83 kB / 0.9585 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8472, allocations: 3.938 kB / 0.9585 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000236/0.8474, allocations: 7.656 kB / 0.9585 GB, free: 3.922 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001294/0.8476, allocations: 107.4 kB / 0.9586 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001807/0.8477, allocations: 42.62 kB / 0.9587 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.8478, allocations: 0 / 0.9587 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.973e-05/0.8478, allocations: 19.61 kB / 0.9587 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.8482, allocations: 6.719 kB / 0.9587 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005116/0.8487, allocations: 184.6 kB / 0.9589 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.849, allocations: 0.6815 MB / 0.9595 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.598e-05/0.8491, allocations: 12.02 kB / 0.9595 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.592e-05/0.8491, allocations: 10.06 kB / 0.9595 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.8492, allocations: 0 / 0.9595 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of Templates: time 0.003678/0.8528, allocations: 0.5656 MB / 0.9601 GB, free: 2.621 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.makefile (rm -f Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & ./Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches