Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.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.UnitConversions.Validation.From_gal,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_gal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_gal,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_gal",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.001239/0.001239, allocations: 108 kB / 15.6 MB, free: 132 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.001227/0.001227, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.281/1.281, allocations: 222.9 MB / 240.2 MB, free: 4.363 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.426/2.426, allocations: 437.1 MB / 0.7104 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.91 kB / 0.8694 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5008/0.5021, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_gal): time 0.001965/0.5041, allocations: 0.825 MB / 1.018 GB, free: 1.66 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0001109/0.5042, allocations: 43.78 kB / 1.018 GB, free: 1.617 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.753e-05/0.5043, allocations: 4 kB / 1.018 GB, free: 1.613 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.546e-05/0.5043, allocations: 7.875 kB / 1.018 GB, free: 1.605 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.001e-05/0.5044, allocations: 7.938 kB / 1.018 GB, free: 1.598 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 4.441e-05/0.5045, allocations: 19.97 kB / 1.018 GB, free: 1.578 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.699e-05/0.5046, allocations: 63.8 kB / 1.018 GB, free: 1.516 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.5047, allocations: 47.94 kB / 1.018 GB, free: 1.469 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.79e-05/0.5047, allocations: 23.88 kB / 1.018 GB, free: 1.445 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.766e-05/0.5048, allocations: 27.84 kB / 1.018 GB, free: 1.418 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.5048, allocations: 4 kB / 1.018 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.123e-05/0.5048, allocations: 8 kB / 1.018 GB, free: 1.406 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.5049, allocations: 15.94 kB / 1.018 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.445e-05/0.5049, allocations: 35.67 kB / 1.019 GB, free: 1.355 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.32e-05/0.505, allocations: 70.02 kB / 1.019 GB, free: 1.289 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.505, allocations: 8 kB / 1.019 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.653e-06/0.505, allocations: 0 / 1.019 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.505, allocations: 0 / 1.019 GB, free: 1.281 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0003615/0.5054, allocations: 379.1 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.5054, allocations: 12.03 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.357e-05/0.5055, allocations: 38.75 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.744e-05/0.5055, allocations: 8.844 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.5057, allocations: 188.2 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.5057, allocations: 12.38 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.5057, allocations: 8.375 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.5059, allocations: 95.8 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.5059, allocations: 3.938 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.5059, allocations: 7.984 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.5059, allocations: 7.938 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.71e-05/0.506, allocations: 31.92 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004904/0.5065, allocations: 444.7 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.179e-05/0.5065, allocations: 37.31 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.257e-05/0.5066, allocations: 17.72 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.5066, allocations: 4 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.5066, allocations: 30.56 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.5066, allocations: 4 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001515/0.5068, allocations: 57.47 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.5068, allocations: 81.11 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.5069, allocations: 167.9 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 9.688e-06/0.507, allocations: 29.95 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.696e-05/0.507, allocations: 108 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.993e-06/0.507, allocations: 3.906 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.5071, allocations: 17.72 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.628e-05/0.5072, allocations: 326.8 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.599e-05/0.5072, allocations: 4 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.279e-05/0.5072, allocations: 17.72 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.647e-05/0.5073, allocations: 29.66 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.5073, allocations: 0 / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.176e-05/0.5074, allocations: 65.53 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.5074, allocations: 7.938 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.5074, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.5074, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.738e-05/0.5075, allocations: 8 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.5075, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.948e-05/0.5075, allocations: 7.969 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-06/0.5075, allocations: 4 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (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.881e-05/0.5076, allocations: 118.5 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.312e-05/0.5076, allocations: 11.84 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.862e-05/0.5077, allocations: 7.875 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.5077, allocations: 4 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.5077, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.5077, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/0.508, allocations: 470.8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.508, allocations: 3.938 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-05/0.5081, allocations: 11.98 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.5081, allocations: 0 / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-06/0.5081, allocations: 0 / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.5081, allocations: 4 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5081, allocations: 3.938 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.351e-05/0.5082, allocations: 81.91 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.568e-05/0.5082, allocations: 92.94 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.209e-05/0.5082, allocations: 0 / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.997e-05/0.5083, allocations: 0 / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.267e-05/0.5083, allocations: 0 / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.5083, allocations: 4 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.684e-05/0.5084, allocations: 126.3 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5084, allocations: 4.031 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001901/0.5086, allocations: 4 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0003026/0.5089, allocations: 0.617 MB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.7e-05/0.509, allocations: 27.95 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.509, allocations: 4 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.005e-05/0.509, allocations: 4 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.5091, allocations: 8 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009961/0.5101, allocations: 1.322 MB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.5104, allocations: 0.6924 MB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.849e-05/0.5104, allocations: 8.438 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.206e-05/0.5104, allocations: 23.42 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.5105, allocations: 0 / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01603/0.5265, allocations: 1.552 MB / 1.026 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.513/7.039, allocations: 3.953 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_gal.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_From_gal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches