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.006164/0.006164, allocations: 102.1 kB / 15.73 MB, free: 6.012 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.001311/0.001311, allocations: 196.6 kB / 16.67 MB, free: 5.938 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.047 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.839/2.839, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 59.91 kB / 1.054 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3576, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_T): time 0.002509/0.3602, allocations: 0.693 MB / 1.208 GB, free: 9.484 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001552/0.3618, allocations: 0.8507 MB / 1.209 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.364e-05/0.3619, allocations: 0 / 1.209 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.756e-05/0.3619, allocations: 3.938 kB / 1.209 GB, free: 8.617 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.3621, allocations: 11.88 kB / 1.209 GB, free: 8.605 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.3623, allocations: 23.95 kB / 1.209 GB, free: 8.582 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000121/0.3625, allocations: 55.8 kB / 1.209 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.3626, allocations: 31.92 kB / 1.209 GB, free: 8.496 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.3627, allocations: 35.86 kB / 1.209 GB, free: 8.461 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.55e-05/0.3628, allocations: 27.84 kB / 1.209 GB, free: 8.434 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.3629, allocations: 4 kB / 1.209 GB, free: 8.43 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.455e-05/0.3629, allocations: 4 kB / 1.209 GB, free: 8.426 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.785e-05/0.3629, allocations: 15.98 kB / 1.209 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.702e-05/0.363, allocations: 19.88 kB / 1.209 GB, free: 8.391 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.3631, allocations: 71.98 kB / 1.209 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.3631, allocations: 3.984 kB / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3632, allocations: 4 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.155e-05/0.3632, allocations: 0 / 1.209 GB, free: 8.312 MB / 0.9669 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.0005952/0.3638, allocations: 359.3 kB / 1.209 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.3638, allocations: 12.62 kB / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.002e-05/0.3639, allocations: 30.75 kB / 1.209 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.221e-05/0.3639, allocations: 16.81 kB / 1.209 GB, free: 7.844 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.3642, allocations: 200.1 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.3642, allocations: 12.31 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.3643, allocations: 4.375 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.3644, allocations: 54.23 kB / 1.21 GB, free: 7.535 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.3644, allocations: 3.938 kB / 1.21 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.3644, allocations: 4 kB / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3645, allocations: 0 / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.3646, allocations: 27.98 kB / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.365, allocations: 308.6 kB / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.3654, allocations: 66.53 kB / 1.21 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.686e-05/0.3654, allocations: 21 kB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.3655, allocations: 0 / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.3655, allocations: 34.56 kB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.853e-06/0.3655, allocations: 0 / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0002905/0.3658, allocations: 69.61 kB / 1.21 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.3658, allocations: 55.41 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.3659, allocations: 121.8 kB / 1.21 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.366, allocations: 29.7 kB / 1.21 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.3661, allocations: 92.05 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.55e-05/0.3661, allocations: 7.844 kB / 1.211 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.727e-05/0.3661, allocations: 25.7 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3663, allocations: 318.8 kB / 1.211 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.685e-05/0.3663, allocations: 15.98 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.534e-05/0.3664, allocations: 29.7 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.628e-05/0.3665, allocations: 32.78 kB / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3665, allocations: 0 / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001486/0.3667, allocations: 69.62 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.3667, allocations: 4 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.3667, allocations: 3.984 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.3667, allocations: 0 / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.342e-05/0.3668, allocations: 4 kB / 1.211 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.3668, allocations: 7.938 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.817e-05/0.3669, allocations: 7.984 kB / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.3669, allocations: 0 / 1.211 GB, free: 6.062 MB / 0.9669 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 0.0001017/0.367, allocations: 121.8 kB / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.367, allocations: 8.266 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.433e-05/0.3671, allocations: 7.906 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3671, allocations: 3.984 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3671, allocations: 0 / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3671, allocations: 7.984 kB / 1.211 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.3673, allocations: 169.6 kB / 1.211 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.3673, allocations: 4 kB / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.234e-05/0.3673, allocations: 7.984 kB / 1.211 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3674, allocations: 3.938 kB / 1.211 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.3674, allocations: 8 kB / 1.211 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3674, allocations: 0 / 1.211 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3674, allocations: 0 / 1.211 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001902/0.3676, allocations: 159.4 kB / 1.211 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.267e-05/0.3676, allocations: 81.02 kB / 1.212 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.3676, allocations: 0 / 1.212 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.729e-05/0.3677, allocations: 11.98 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.998e-05/0.3678, allocations: 11.98 kB / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.3678, allocations: 3.938 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.591e-05/0.3679, allocations: 95.27 kB / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3679, allocations: 0 / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002241/0.3681, allocations: 12 kB / 1.212 GB, free: 5.258 MB / 0.9669 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.0004521/0.3686, allocations: 0.6851 MB / 1.212 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001712/0.3687, allocations: 35.92 kB / 1.212 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3688, allocations: 0 / 1.212 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.446e-05/0.3688, allocations: 15.98 kB / 1.212 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.3691, allocations: 8 kB / 1.212 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.3705, allocations: 1.349 MB / 1.214 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.3708, allocations: 0.6807 MB / 1.214 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.39e-05/0.3708, allocations: 7.984 kB / 1.214 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.181e-05/0.3709, allocations: 19.44 kB / 1.214 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of SimCode: time 2.21e-07/0.3709, allocations: 0 / 1.214 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02137/0.3923, allocations: 1.791 MB / 1.216 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.566/7.958, allocations: 19.56 kB / 1.216 GB, free: 0.6094 MB / 0.9669 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