Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001434/0.001434, allocations: 100 kB / 15.05 MB, free: 1.105 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.001725/0.001725, allocations: 177.3 kB / 15.94 MB, free: 228 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.509/1.509, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.784/2.784, allocations: 436.5 MB / 0.7104 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003807/0.0003808, allocations: 8 kB / 0.8707 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8437/0.8441, allocations: 153.7 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.000963/0.8451, allocations: 420.8 kB / 1.021 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00102/0.8462, allocations: 0.8352 MB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.652e-05/0.8462, allocations: 0 / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.501e-05/0.8462, allocations: 3.938 kB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.17e-05/0.8463, allocations: 7.969 kB / 1.022 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000142/0.8465, allocations: 19.92 kB / 1.022 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.746e-05/0.8466, allocations: 39.89 kB / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.8467, allocations: 19.97 kB / 1.022 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.81e-05/0.8468, allocations: 19.92 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.295e-05/0.8469, allocations: 19.92 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.8469, allocations: 0 / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.098e-05/0.8469, allocations: 0 / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.704e-05/0.8469, allocations: 15.92 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.847, allocations: 29.7 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.171e-05/0.847, allocations: 47.88 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.8471, allocations: 4 kB / 1.022 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.785e-06/0.8471, allocations: 0 / 1.022 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.8471, allocations: 0 / 1.022 GB, free: 15.61 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.0004657/0.8475, allocations: 361.1 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.8476, allocations: 15.92 kB / 1.023 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.8476, allocations: 7.906 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.8479, allocations: 198.9 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.8479, allocations: 0 / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.848, allocations: 7.953 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.8481, allocations: 57.67 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.8481, allocations: 0 / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.8482, allocations: 4 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.8482, allocations: 3.938 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.8483, allocations: 35.98 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004135/0.8487, allocations: 300.7 kB / 1.023 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.849, allocations: 82.53 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.849, allocations: 80 / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.8491, allocations: 42.7 kB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 8.22e-07/0.8491, allocations: 3.938 kB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002435/0.8493, allocations: 73.67 kB / 1.023 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.8494, allocations: 51.41 kB / 1.023 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.742e-05/0.8495, allocations: 121.8 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.8495, allocations: 25.7 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.159e-05/0.8495, allocations: 104 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.8496, allocations: 11.91 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/0.8496, allocations: 0 / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.8497, allocations: 322.8 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.825e-05/0.8498, allocations: 12 kB / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.423e-05/0.8498, allocations: 29.89 kB / 1.024 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.767e-05/0.8499, allocations: 32.03 kB / 1.024 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.8499, allocations: 0 / 1.024 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001381/0.85, allocations: 65.59 kB / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.8501, allocations: 4 kB / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.8501, allocations: 0 / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.8501, allocations: 7.984 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.583e-05/0.8501, allocations: 4 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.8502, allocations: 0 / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.995e-05/0.8502, allocations: 15.98 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.8502, allocations: 4 kB / 1.024 GB, free: 13.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 ($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 7.666e-05/0.8503, allocations: 113.8 kB / 1.024 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.8504, allocations: 7.906 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.674e-05/0.8504, allocations: 7.906 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.8504, allocations: 4 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.8504, allocations: 0 / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.8504, allocations: 15.86 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.8506, allocations: 173.6 kB / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.8506, allocations: 3.938 kB / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.209e-05/0.8506, allocations: 11.98 kB / 1.024 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.8506, allocations: 0 / 1.024 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.8507, allocations: 0 / 1.024 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.8507, allocations: 0 / 1.024 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.8507, allocations: 0 / 1.024 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.8508, allocations: 159.5 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.27e-05/0.8509, allocations: 88.97 kB / 1.025 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.8509, allocations: 4 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.573e-05/0.851, allocations: 7.984 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.851, allocations: 7.984 kB / 1.025 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.8511, allocations: 0 / 1.025 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.667e-05/0.8511, allocations: 107.6 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.512e-06/0.8511, allocations: 0 / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000214/0.8513, allocations: 11.94 kB / 1.025 GB, free: 12.62 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 (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.00011/0.8515, allocations: 95.19 kB / 1.025 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001523/0.8516, allocations: 39.97 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.8516, allocations: 0 / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.301e-05/0.8517, allocations: 20 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.8519, allocations: 4 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003307/0.8522, allocations: 180.6 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.8525, allocations: 0.6926 MB / 1.026 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.872e-05/0.8525, allocations: 4 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.973e-05/0.8526, allocations: 15.42 kB / 1.026 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.8526, allocations: 0 / 1.026 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of Templates: time 0.002433/0.855, allocations: 0.5786 MB / 1.026 GB, free: 10.93 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & ./Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","../files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_H.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches