Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_T,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_T,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006947/0.006947, allocations: 105.8 kB / 15.74 MB, free: 5.992 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.00164/0.00164, allocations: 195.8 kB / 16.67 MB, free: 5.914 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.688/2.688, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001509, allocations: 59.91 kB / 1.054 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9712/0.9727, allocations: 157.4 MB / 1.207 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_T): time 0.002146/0.9749, allocations: 0.7099 MB / 1.208 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.9761, allocations: 0.8468 MB / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.447e-05/0.9761, allocations: 0 / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.623e-05/0.9762, allocations: 7.938 kB / 1.209 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.988e-05/0.9763, allocations: 7.875 kB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001822/0.9765, allocations: 23.95 kB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001117/0.9767, allocations: 55.8 kB / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.9768, allocations: 31.94 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.9769, allocations: 27.84 kB / 1.209 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.14e-05/0.977, allocations: 27.86 kB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/0.977, allocations: 4 kB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.658e-05/0.9771, allocations: 4 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.994e-05/0.9771, allocations: 15.98 kB / 1.209 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.552e-05/0.9771, allocations: 23.86 kB / 1.209 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.9773, allocations: 74.02 kB / 1.209 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.9773, allocations: 4 kB / 1.209 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.214e-06/0.9773, allocations: 0 / 1.209 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.154e-06/0.9773, allocations: 0 / 1.209 GB, free: 11.67 MB / 0.9356 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.0005433/0.9779, allocations: 367.2 kB / 1.209 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.9779, allocations: 8.031 kB / 1.209 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.995e-05/0.978, allocations: 34.73 kB / 1.209 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.049e-05/0.978, allocations: 8.844 kB / 1.209 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.9783, allocations: 192.2 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.9784, allocations: 4.375 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.9784, allocations: 12.38 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001688/0.9786, allocations: 54.23 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.9786, allocations: 11.88 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.9786, allocations: 0 / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.9786, allocations: 0 / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.9787, allocations: 27.98 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004544/0.9792, allocations: 304.7 kB / 1.21 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.9795, allocations: 66.53 kB / 1.21 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.064e-05/0.9796, allocations: 21 kB / 1.21 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.9796, allocations: 0 / 1.21 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.9796, allocations: 34.56 kB / 1.21 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 2.244e-06/0.9796, allocations: 0 / 1.21 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0002565/0.9799, allocations: 81.64 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.9799, allocations: 51.41 kB / 1.21 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.717e-05/0.98, allocations: 129.7 kB / 1.21 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.9801, allocations: 25.7 kB / 1.21 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.516e-05/0.9801, allocations: 96.05 kB / 1.21 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.9801, allocations: 3.906 kB / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.9802, allocations: 25.7 kB / 1.211 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.9803, allocations: 314.8 kB / 1.211 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.273e-05/0.9804, allocations: 19.98 kB / 1.211 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.236e-05/0.9804, allocations: 29.7 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.929e-05/0.9805, allocations: 28.78 kB / 1.211 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.9805, allocations: 0 / 1.211 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000135/0.9807, allocations: 69.7 kB / 1.211 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.9807, allocations: 4 kB / 1.211 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.9807, allocations: 0 / 1.211 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.9807, allocations: 0 / 1.211 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.007e-05/0.9808, allocations: 8 kB / 1.211 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.9808, allocations: 0 / 1.211 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.264e-05/0.9809, allocations: 15.89 kB / 1.211 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.9809, allocations: 0 / 1.211 GB, free: 9.418 MB / 0.9356 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 (shaT.hys.y,$PRE.shaT.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 8.806e-05/0.981, allocations: 121.8 kB / 1.211 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.981, allocations: 7.938 kB / 1.211 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.089e-05/0.981, allocations: 7.844 kB / 1.211 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.981, allocations: 3.984 kB / 1.211 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.981, allocations: 4 kB / 1.211 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.9811, allocations: 0 / 1.211 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.9812, allocations: 173.6 kB / 1.211 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.9812, allocations: 0 / 1.211 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.484e-05/0.9813, allocations: 7.984 kB / 1.211 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.9813, allocations: 4 kB / 1.211 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.9813, allocations: 4 kB / 1.211 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.9813, allocations: 0 / 1.211 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.9813, allocations: 0 / 1.211 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001796/0.9815, allocations: 159.4 kB / 1.211 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.9816, allocations: 77.11 kB / 1.212 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.9816, allocations: 4 kB / 1.212 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.569e-05/0.9817, allocations: 7.984 kB / 1.212 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.9817, allocations: 15.98 kB / 1.212 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-06/0.9817, allocations: 7.938 kB / 1.212 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.586e-05/0.9818, allocations: 91.27 kB / 1.212 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9818, allocations: 0 / 1.212 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002263/0.982, allocations: 15.84 kB / 1.212 GB, free: 8.613 MB / 0.9356 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 (shaT.hys.y) * Number of discrete states: 1 (shaT.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.000453/0.9825, allocations: 0.6931 MB / 1.212 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001689/0.9827, allocations: 43.89 kB / 1.212 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.9827, allocations: 0 / 1.212 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.95e-05/0.9827, allocations: 12 kB / 1.212 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.983, allocations: 10.33 kB / 1.212 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.9844, allocations: 1.34 MB / 1.214 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.9847, allocations: 0.6807 MB / 1.214 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.493e-05/0.9847, allocations: 7.984 kB / 1.214 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.631e-05/0.9848, allocations: 19.44 kB / 1.214 GB, free: 5.68 MB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.9848, allocations: 3.938 kB / 1.214 GB, free: 5.676 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/1.005, allocations: 1.766 MB / 1.216 GB, free: 3.996 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.396/8.401, allocations: 17.8 kB / 1.216 GB, free: 3.98 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_T_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Shade_Validation_Shade_T.fmu > Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Shade_Validation_Shade_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.Shade.Validation.Shade_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,shaT.THigh,shaT.TLow,shaT.T,shaT.y Variables in the result:T.amplitude,T.freqHz,T.offset,T.phase,T.startTime,T.y,shaT.T,shaT.THigh,shaT.TLow,shaT.y,time