Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00191/0.00191, allocations: 102.6 kB / 16.45 MB, free: 6.449 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.002006/0.002006, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.468/1.468, allocations: 230.6 MB / 252.8 MB, free: 9.125 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.33/3.33, allocations: 0.505 GB / 0.8066 GB, free: 23.12 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_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.002103/0.002103, allocations: 70.56 kB / 1.172 GB, free: 17.56 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3818, allocations: 180.2 MB / 1.348 GB, free: 10.02 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002263/0.3841, allocations: 0.8353 MB / 1.349 GB, free: 9.184 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0001406/0.3842, allocations: 39.78 kB / 1.349 GB, free: 9.145 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.187e-05/0.3843, allocations: 4 kB / 1.349 GB, free: 9.141 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.252e-05/0.3844, allocations: 7.875 kB / 1.349 GB, free: 9.133 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.607e-05/0.3844, allocations: 7.875 kB / 1.349 GB, free: 9.125 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 5.854e-05/0.3845, allocations: 23.97 kB / 1.349 GB, free: 9.102 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001249/0.3846, allocations: 63.84 kB / 1.349 GB, free: 9.039 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.3848, allocations: 31.92 kB / 1.349 GB, free: 9.008 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.76e-05/0.3848, allocations: 31.84 kB / 1.349 GB, free: 8.977 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.399e-05/0.3849, allocations: 27.86 kB / 1.349 GB, free: 8.949 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.794e-05/0.3849, allocations: 4 kB / 1.349 GB, free: 8.945 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 1.152e-05/0.3849, allocations: 8 kB / 1.349 GB, free: 8.938 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.314e-05/0.385, allocations: 15.86 kB / 1.349 GB, free: 8.922 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.917e-05/0.385, allocations: 35.75 kB / 1.349 GB, free: 8.887 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001513/0.3852, allocations: 79.84 kB / 1.349 GB, free: 8.809 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3852, allocations: 7.938 kB / 1.349 GB, free: 8.801 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3852, allocations: 4 kB / 1.349 GB, free: 8.797 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.217e-06/0.3852, allocations: 0 / 1.349 GB, free: 8.797 MB / 1.045 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.0004988/0.3857, allocations: 379.1 kB / 1.349 GB, free: 8.375 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3857, allocations: 15.98 kB / 1.349 GB, free: 8.359 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.103e-05/0.3858, allocations: 38.73 kB / 1.349 GB, free: 8.312 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.313e-05/0.3858, allocations: 12.89 kB / 1.349 GB, free: 8.301 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.386, allocations: 192.2 kB / 1.35 GB, free: 8.074 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.3861, allocations: 8.375 kB / 1.35 GB, free: 8.066 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.3861, allocations: 4.375 kB / 1.35 GB, free: 8.062 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.3862, allocations: 107.8 kB / 1.35 GB, free: 7.945 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.3863, allocations: 3.938 kB / 1.35 GB, free: 7.941 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3863, allocations: 4 kB / 1.35 GB, free: 7.938 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3863, allocations: 0 / 1.35 GB, free: 7.938 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.713e-05/0.3863, allocations: 31.98 kB / 1.35 GB, free: 7.906 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000607/0.387, allocations: 440.7 kB / 1.35 GB, free: 7.422 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 6.9e-05/0.387, allocations: 33.16 kB / 1.35 GB, free: 7.371 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.693e-05/0.3871, allocations: 25.83 kB / 1.35 GB, free: 7.34 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 7.845e-06/0.3871, allocations: 0 / 1.35 GB, free: 7.34 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.3871, allocations: 38.59 kB / 1.35 GB, free: 7.293 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3871, allocations: 0 / 1.35 GB, free: 7.293 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0001796/0.3873, allocations: 57.53 kB / 1.35 GB, free: 7.23 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.3873, allocations: 77.11 kB / 1.35 GB, free: 7.137 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.3875, allocations: 160.1 kB / 1.351 GB, free: 6.973 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.3875, allocations: 25.7 kB / 1.351 GB, free: 6.941 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.205e-05/0.3876, allocations: 104 kB / 1.351 GB, free: 6.836 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.178e-05/0.3876, allocations: 12.19 kB / 1.351 GB, free: 6.824 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.645e-05/0.3877, allocations: 25.64 kB / 1.351 GB, free: 6.793 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3878, allocations: 318.8 kB / 1.351 GB, free: 6.473 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.983e-05/0.3878, allocations: 8 kB / 1.351 GB, free: 6.465 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.487e-05/0.3879, allocations: 17.7 kB / 1.351 GB, free: 6.441 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.283e-05/0.3879, allocations: 29.66 kB / 1.351 GB, free: 6.406 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3879, allocations: 4 kB / 1.351 GB, free: 6.402 MB / 1.045 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.423e-05/0.388, allocations: 53.64 kB / 1.351 GB, free: 6.344 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.388, allocations: 14.28 kB / 1.351 GB, free: 6.332 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.388, allocations: 0 / 1.351 GB, free: 6.332 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.388, allocations: 0 / 1.351 GB, free: 6.332 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.518e-05/0.3881, allocations: 7.938 kB / 1.351 GB, free: 6.324 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3881, allocations: 4 kB / 1.351 GB, free: 6.32 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.191e-05/0.3881, allocations: 3.953 kB / 1.351 GB, free: 6.316 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.3882, allocations: 11.94 kB / 1.351 GB, free: 6.305 MB / 1.045 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.227e-05/0.3882, allocations: 109.9 kB / 1.351 GB, free: 6.188 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.009e-05/0.3883, allocations: 19.89 kB / 1.351 GB, free: 6.168 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.016e-05/0.3883, allocations: 7.953 kB / 1.351 GB, free: 6.152 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3883, allocations: 3.984 kB / 1.351 GB, free: 6.148 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.3883, allocations: 4 kB / 1.351 GB, free: 6.145 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3883, allocations: 0 / 1.351 GB, free: 6.145 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000543/0.3889, allocations: 474.8 kB / 1.352 GB, free: 5.617 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3889, allocations: 4.031 kB / 1.352 GB, free: 5.613 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.206e-05/0.3889, allocations: 4 kB / 1.352 GB, free: 5.609 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3889, allocations: 0 / 1.352 GB, free: 5.609 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.3889, allocations: 4 kB / 1.352 GB, free: 5.605 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3889, allocations: 0 / 1.352 GB, free: 5.605 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3889, allocations: 0 / 1.352 GB, free: 5.605 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001003/0.389, allocations: 89.81 kB / 1.352 GB, free: 5.496 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.716e-05/0.3891, allocations: 92.98 kB / 1.352 GB, free: 5.387 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.3891, allocations: 4 kB / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.092e-05/0.3891, allocations: 0 / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.3891, allocations: 0 / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-06/0.3891, allocations: 0 / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001011/0.3892, allocations: 121.1 kB / 1.352 GB, free: 5.266 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3892, allocations: 0 / 1.352 GB, free: 5.266 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0001961/0.3894, allocations: 8 kB / 1.352 GB, free: 5.258 MB / 1.045 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.0004639/0.3899, allocations: 0.6249 MB / 1.353 GB, free: 4.602 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 9.227e-05/0.39, allocations: 12 kB / 1.353 GB, free: 4.59 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.39, allocations: 0 / 1.353 GB, free: 4.59 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.431e-05/0.39, allocations: 12.09 kB / 1.353 GB, free: 4.578 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001629/0.3902, allocations: 8 kB / 1.353 GB, free: 4.57 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.3916, allocations: 1.324 MB / 1.354 GB, free: 3.148 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/0.3921, allocations: 0.7002 MB / 1.355 GB, free: 2.422 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.135e-05/0.3921, allocations: 4.438 kB / 1.355 GB, free: 2.418 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.649e-05/0.3922, allocations: 27.42 kB / 1.355 GB, free: 2.391 MB / 1.045 GB Notification: Performance of SimCode: time 4.61e-07/0.3922, allocations: 0 / 1.355 GB, free: 2.391 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02862/0.4208, allocations: 1.583 MB / 1.356 GB, free: 0.9141 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/8.65, allocations: 5.266 kB / 1.356 GB, free: 0.9102 MB / 1.045 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv --start-time 0 --stop-time 10 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 15.74067097902298]