Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.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.001374/0.001374, allocations: 114.3 kB / 18.94 MB, free: 2.957 MB / 14.72 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.001467/0.001467, allocations: 217.6 kB / 22.25 MB, free: 5.113 MB / 14.72 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 1.531/1.531, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.792/2.792, allocations: 476.7 MB / 0.7707 GB, free: 4.281 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 68.42 kB / 1.117 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4121/0.4141, allocations: 169.9 MB / 1.283 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002418/0.4165, allocations: 0.8399 MB / 1.284 GB, free: 2.965 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0001665/0.4167, allocations: 39.8 kB / 1.284 GB, free: 2.926 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.471e-05/0.4168, allocations: 4 kB / 1.284 GB, free: 2.922 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.317e-05/0.4168, allocations: 7.875 kB / 1.284 GB, free: 2.914 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.715e-05/0.4169, allocations: 11.86 kB / 1.284 GB, free: 2.902 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 7.164e-05/0.417, allocations: 23.97 kB / 1.284 GB, free: 2.879 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.4172, allocations: 55.84 kB / 1.284 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.4173, allocations: 31.98 kB / 1.284 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.926e-05/0.4174, allocations: 31.8 kB / 1.284 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.88e-05/0.4175, allocations: 23.86 kB / 1.284 GB, free: 2.738 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.687e-05/0.4175, allocations: 8 kB / 1.284 GB, free: 2.73 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.242e-05/0.4175, allocations: 4 kB / 1.284 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.582e-05/0.4175, allocations: 23.86 kB / 1.284 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.136e-05/0.4176, allocations: 35.75 kB / 1.284 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001509/0.4177, allocations: 79.78 kB / 1.285 GB, free: 2.59 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.4178, allocations: 0 / 1.285 GB, free: 2.59 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.305e-06/0.4178, allocations: 0 / 1.285 GB, free: 2.59 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.4178, allocations: 4 kB / 1.285 GB, free: 2.586 MB / 0.9825 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.0005322/0.4183, allocations: 306 kB / 1.285 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.4183, allocations: 12.03 kB / 1.285 GB, free: 2.242 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.253e-05/0.4184, allocations: 38.73 kB / 1.285 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.4184, allocations: 12.89 kB / 1.285 GB, free: 2.184 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.4187, allocations: 126.4 kB / 1.285 GB, free: 2.035 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.4187, allocations: 8.375 kB / 1.285 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.598e-05/0.4187, allocations: 4.375 kB / 1.285 GB, free: 2.023 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.4189, allocations: 105.8 kB / 1.285 GB, free: 1.91 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.4189, allocations: 3.938 kB / 1.285 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.4189, allocations: 0 / 1.285 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.4189, allocations: 0 / 1.285 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.403e-05/0.419, allocations: 43.91 kB / 1.285 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006014/0.4196, allocations: 403.8 kB / 1.286 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.013e-05/0.4197, allocations: 41.25 kB / 1.286 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.365e-05/0.4197, allocations: 21.78 kB / 1.286 GB, free: 1.336 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.4197, allocations: 3.984 kB / 1.286 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.4198, allocations: 34.56 kB / 1.286 GB, free: 1.289 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.4198, allocations: 4 kB / 1.286 GB, free: 1.285 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001867/0.4199, allocations: 53.53 kB / 1.286 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.796e-05/0.42, allocations: 77.11 kB / 1.286 GB, free: 1.133 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.4202, allocations: 161.3 kB / 1.286 GB, free: 0.9688 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.4202, allocations: 25.7 kB / 1.286 GB, free: 0.9375 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.667e-05/0.4203, allocations: 108 kB / 1.286 GB, free: 0.8281 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.107e-06/0.4203, allocations: 7.953 kB / 1.286 GB, free: 0.8203 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-05/0.4203, allocations: 25.91 kB / 1.286 GB, free: 0.7891 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.4205, allocations: 318.8 kB / 1.286 GB, free: 480 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.776e-05/0.4205, allocations: 4 kB / 1.286 GB, free: 476 kB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.663e-05/0.4205, allocations: 21.7 kB / 1.286 GB, free: 448 kB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.506e-05/0.4206, allocations: 29.66 kB / 1.286 GB, free: 412 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4206, allocations: 4 kB / 1.286 GB, free: 408 kB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.149e-05/0.4206, allocations: 57.59 kB / 1.287 GB, free: 344 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.4207, allocations: 7.938 kB / 1.287 GB, free: 336 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.4207, allocations: 3.984 kB / 1.287 GB, free: 332 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.4207, allocations: 4 kB / 1.287 GB, free: 328 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.011e-05/0.4207, allocations: 7.938 kB / 1.287 GB, free: 320 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.4208, allocations: 3.984 kB / 1.287 GB, free: 316 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.998e-05/0.4208, allocations: 7.953 kB / 1.287 GB, free: 308 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.536e-06/0.4208, allocations: 0 / 1.287 GB, free: 308 kB / 0.9825 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 9.049e-05/0.4209, allocations: 117.9 kB / 1.287 GB, free: 180 kB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.191e-05/0.4209, allocations: 11.89 kB / 1.287 GB, free: 168 kB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.827e-05/0.421, allocations: 15.8 kB / 1.287 GB, free: 152 kB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.421, allocations: 0 / 1.287 GB, free: 152 kB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.421, allocations: 0 / 1.287 GB, free: 152 kB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.421, allocations: 0 / 1.287 GB, free: 152 kB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004501/0.4214, allocations: 445.8 kB / 1.287 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.4214, allocations: 4.062 kB / 1.287 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.624e-05/0.4214, allocations: 4 kB / 1.287 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.4214, allocations: 4 kB / 1.287 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.4215, allocations: 0 / 1.287 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.4215, allocations: 0 / 1.287 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4215, allocations: 4.031 kB / 1.287 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.52e-05/0.4215, allocations: 81.86 kB / 1.287 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.659e-05/0.4216, allocations: 15.98 kB / 1.287 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.4216, allocations: 0 / 1.287 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.158e-05/0.4216, allocations: 4 kB / 1.287 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.4216, allocations: 3.984 kB / 1.287 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-06/0.4216, allocations: 0 / 1.287 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001028/0.4217, allocations: 119.2 kB / 1.287 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.1e-08/0.4217, allocations: 0 / 1.287 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001856/0.4219, allocations: 11.95 kB / 1.287 GB, free: 15.39 MB / 0.9981 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.0004261/0.4223, allocations: 0.6209 MB / 1.288 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 8.374e-05/0.4224, allocations: 15.94 kB / 1.288 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4224, allocations: 0 / 1.288 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.033e-05/0.4224, allocations: 4.156 kB / 1.288 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/0.4226, allocations: 14.02 kB / 1.288 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.424, allocations: 1.334 MB / 1.289 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.4243, allocations: 0.6963 MB / 1.29 GB, free: 12.55 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.24e-05/0.4244, allocations: 8.438 kB / 1.29 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.992e-05/0.4244, allocations: 23.42 kB / 1.29 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of SimCode: time 3.11e-07/0.4244, allocations: 0 / 1.29 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02943/0.4538, allocations: 1.688 MB / 1.292 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.34, allocations: 10.11 kB / 1.292 GB, free: 10.96 MB / 0.9981 GB " [Timeout remaining time 289] (rm -f Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.173526820000916]