Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_T,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Shade_Validation_Shade_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_T,fileNamePrefix="Buildings_9_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.00813/0.00813, allocations: 104.2 kB / 15.73 MB, free: 6.043 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.001918/0.001918, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.283/2.283, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002203/0.002203, allocations: 59.91 kB / 0.9503 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8778/0.8801, allocations: 140.4 MB / 1.087 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_T): time 0.001838/0.882, allocations: 0.7085 MB / 1.088 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009188/0.8829, allocations: 0.851 MB / 1.089 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.745e-05/0.8829, allocations: 0 / 1.089 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.594e-05/0.883, allocations: 5 kB / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.497e-05/0.8831, allocations: 18.61 kB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000147/0.8832, allocations: 16.75 kB / 1.089 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.148e-05/0.8833, allocations: 60.98 kB / 1.089 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.8834, allocations: 15.75 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.855e-05/0.8835, allocations: 36.3 kB / 1.089 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.304e-05/0.8836, allocations: 24.22 kB / 1.089 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.917e-05/0.8836, allocations: 10.06 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.394e-05/0.8837, allocations: 5.5 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.196e-05/0.8837, allocations: 15.44 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.632e-05/0.8837, allocations: 28.2 kB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.8839, allocations: 64.94 kB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.8839, allocations: 0 / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8839, allocations: 0 / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.123e-05/0.8839, allocations: 0 / 1.089 GB, free: 4.043 MB / 0.8575 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.0004188/0.8843, allocations: 368.7 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.8844, allocations: 13.28 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.679e-05/0.8844, allocations: 37.8 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.8844, allocations: 7.531 kB / 1.09 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001985/0.8846, allocations: 191.2 kB / 1.09 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.8846, allocations: 6.344 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.8847, allocations: 4.234 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.8848, allocations: 54.53 kB / 1.09 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.8848, allocations: 5 kB / 1.09 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.8848, allocations: 4 kB / 1.09 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.8849, allocations: 5.516 kB / 1.09 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.885, allocations: 33.02 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003712/0.8853, allocations: 293.1 kB / 1.09 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.8857, allocations: 71.25 kB / 1.09 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.486e-05/0.8857, allocations: 19.12 kB / 1.09 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.8857, allocations: 0.8438 kB / 1.09 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.42e-05/0.8858, allocations: 32.36 kB / 1.09 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.273e-06/0.8858, allocations: 0 / 1.09 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002704/0.886, allocations: 79.31 kB / 1.09 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.186e-05/0.8861, allocations: 51.92 kB / 1.09 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.867e-05/0.8862, allocations: 132.2 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.8862, allocations: 26.8 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.685e-05/0.8862, allocations: 88.44 kB / 1.091 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.8862, allocations: 17.66 kB / 1.091 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.458e-05/0.8863, allocations: 19.73 kB / 1.091 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.945e-05/0.8863, allocations: 318.5 kB / 1.091 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.422e-05/0.8864, allocations: 14.66 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.127e-05/0.8865, allocations: 34.3 kB / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.438e-05/0.8865, allocations: 31.28 kB / 1.091 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.8866, allocations: 0.9688 kB / 1.091 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001268/0.8867, allocations: 62.25 kB / 1.091 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.8867, allocations: 4.594 kB / 1.091 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.8867, allocations: 0.5625 kB / 1.091 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.8867, allocations: 1.281 kB / 1.091 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.189e-05/0.8868, allocations: 10.31 kB / 1.091 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.8868, allocations: 0 / 1.091 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.22e-05/0.8869, allocations: 8.25 kB / 1.091 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.8869, allocations: 1.094 kB / 1.091 GB, free: 2.176 MB / 0.8575 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 6.121e-05/0.8869, allocations: 120.8 kB / 1.091 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.887, allocations: 6.469 kB / 1.091 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.952e-05/0.887, allocations: 14.08 kB / 1.091 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.887, allocations: 1.125 kB / 1.091 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.887, allocations: 4 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.887, allocations: 1.609 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.8872, allocations: 177.5 kB / 1.091 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.8872, allocations: 5 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-05/0.8872, allocations: 6.312 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.8873, allocations: 3.938 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.8873, allocations: 1.922 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.8873, allocations: 0.6094 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.8873, allocations: 0 / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001514/0.8874, allocations: 167.4 kB / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.261e-05/0.8875, allocations: 79.89 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.8875, allocations: 5.688 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.725e-05/0.8876, allocations: 5.812 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.411e-05/0.8876, allocations: 5.953 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-06/0.8876, allocations: 6.484 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.294e-05/0.8877, allocations: 95.89 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8877, allocations: 0 / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002187/0.8879, allocations: 15.95 kB / 1.092 GB, free: 1.477 MB / 0.8575 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.0003729/0.8883, allocations: 0.6915 MB / 1.093 GB, free: 16.8 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001706/0.8885, allocations: 37.77 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.8885, allocations: 4 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.43e-05/0.8885, allocations: 16.52 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.8888, allocations: 6.453 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.8901, allocations: 1.333 MB / 1.094 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.8904, allocations: 0.6841 MB / 1.095 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.236e-05/0.8904, allocations: 12.27 kB / 1.095 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.611e-05/0.8905, allocations: 20.58 kB / 1.095 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of SimCode: time 4.01e-07/0.8905, allocations: 0 / 1.095 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01924/0.9097, allocations: 1.745 MB / 1.096 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.218/8.128, allocations: 1.062 kB / 1.096 GB, free: 14.44 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv --start-time 0 --stop-time 1800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.72 Buildings_9_Buildings_Controls_OBC_Shade_Validation_Shade_T.fmu > Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_Shade_Validation_Shade_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[505]=1800.000000 File[1377]=1124.640000 Error: Could not read variable shaT.THigh in file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv. Warning: Get data of variable shaT.THigh from file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv failed! Error: Could not read variable shaT.TLow in file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv. Warning: Get data of variable shaT.TLow from file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv failed! Error: Could not read variable shaT.T in file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv. Warning: Get data of variable shaT.T from file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_T_res.csv failed! " Variables in the reference:time,shaT.THigh,shaT.TLow,shaT.T,shaT.y Variables in the result:time,T.y,shaT.y,T.amplitude,T.freqHz,T.offset