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.001137/0.001137, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 194.1 kB / 16.53 MB, free: 6.699 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.457/1.457, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.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.51/2.51, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 59.91 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6253/0.6267, allocations: 140.4 MB / 0.9497 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.00168/0.6284, allocations: 0.6977 MB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009082/0.6293, allocations: 0.8449 MB / 0.9512 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.549e-05/0.6294, allocations: 1.75 kB / 0.9512 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.49e-05/0.6295, allocations: 3.938 kB / 0.9512 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.6296, allocations: 13.75 kB / 0.9512 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.6298, allocations: 21.81 kB / 0.9513 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.6299, allocations: 63.38 kB / 0.9513 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.63, allocations: 16.3 kB / 0.9513 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.6302, allocations: 29.67 kB / 0.9514 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.354e-05/0.6303, allocations: 25.91 kB / 0.9514 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.433e-05/0.6303, allocations: 9.812 kB / 0.9514 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.783e-05/0.6303, allocations: 9.062 kB / 0.9514 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.053e-05/0.6303, allocations: 5.594 kB / 0.9514 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.028e-05/0.6304, allocations: 31.08 kB / 0.9514 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.6305, allocations: 66.83 kB / 0.9515 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.6305, allocations: 0 / 0.9515 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.6305, allocations: 0 / 0.9515 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.6305, allocations: 0 / 0.9515 GB, free: 7.785 MB / 0.7169 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.0004724/0.631, allocations: 369.6 kB / 0.9519 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.6311, allocations: 9.531 kB / 0.9519 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.229e-05/0.6311, allocations: 39.97 kB / 0.9519 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.297e-05/0.6311, allocations: 7.625 kB / 0.9519 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.6314, allocations: 191.4 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.6314, allocations: 3.188 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.6314, allocations: 3.156 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001502/0.6316, allocations: 59.22 kB / 0.9521 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.6316, allocations: 3.938 kB / 0.9522 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.6316, allocations: 9.188 kB / 0.9522 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.6316, allocations: 5.469 kB / 0.9522 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.6317, allocations: 27.19 kB / 0.9522 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003642/0.6321, allocations: 302.2 kB / 0.9525 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002722/0.6324, allocations: 74.23 kB / 0.9526 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.093e-05/0.6324, allocations: 17.14 kB / 0.9526 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.6325, allocations: 0 / 0.9526 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.238e-05/0.6325, allocations: 31.78 kB / 0.9526 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.6325, allocations: 3.938 kB / 0.9526 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002344/0.6327, allocations: 78.31 kB / 0.9527 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.776e-05/0.6328, allocations: 55.41 kB / 0.9527 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.01e-05/0.6328, allocations: 126.4 kB / 0.9529 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.6328, allocations: 26.73 kB / 0.9529 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.496e-05/0.6329, allocations: 94.34 kB / 0.953 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.6329, allocations: 10.16 kB / 0.953 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.6329, allocations: 12.88 kB / 0.953 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.158e-05/0.633, allocations: 325 kB / 0.9533 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.174e-05/0.633, allocations: 15.78 kB / 0.9533 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.443e-05/0.6331, allocations: 27.7 kB / 0.9533 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.106e-05/0.6332, allocations: 30.81 kB / 0.9534 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.6332, allocations: 3.938 kB / 0.9534 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001248/0.6333, allocations: 66.8 kB / 0.9534 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.6333, allocations: 7.375 kB / 0.9534 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.6334, allocations: 0 / 0.9534 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.6334, allocations: 4.031 kB / 0.9534 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.147e-05/0.6334, allocations: 13.17 kB / 0.9535 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.6334, allocations: 3.984 kB / 0.9535 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.897e-05/0.6335, allocations: 5.219 kB / 0.9535 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.6335, allocations: 1.125 kB / 0.9535 GB, free: 5.789 MB / 0.7169 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 5.512e-05/0.6336, allocations: 121.5 kB / 0.9536 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.662e-05/0.6336, allocations: 2.938 kB / 0.9536 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.283e-05/0.6336, allocations: 9.375 kB / 0.9536 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.6336, allocations: 5.312 kB / 0.9536 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.6337, allocations: 0 / 0.9536 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.6337, allocations: 336 / 0.9536 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.6338, allocations: 179.5 kB / 0.9538 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.6338, allocations: 1.375 kB / 0.9538 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.203e-05/0.6338, allocations: 8.031 kB / 0.9538 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.6338, allocations: 3.984 kB / 0.9538 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/0.6339, allocations: 5.031 kB / 0.9538 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.6339, allocations: 3.938 kB / 0.9538 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.6339, allocations: 1.125 kB / 0.9538 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.634, allocations: 162.1 kB / 0.954 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.028e-05/0.634, allocations: 86.84 kB / 0.954 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.6341, allocations: 0.9688 kB / 0.954 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.563e-05/0.6341, allocations: 4.156 kB / 0.954 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.6342, allocations: 7.203 kB / 0.954 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-06/0.6342, allocations: 1.594 kB / 0.954 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.474e-05/0.6342, allocations: 97.33 kB / 0.9541 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6342, allocations: 4 kB / 0.9541 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002268/0.6345, allocations: 11 kB / 0.9542 GB, free: 5.062 MB / 0.7169 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.0002862/0.6348, allocations: 0.6931 MB / 0.9548 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001446/0.6349, allocations: 39.17 kB / 0.9549 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.6349, allocations: 1.281 kB / 0.9549 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.117e-05/0.635, allocations: 17.17 kB / 0.9549 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.6353, allocations: 7.688 kB / 0.9549 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009909/0.6363, allocations: 1.331 MB / 0.9562 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.728e-05/0.6364, allocations: 0.6861 MB / 0.9569 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.991e-05/0.6364, allocations: 7.359 kB / 0.9569 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.26e-05/0.6365, allocations: 17.94 kB / 0.9569 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.6365, allocations: 0 / 0.9569 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01686/0.6533, allocations: 1.71 MB / 0.9586 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.269/7.922, allocations: 16.72 kB / 0.9586 GB, free: 1.406 MB / 0.7169 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