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.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_H,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Shade_Validation_Shade_H",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Shade.Validation.Shade_H,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_Shade_Validation_Shade_H",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.007535/0.007535, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001858/0.001858, allocations: 193.3 kB / 16.67 MB, free: 5.953 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 15.11 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.321/2.321, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002185/0.002186, allocations: 71.88 kB / 0.9504 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7911/0.7933, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.001785/0.7951, allocations: 0.7018 MB / 1.088 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000949/0.7961, allocations: 0.8452 MB / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.781e-05/0.7961, allocations: 1 kB / 1.089 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.26e-05/0.7962, allocations: 5.594 kB / 1.089 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.636e-05/0.7963, allocations: 14.27 kB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001607/0.7964, allocations: 18.08 kB / 1.089 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.493e-05/0.7965, allocations: 56.7 kB / 1.089 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.7967, allocations: 27.78 kB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.583e-05/0.7968, allocations: 32.5 kB / 1.089 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.7e-05/0.7969, allocations: 27.78 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.969e-05/0.7969, allocations: 5.312 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.372e-05/0.7969, allocations: 5.875 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.621e-05/0.7969, allocations: 12.42 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.889e-05/0.797, allocations: 27.38 kB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.7971, allocations: 64.62 kB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.7971, allocations: 4 kB / 1.089 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.774e-06/0.7971, allocations: 0 / 1.089 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.7972, allocations: 1.062 kB / 1.089 GB, free: 4.039 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.000448/0.7976, allocations: 373.9 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.7977, allocations: 13.34 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.958e-05/0.7977, allocations: 32.39 kB / 1.09 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.7977, allocations: 8.969 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.7979, allocations: 187.5 kB / 1.09 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.798, allocations: 9.562 kB / 1.09 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.798, allocations: 8.172 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.7981, allocations: 59.42 kB / 1.09 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.7982, allocations: 3.938 kB / 1.09 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.7982, allocations: 1.062 kB / 1.09 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.7982, allocations: 1.25 kB / 1.09 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.7983, allocations: 28.61 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003969/0.7987, allocations: 305.4 kB / 1.09 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.799, allocations: 67.33 kB / 1.09 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/0.7991, allocations: 14.86 kB / 1.09 GB, free: 3 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.7991, allocations: 1.125 kB / 1.09 GB, free: 3 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.551e-05/0.7991, allocations: 39.66 kB / 1.09 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.7991, allocations: 0 / 1.09 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002621/0.7994, allocations: 74.88 kB / 1.09 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.7994, allocations: 53.25 kB / 1.09 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.546e-05/0.7995, allocations: 127.2 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.7995, allocations: 26.73 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.339e-05/0.7996, allocations: 92.2 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.7996, allocations: 15.08 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.614e-05/0.7996, allocations: 19.23 kB / 1.091 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.107e-05/0.7997, allocations: 317.9 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.587e-05/0.7998, allocations: 14.56 kB / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.281e-05/0.7998, allocations: 31.59 kB / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.592e-05/0.7999, allocations: 26.23 kB / 1.091 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7999, allocations: 5.188 kB / 1.091 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001342/0.8001, allocations: 65.89 kB / 1.091 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.8001, allocations: 5.828 kB / 1.091 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.8001, allocations: 0 / 1.091 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.8001, allocations: 0 / 1.091 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.007e-05/0.8002, allocations: 7.312 kB / 1.091 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.8002, allocations: 0 / 1.091 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.355e-05/0.8002, allocations: 12.39 kB / 1.091 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-06/0.8003, allocations: 1.969 kB / 1.091 GB, free: 2.172 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 (shaH.hys.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.135e-05/0.8003, allocations: 117.8 kB / 1.091 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.8004, allocations: 10.8 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/0.8004, allocations: 11.11 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.8004, allocations: 1.125 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.8004, allocations: 0 / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.8004, allocations: 4.5 kB / 1.091 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.8006, allocations: 178.2 kB / 1.091 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.8006, allocations: 0 / 1.091 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.608e-05/0.8006, allocations: 11.36 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.8006, allocations: 4 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.8006, allocations: 1.75 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.8006, allocations: 0 / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.8006, allocations: 1.344 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001591/0.8008, allocations: 158.6 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.63e-05/0.8008, allocations: 82.72 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.8009, allocations: 1.375 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.944e-05/0.801, allocations: 9.656 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.801, allocations: 11.56 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.801, allocations: 5.797 kB / 1.092 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.34e-05/0.8011, allocations: 97.58 kB / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8011, allocations: 0 / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002269/0.8013, allocations: 11 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 (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 (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.00035/0.8017, allocations: 0.6983 MB / 1.093 GB, free: 16.8 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001582/0.8018, allocations: 33.84 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.8018, allocations: 0 / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.728e-05/0.8019, allocations: 20.95 kB / 1.093 GB, free: 16.78 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.8022, allocations: 3.234 kB / 1.093 GB, free: 16.78 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.8035, allocations: 1.344 MB / 1.094 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.8037, allocations: 0.6844 MB / 1.095 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.603e-05/0.8038, allocations: 8.859 kB / 1.095 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.06e-05/0.8038, allocations: 20.8 kB / 1.095 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.8038, allocations: 0 / 1.095 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01644/0.8203, allocations: 1.741 MB / 1.096 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.42/8.24, allocations: 9.672 kB / 1.096 GB, free: 14.42 MB / 0.8731 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_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_H.fmu > Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H.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 shaH.H in file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.H from file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HHigh in file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HHigh from file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! Error: Could not read variable shaH.HLow in file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv. Warning: Get data of variable shaH.HLow from file Buildings_9_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.csv failed! " Variables in the reference:time,shaH.H,shaH.HHigh,shaH.HLow,shaH.y Variables in the result:time,H.y,shaH.y,H.amplitude,H.freqHz,H.offset