Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9202/0.9202, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.741/1.741, allocations: 377.8 MB / 0.6221 GB, free: 8.68 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Average,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Average,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.755e-06/2.755e-06, allocations: 0 / 0.981 GB, free: 2.523 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.934e-05/2.209e-05, allocations: 2.281 kB / 0.981 GB, free: 2.52 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.001588/0.00161, allocations: 0.7027 MB / 0.9817 GB, free: 1.816 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.000763/0.002373, allocations: 0.8199 MB / 0.9825 GB, free: 0.9844 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.628e-05/0.002409, allocations: 4 kB / 0.9825 GB, free: 0.9805 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.87e-05/0.002438, allocations: 7.922 kB / 0.9825 GB, free: 0.9727 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.563e-05/0.002503, allocations: 7.875 kB / 0.9825 GB, free: 0.9648 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 6.263e-05/0.002566, allocations: 11.98 kB / 0.9825 GB, free: 0.9531 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 7.763e-05/0.002643, allocations: 43.86 kB / 0.9826 GB, free: 0.9102 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.002747, allocations: 7.984 kB / 0.9826 GB, free: 0.9023 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.575e-05/0.002823, allocations: 23.98 kB / 0.9826 GB, free: 0.8789 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 3.817e-05/0.002861, allocations: 27.89 kB / 0.9826 GB, free: 0.8516 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.101e-05/0.002882, allocations: 4 kB / 0.9827 GB, free: 0.8477 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.643e-06/0.002889, allocations: 4 kB / 0.9827 GB, free: 0.8438 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.518e-05/0.002904, allocations: 4 kB / 0.9827 GB, free: 0.8398 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.361e-05/0.002928, allocations: 11.98 kB / 0.9827 GB, free: 0.8281 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 8.093e-05/0.003009, allocations: 43.81 kB / 0.9827 GB, free: 0.7852 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.003011, allocations: 0 / 0.9827 GB, free: 0.7852 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.252e-06/0.003012, allocations: 0 / 0.9827 GB, free: 0.7852 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.003017, allocations: 0 / 0.9827 GB, free: 0.7852 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003785/0.003395, allocations: 290.2 kB / 0.983 GB, free: 480 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.003434, allocations: 12.03 kB / 0.983 GB, free: 468 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.885e-05/0.003463, allocations: 34.75 kB / 0.983 GB, free: 424 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.145e-05/0.003485, allocations: 8.891 kB / 0.983 GB, free: 416 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.203e-05/0.003567, allocations: 109.7 kB / 0.9831 GB, free: 280 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.003579, allocations: 8.375 kB / 0.9832 GB, free: 272 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.003587, allocations: 384 / 0.9832 GB, free: 272 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.003756, allocations: 66.22 kB / 0.9832 GB, free: 200 kB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.003764, allocations: 4.188 kB / 0.9832 GB, free: 196 kB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.003774, allocations: 8.359 kB / 0.9832 GB, free: 188 kB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.00378, allocations: 4.125 kB / 0.9832 GB, free: 184 kB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.003918, allocations: 59.94 kB / 0.9833 GB, free: 124 kB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000308/0.004226, allocations: 235.9 kB / 0.9835 GB, free: 15.85 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.004342, allocations: 54.55 kB / 0.9836 GB, free: 15.79 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.531e-05/0.004417, allocations: 40.91 kB / 0.9836 GB, free: 15.74 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.004428, allocations: 7.875 kB / 0.9836 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.004448, allocations: 38.5 kB / 0.9837 GB, free: 15.69 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 1.273e-06/0.00445, allocations: 0 / 0.9837 GB, free: 15.69 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0003037/0.004753, allocations: 133.5 kB / 0.9838 GB, free: 15.55 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.004783, allocations: 51.41 kB / 0.9838 GB, free: 15.49 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.217e-05/0.004845, allocations: 113.8 kB / 0.9839 GB, free: 15.37 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.707e-06/0.004854, allocations: 25.7 kB / 0.984 GB, free: 15.34 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.529e-05/0.004889, allocations: 80.14 kB / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.004908, allocations: 15.91 kB / 0.9841 GB, free: 15.24 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.473e-05/0.004932, allocations: 9.719 kB / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.678e-05/0.005009, allocations: 322.8 kB / 0.9844 GB, free: 14.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.181e-05/0.005081, allocations: 27.97 kB / 0.9844 GB, free: 14.87 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.225e-05/0.005143, allocations: 36.14 kB / 0.9844 GB, free: 14.84 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.005273, allocations: 68.88 kB / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.005275, allocations: 0 / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001644/0.00544, allocations: 109.5 kB / 0.9846 GB, free: 14.65 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.005454, allocations: 4 kB / 0.9846 GB, free: 14.65 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.005459, allocations: 0 / 0.9846 GB, free: 14.65 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.00547, allocations: 4 kB / 0.9846 GB, free: 14.64 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.281e-05/0.005552, allocations: 11.98 kB / 0.9846 GB, free: 14.63 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.005557, allocations: 0 / 0.9846 GB, free: 14.63 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.744e-05/0.005594, allocations: 15.94 kB / 0.9846 GB, free: 14.62 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.005601, allocations: 0 / 0.9846 GB, free: 14.62 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 5.683e-05/0.005657, allocations: 117.8 kB / 0.9847 GB, free: 14.49 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.005671, allocations: 3.938 kB / 0.9848 GB, free: 14.49 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.948e-05/0.00569, allocations: 11.98 kB / 0.9848 GB, free: 14.48 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.005692, allocations: 0 / 0.9848 GB, free: 14.48 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.005697, allocations: 0 / 0.9848 GB, free: 14.48 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.005699, allocations: 0 / 0.9848 GB, free: 14.48 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001075/0.005807, allocations: 132.8 kB / 0.9849 GB, free: 14.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.005809, allocations: 0 / 0.9849 GB, free: 14.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.257e-05/0.005851, allocations: 19.92 kB / 0.9849 GB, free: 14.29 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.005853, allocations: 0 / 0.9849 GB, free: 14.29 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.005862, allocations: 7.984 kB / 0.9849 GB, free: 14.28 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.005864, allocations: 7.938 kB / 0.9849 GB, free: 14.27 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.005865, allocations: 0 / 0.9849 GB, free: 14.27 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.006057, allocations: 195.4 kB / 0.9851 GB, free: 14.06 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-06/0.006064, allocations: 7.875 kB / 0.9851 GB, free: 14.05 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.006075, allocations: 0 / 0.9851 GB, free: 14.05 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.756e-05/0.006123, allocations: 11.98 kB / 0.9851 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.701e-05/0.00616, allocations: 7.984 kB / 0.9851 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.006163, allocations: 4 kB / 0.9851 GB, free: 14.03 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.166e-05/0.006195, allocations: 95.5 kB / 0.9852 GB, free: 13.94 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.006195, allocations: 0 / 0.9852 GB, free: 13.94 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001404/0.006335, allocations: 11.94 kB / 0.9852 GB, free: 13.93 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * 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.0003864/0.006722, allocations: 0.7348 MB / 0.986 GB, free: 13.16 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001837/0.006905, allocations: 71.92 kB / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.006907, allocations: 0 / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 7.052e-05/0.006977, allocations: 35.91 kB / 0.9861 GB, free: 13.06 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.007263, allocations: 8 kB / 0.9861 GB, free: 13.05 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003611/0.007624, allocations: 150.4 kB / 0.9862 GB, free: 12.86 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.403e-05/0.007668, allocations: 67.28 kB / 0.9863 GB, free: 12.78 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.627e-05/0.007695, allocations: 336 / 0.9863 GB, free: 12.78 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.107e-05/0.007736, allocations: 24.48 kB / 0.9863 GB, free: 12.75 MB / 0.948 GB Notification: Performance of SimCode: time 5.71e-07/0.007736, allocations: 0 / 0.9863 GB, free: 12.75 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01754/0.02527, allocations: 2.328 MB / 0.9886 GB, free: 10.57 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.749/6.774, allocations: 1.172 kB / 0.9886 GB, free: 10.57 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Average.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable avg1.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv. Warning: Get data of variable avg1.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv failed! Error: Could not read variable avg1.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv. Warning: Get data of variable avg1.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.981174700893462]