Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001842/0.001842, allocations: 111 kB / 16.46 MB, free: 6.453 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.002508/0.002508, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.517/1.517, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.228/3.228, allocations: 0.49 GB / 0.7916 GB, free: 33.28 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_12_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.002078/0.002078, allocations: 77.98 kB / 1.149 GB, free: 26.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4011/0.4032, allocations: 176.1 MB / 1.321 GB, free: 3.312 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002333/0.4055, allocations: 0.8324 MB / 1.322 GB, free: 2.48 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0001767/0.4057, allocations: 39.78 kB / 1.322 GB, free: 2.441 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.596e-05/0.4058, allocations: 4 kB / 1.322 GB, free: 2.438 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.91e-05/0.4058, allocations: 11.86 kB / 1.322 GB, free: 2.426 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.468e-05/0.4059, allocations: 7.875 kB / 1.322 GB, free: 2.418 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.872e-05/0.406, allocations: 19.98 kB / 1.322 GB, free: 2.398 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.4061, allocations: 63.83 kB / 1.322 GB, free: 2.336 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.4063, allocations: 39.91 kB / 1.322 GB, free: 2.297 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.908e-05/0.4064, allocations: 31.88 kB / 1.322 GB, free: 2.266 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.56e-05/0.4064, allocations: 27.84 kB / 1.322 GB, free: 2.238 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.063e-05/0.4065, allocations: 4 kB / 1.322 GB, free: 2.234 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.263e-05/0.4065, allocations: 11.94 kB / 1.322 GB, free: 2.223 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.223e-05/0.4065, allocations: 7.938 kB / 1.322 GB, free: 2.215 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.75e-05/0.4065, allocations: 39.73 kB / 1.322 GB, free: 2.176 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.4067, allocations: 79.86 kB / 1.322 GB, free: 2.098 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4067, allocations: 0 / 1.322 GB, free: 2.098 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.813e-06/0.4067, allocations: 0 / 1.322 GB, free: 2.098 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.265e-05/0.4067, allocations: 0 / 1.322 GB, free: 2.098 MB / 1.014 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.000562/0.4073, allocations: 391.1 kB / 1.322 GB, free: 1.664 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.4073, allocations: 11.98 kB / 1.322 GB, free: 1.652 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.817e-05/0.4074, allocations: 38.75 kB / 1.322 GB, free: 1.605 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.043e-05/0.4074, allocations: 16.86 kB / 1.322 GB, free: 1.59 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.4077, allocations: 188.2 kB / 1.323 GB, free: 1.367 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.4077, allocations: 8.375 kB / 1.323 GB, free: 1.359 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.4077, allocations: 4.375 kB / 1.323 GB, free: 1.355 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002096/0.4079, allocations: 105.8 kB / 1.323 GB, free: 1.242 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.4079, allocations: 3.938 kB / 1.323 GB, free: 1.238 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.408, allocations: 4 kB / 1.323 GB, free: 1.234 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.188e-06/0.408, allocations: 4 kB / 1.323 GB, free: 1.23 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.999e-05/0.408, allocations: 35.97 kB / 1.323 GB, free: 1.195 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005971/0.4086, allocations: 440.7 kB / 1.323 GB, free: 0.7109 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 6.845e-05/0.4087, allocations: 37.09 kB / 1.323 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.915e-05/0.4088, allocations: 25.84 kB / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 9.789e-06/0.4088, allocations: 0 / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.4088, allocations: 34.59 kB / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.4088, allocations: 0 / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.000189/0.409, allocations: 69.47 kB / 1.323 GB, free: 0.5078 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.409, allocations: 77.11 kB / 1.323 GB, free: 424 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.4092, allocations: 164.2 kB / 1.324 GB, free: 252 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.4092, allocations: 25.7 kB / 1.324 GB, free: 220 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.303e-05/0.4093, allocations: 104 kB / 1.324 GB, free: 112 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.039e-05/0.4093, allocations: 7.953 kB / 1.324 GB, free: 104 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.19e-05/0.4094, allocations: 13.97 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.4095, allocations: 326.8 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.168e-05/0.4095, allocations: 8 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.631e-05/0.4096, allocations: 13.72 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.568e-05/0.4096, allocations: 33.64 kB / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.4096, allocations: 0 / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.75e-05/0.4097, allocations: 53.66 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.4097, allocations: 11.94 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.4097, allocations: 0 / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.4098, allocations: 0 / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.429e-05/0.4098, allocations: 11.98 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.4098, allocations: 3.938 kB / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.275e-05/0.4099, allocations: 3.953 kB / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.485e-06/0.4099, allocations: 8 kB / 1.324 GB, free: 15.59 MB / 1.029 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 8.543e-05/0.41, allocations: 109.8 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/0.41, allocations: 19.95 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.421e-05/0.41, allocations: 3.875 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.41, allocations: 4 kB / 1.324 GB, free: 15.44 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.41, allocations: 3.984 kB / 1.324 GB, free: 15.44 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.41, allocations: 0 / 1.324 GB, free: 15.44 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004474/0.4105, allocations: 470.8 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4105, allocations: 0 / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.249e-05/0.4105, allocations: 4.062 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.4105, allocations: 4 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-06/0.4105, allocations: 0 / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.4105, allocations: 0 / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.4105, allocations: 4 kB / 1.325 GB, free: 14.9 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001007/0.4106, allocations: 85.77 kB / 1.325 GB, free: 14.8 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.957e-05/0.4107, allocations: 89 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.4107, allocations: 8.031 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.065e-05/0.4107, allocations: 0 / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.272e-05/0.4107, allocations: 11.86 kB / 1.325 GB, free: 14.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.4108, allocations: 4 kB / 1.325 GB, free: 14.67 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001012/0.4109, allocations: 116.7 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4109, allocations: 0 / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001938/0.411, allocations: 8 kB / 1.325 GB, free: 14.55 MB / 1.029 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.0005077/0.4116, allocations: 0.621 MB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 9.032e-05/0.4116, allocations: 12 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4116, allocations: 0 / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.042e-05/0.4117, allocations: 7.938 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001586/0.4118, allocations: 8.375 kB / 1.326 GB, free: 13.87 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.4132, allocations: 1.335 MB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.4136, allocations: 0.6885 MB / 1.328 GB, free: 11.72 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.725e-05/0.4136, allocations: 16.41 kB / 1.328 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.36e-05/0.4137, allocations: 27.42 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of SimCode: time 4.41e-07/0.4137, allocations: 0 / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02623/0.4399, allocations: 1.579 MB / 1.329 GB, free: 10.19 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.255/8.695, allocations: 11.47 kB / 1.329 GB, free: 10.18 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.467481825966388]