Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Fluid.Sensors.Examples.RelativeHumidity,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_RelativeHumidity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.RelativeHumidity,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_RelativeHumidity",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.005727/0.005727, allocations: 102.2 kB / 15.73 MB, free: 5.992 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.001188/0.001188, allocations: 196.5 kB / 16.67 MB, free: 5.93 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.343/2.343, allocations: 390.3 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 58.66 kB / 0.9504 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2989, allocations: 140.4 MB / 1.087 GB, free: 1.949 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.RelativeHumidity): time 0.1878/0.4867, allocations: 165.3 MB / 1.249 GB, free: 12.05 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003117/0.4899, allocations: 1.562 MB / 1.25 GB, free: 10.49 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004904/0.4904, allocations: 11.94 kB / 1.25 GB, free: 10.48 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0005885/0.491, allocations: 139 kB / 1.251 GB, free: 10.34 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.4925, allocations: 473.8 kB / 1.251 GB, free: 9.875 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002041/0.4946, allocations: 0.7533 MB / 1.252 GB, free: 9.121 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.001019/0.4956, allocations: 0.702 MB / 1.252 GB, free: 8.414 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005582/0.4962, allocations: 267.4 kB / 1.253 GB, free: 8.156 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007331/0.4969, allocations: 322.8 kB / 1.253 GB, free: 7.84 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004184/0.4974, allocations: 223.1 kB / 1.253 GB, free: 7.621 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 6.83e-05/0.4974, allocations: 24 kB / 1.253 GB, free: 7.598 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.499, allocations: 0.8691 MB / 1.254 GB, free: 6.727 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.4991, allocations: 115.7 kB / 1.254 GB, free: 6.613 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0002657/0.4994, allocations: 151.2 kB / 1.254 GB, free: 6.465 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.5007, allocations: 0.7441 MB / 1.255 GB, free: 5.719 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.5007, allocations: 0 / 1.255 GB, free: 5.719 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.263e-06/0.5008, allocations: 4 kB / 1.255 GB, free: 5.715 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.923e-05/0.5008, allocations: 0 / 1.255 GB, free: 5.715 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001323/0.5021, allocations: 0.676 MB / 1.256 GB, free: 4.988 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.5022, allocations: 8.031 kB / 1.256 GB, free: 4.98 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.724e-05/0.5022, allocations: 62.53 kB / 1.256 GB, free: 4.91 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005325/0.5028, allocations: 87.5 kB / 1.256 GB, free: 4.824 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005179/0.5033, allocations: 309.8 kB / 1.256 GB, free: 4.484 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.5033, allocations: 24.56 kB / 1.256 GB, free: 4.461 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.813e-05/0.5034, allocations: 24 kB / 1.256 GB, free: 4.438 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006914/0.5041, allocations: 332.2 kB / 1.257 GB, free: 4.098 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.5041, allocations: 0 / 1.257 GB, free: 4.098 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.5042, allocations: 11.94 kB / 1.257 GB, free: 4.086 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.5042, allocations: 8 kB / 1.257 GB, free: 4.078 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007234/0.5049, allocations: 289.5 kB / 1.257 GB, free: 3.793 MB / 1.014 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.5067, allocations: 1.052 MB / 1.258 GB, free: 2.68 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008929/0.5076, allocations: 331.6 kB / 1.258 GB, free: 2.328 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003253/0.5079, allocations: 132.8 kB / 1.258 GB, free: 2.195 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006922/0.5086, allocations: 392.3 kB / 1.259 GB, free: 1.738 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.5086, allocations: 34.56 kB / 1.259 GB, free: 1.695 MB / 1.014 GB Notification: Performance of pre-optimization done (n=19): time 1.363e-06/0.5086, allocations: 0 / 1.259 GB, free: 1.695 MB / 1.014 GB Notification: Performance of matching and sorting (n=19): time 0.001277/0.5099, allocations: 404.9 kB / 1.259 GB, free: 1.293 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.51, allocations: 63.39 kB / 1.259 GB, free: 1.219 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.5103, allocations: 270.9 kB / 1.259 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.5103, allocations: 33.7 kB / 1.259 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.5105, allocations: 160.2 kB / 1.26 GB, free: 0.75 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 8.798e-05/0.5106, allocations: 78.92 kB / 1.26 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.4e-05/0.5107, allocations: 41.7 kB / 1.26 GB, free: 0.625 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5108, allocations: 342.8 kB / 1.26 GB, free: 288 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003265/0.5112, allocations: 103.9 kB / 1.26 GB, free: 184 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003574/0.5115, allocations: 159.5 kB / 1.26 GB, free: 4 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.6092/1.121, allocations: 268.5 kB / 1.261 GB, free: 176.1 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.121, allocations: 0 / 1.261 GB, free: 176.1 MB / 1.014 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0008674/1.122, allocations: 318 kB / 1.261 GB, free: 176 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/1.122, allocations: 6.781 kB / 1.261 GB, free: 176 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/1.122, allocations: 2.594 kB / 1.261 GB, free: 176 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/1.122, allocations: 6.875 kB / 1.261 GB, free: 176 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/1.122, allocations: 59.25 kB / 1.261 GB, free: 176 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/1.122, allocations: 2.469 kB / 1.261 GB, free: 176 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/1.122, allocations: 41.03 kB / 1.261 GB, free: 176 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/1.122, allocations: 9.922 kB / 1.261 GB, free: 176 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (24): * Single equations (assignments): 24 * 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 0.0001516/1.123, allocations: 153.5 kB / 1.261 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.58e-05/1.123, allocations: 24.16 kB / 1.261 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008455/1.123, allocations: 322.7 kB / 1.261 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/1.123, allocations: 2.375 kB / 1.261 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/1.123, allocations: 1.891 kB / 1.261 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/1.123, allocations: 1.125 kB / 1.261 GB, free: 175.9 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001567/1.125, allocations: 0.9258 MB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/1.125, allocations: 1.594 kB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002699/1.125, allocations: 58.44 kB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/1.125, allocations: 2.75 kB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/1.125, allocations: 4.109 kB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/1.125, allocations: 3.219 kB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.125, allocations: 6.094 kB / 1.262 GB, free: 175.4 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/1.127, allocations: 0.5587 MB / 1.263 GB, free: 175.2 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/1.127, allocations: 129.8 kB / 1.263 GB, free: 175.1 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/1.127, allocations: 5.719 kB / 1.263 GB, free: 175.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/1.127, allocations: 24.67 kB / 1.263 GB, free: 175.1 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.93e-05/1.127, allocations: 24.58 kB / 1.263 GB, free: 175.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/1.127, allocations: 8.531 kB / 1.263 GB, free: 175.1 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001969/1.127, allocations: 197.3 kB / 1.263 GB, free: 175 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.31e-07/1.127, allocations: 2.078 kB / 1.263 GB, free: 175 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004711/1.128, allocations: 107.6 kB / 1.263 GB, free: 175 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 1 (relHum.phi) * 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 (19): * Single equations (assignments): 19 * 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.00166/1.129, allocations: 1.195 MB / 1.265 GB, free: 174.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0007422/1.13, allocations: 253.8 kB / 1.265 GB, free: 174.3 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/1.13, allocations: 4.594 kB / 1.265 GB, free: 174.3 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003623/1.131, allocations: 138.5 kB / 1.265 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007458/1.131, allocations: 134 kB / 1.265 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003914/1.135, allocations: 2.958 MB / 1.268 GB, free: 172.4 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/1.135, allocations: 0.7832 MB / 1.269 GB, free: 171.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002354/1.136, allocations: 66.72 kB / 1.269 GB, free: 171.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/1.136, allocations: 91.47 kB / 1.269 GB, free: 171.6 MB / 1.014 GB Notification: Performance of SimCode: time 2.1e-07/1.136, allocations: 3.938 kB / 1.269 GB, free: 171.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/1.172, allocations: 9.077 MB / 1.278 GB, free: 170.7 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.976, allocations: 12.5 kB / 1.278 GB, free: 170.7 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_RelativeHumidity_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_RelativeHumidity.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_RelativeHumidity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,relHum.port_a.m_flow,relHum.phi,senRelHum.phi Variables in the result:TDryBul.duration,TDryBul.height,TDryBul.offset,TDryBul.startTime,TDryBul.y,XHum.duration,XHum.height,XHum.offset,XHum.startTime,XHum.y,der(relHum.phi),m_flow.duration,m_flow.height,m_flow.offset,m_flow.startTime,m_flow.y,relHum.allowFlowReversal,relHum.initType,relHum.m_flow_nominal,relHum.m_flow_small,relHum.phi,relHum.phi_start,relHum.port_a.Xi_outflow[1],relHum.port_a.h_outflow,relHum.port_a.m_flow,relHum.port_a.p,relHum.port_b.Xi_outflow[1],relHum.port_b.h_outflow,relHum.port_b.m_flow,relHum.port_b.p,relHum.tau,senRelHum.phi,senRelHum.port.Xi_outflow[1],senRelHum.port.h_outflow,senRelHum.port.m_flow,senRelHum.port.p,senRelHum.warnAboutOnePortConnection,sin.T,sin.X[1],sin.X[2],sin.nPorts,sin.p,sin.ports[1].Xi_outflow[1],sin.ports[1].h_outflow,sin.ports[1].m_flow,sin.ports[1].p,sin.use_C_in,sin.use_T_in,sin.use_X_in,sin.use_Xi_in,sin.use_p_in,sin.verifyInputs,sou.T,sou.T_in,sou.X[1],sou.X[2],sou.Xi_in[1],sou.m_flow,sou.m_flow_in,sou.nPorts,sou.ports[1].Xi_outflow[1],sou.ports[1].h_outflow,sou.ports[1].m_flow,sou.ports[1].p,sou.ports[2].Xi_outflow[1],sou.ports[2].h_outflow,sou.ports[2].m_flow,sou.ports[2].p,sou.use_C_in,sou.use_T_in,sou.use_X_in,sou.use_Xi_in,sou.use_m_flow_in,sou.verifyInputs,time