Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.CDL.Reals.Validation.Average,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Average,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Average",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.009892/0.009892, allocations: 99.53 kB / 15.73 MB, free: 6.48 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.002249/0.002249, allocations: 193.5 kB / 16.68 MB, free: 6.363 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.543/2.543, allocations: 437 MB / 0.7105 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 63.91 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2735, allocations: 151.6 MB / 1.166 GB, free: 7.25 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.001855/0.2754, allocations: 0.71 MB / 1.167 GB, free: 6.539 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008006/0.2762, allocations: 0.8083 MB / 1.168 GB, free: 5.719 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.277e-05/0.2762, allocations: 0 / 1.168 GB, free: 5.719 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.864e-05/0.2763, allocations: 3.938 kB / 1.168 GB, free: 5.715 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.124e-05/0.2764, allocations: 7.938 kB / 1.168 GB, free: 5.707 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 5.224e-05/0.2764, allocations: 11.97 kB / 1.168 GB, free: 5.695 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.398e-05/0.2765, allocations: 39.92 kB / 1.168 GB, free: 5.656 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.649e-05/0.2766, allocations: 11.98 kB / 1.168 GB, free: 5.645 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.327e-05/0.2767, allocations: 31.86 kB / 1.168 GB, free: 5.613 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.417e-05/0.2767, allocations: 15.92 kB / 1.168 GB, free: 5.598 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.2767, allocations: 4 kB / 1.168 GB, free: 5.594 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.658e-06/0.2768, allocations: 4 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.014e-05/0.2768, allocations: 11.92 kB / 1.168 GB, free: 5.578 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.651e-05/0.2768, allocations: 15.94 kB / 1.168 GB, free: 5.562 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 8.56e-05/0.2769, allocations: 44.08 kB / 1.168 GB, free: 5.52 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.2769, allocations: 0 / 1.168 GB, free: 5.52 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2769, allocations: 3.938 kB / 1.168 GB, free: 5.516 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.2769, allocations: 0 / 1.168 GB, free: 5.516 MB / 0.92 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.0004962/0.2774, allocations: 367.3 kB / 1.168 GB, free: 5.105 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.879e-05/0.2775, allocations: 12.03 kB / 1.168 GB, free: 5.094 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.2776, allocations: 34.75 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.34e-05/0.2776, allocations: 8.891 kB / 1.168 GB, free: 5.043 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.2777, allocations: 160.4 kB / 1.168 GB, free: 4.848 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.2777, allocations: 4.375 kB / 1.168 GB, free: 4.844 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.2777, allocations: 384 / 1.168 GB, free: 4.844 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002402/0.278, allocations: 82.14 kB / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.278, allocations: 3.938 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.278, allocations: 0 / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.278, allocations: 4 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002793/0.2783, allocations: 59.92 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003484/0.2787, allocations: 280.8 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.2789, allocations: 54.48 kB / 1.169 GB, free: 4.305 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.279, allocations: 40.91 kB / 1.169 GB, free: 4.262 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 9.718e-06/0.279, allocations: 0 / 1.169 GB, free: 4.262 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.2791, allocations: 38.56 kB / 1.169 GB, free: 4.215 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.2791, allocations: 3.938 kB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.000519/0.2796, allocations: 121.6 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.2796, allocations: 51.41 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.99e-05/0.2797, allocations: 113.8 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.2797, allocations: 25.7 kB / 1.169 GB, free: 3.871 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.262e-05/0.2798, allocations: 92.12 kB / 1.169 GB, free: 3.777 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.2798, allocations: 11.89 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.2798, allocations: 17.72 kB / 1.169 GB, free: 3.742 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.28, allocations: 310.8 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.2801, allocations: 31.95 kB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.2802, allocations: 35.97 kB / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.2805, allocations: 73 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2805, allocations: 0 / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000316/0.2808, allocations: 97.61 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.2809, allocations: 8 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2809, allocations: 3.938 kB / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.2809, allocations: 0 / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.281, allocations: 27.91 kB / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.2811, allocations: 0 / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.588e-05/0.2811, allocations: 7.984 kB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.2811, allocations: 4 kB / 1.17 GB, free: 3.137 MB / 0.92 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 7.568e-05/0.2812, allocations: 113.8 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.2813, allocations: 7.953 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.2813, allocations: 7.906 kB / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.2813, allocations: 3.984 kB / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.2813, allocations: 0 / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2813, allocations: 0 / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.2815, allocations: 169.6 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2815, allocations: 0 / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.725e-05/0.2816, allocations: 19.98 kB / 1.17 GB, free: 2.754 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2816, allocations: 0 / 1.17 GB, free: 2.754 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.2816, allocations: 0 / 1.17 GB, free: 2.754 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.2816, allocations: 3.984 kB / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2816, allocations: 0 / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003647/0.282, allocations: 203.4 kB / 1.17 GB, free: 2.535 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-05/0.282, allocations: 85.06 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.2821, allocations: 0 / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.2822, allocations: 11.98 kB / 1.171 GB, free: 2.422 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.2822, allocations: 3.984 kB / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.2822, allocations: 4 kB / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.451e-05/0.2823, allocations: 87.27 kB / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of sort global known variables: time 2e-07/0.2823, allocations: 0 / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002244/0.2825, allocations: 15.88 kB / 1.171 GB, free: 2.312 MB / 0.92 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.000655/0.2832, allocations: 0.7318 MB / 1.171 GB, free: 1.555 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003279/0.2835, allocations: 67.92 kB / 1.171 GB, free: 1.488 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2835, allocations: 4 kB / 1.171 GB, free: 1.484 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.2837, allocations: 39.95 kB / 1.172 GB, free: 1.445 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.284, allocations: 6.188 kB / 1.172 GB, free: 1.441 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004033/0.2844, allocations: 151.1 kB / 1.172 GB, free: 1.254 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.2847, allocations: 0.6807 MB / 1.172 GB, free: 0.5469 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.06e-05/0.2847, allocations: 3.938 kB / 1.172 GB, free: 0.543 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.331e-05/0.2848, allocations: 15.42 kB / 1.172 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of SimCode: time 3.3e-07/0.2848, allocations: 3.938 kB / 1.172 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.3078, allocations: 1.627 MB / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.343/7.65, allocations: 10.58 kB / 1.174 GB, free: 14.97 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Average.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches