Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Fluid.Sensors.Examples.RelativeHumidity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|relHum.port_a.m_flow|relHum.phi|senRelHum.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity") translateModel(Buildings.Fluid.Sensors.Examples.RelativeHumidity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|relHum.port_a.m_flow|relHum.phi|senRelHum.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009348/0.0009348, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.0008911/0.0008911, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.494/2.494, allocations: 436.5 MB / 0.7104 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.0003349, allocations: 12 kB / 0.8708 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6284/0.6287, allocations: 153.7 MB / 1.021 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.RelativeHumidity): time 0.152/0.7808, allocations: 138.6 MB / 1.156 GB, free: 6.199 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002674/0.7835, allocations: 1.558 MB / 1.158 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002635/0.7837, allocations: 11.94 kB / 1.158 GB, free: 4.625 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0006243/0.7844, allocations: 175.2 kB / 1.158 GB, free: 4.453 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0009409/0.7853, allocations: 350.9 kB / 1.158 GB, free: 4.109 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.7867, allocations: 492.1 kB / 1.159 GB, free: 3.633 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005691/0.7873, allocations: 420.1 kB / 1.159 GB, free: 3.223 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003485/0.7877, allocations: 196.4 kB / 1.159 GB, free: 3.027 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006884/0.7884, allocations: 334.9 kB / 1.16 GB, free: 2.699 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/0.7886, allocations: 155.4 kB / 1.16 GB, free: 2.547 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.319e-05/0.7887, allocations: 12 kB / 1.16 GB, free: 2.535 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00089/0.7896, allocations: 419.3 kB / 1.16 GB, free: 2.125 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.7897, allocations: 95.7 kB / 1.16 GB, free: 2.031 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 7.846e-05/0.7898, allocations: 81.52 kB / 1.16 GB, free: 1.945 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005159/0.7903, allocations: 391.2 kB / 1.161 GB, free: 1.562 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.7903, allocations: 0 / 1.161 GB, free: 1.562 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.344e-06/0.7903, allocations: 0 / 1.161 GB, free: 1.562 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.7903, allocations: 0 / 1.161 GB, free: 1.562 MB / 0.9044 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.001009/0.7913, allocations: 0.6157 MB / 1.161 GB, free: 0.8984 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.7914, allocations: 15.98 kB / 1.161 GB, free: 0.8828 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005014/0.7919, allocations: 79.56 kB / 1.161 GB, free: 0.8047 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004278/0.7923, allocations: 294.1 kB / 1.162 GB, free: 488 kB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.7924, allocations: 20.52 kB / 1.162 GB, free: 464 kB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.7924, allocations: 20 kB / 1.162 GB, free: 444 kB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006515/0.7931, allocations: 348.2 kB / 1.162 GB, free: 84 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.7931, allocations: 7.938 kB / 1.162 GB, free: 76 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.7931, allocations: 8 kB / 1.162 GB, free: 68 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.7932, allocations: 8 kB / 1.162 GB, free: 60 kB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007849/0.7939, allocations: 309.5 kB / 1.162 GB, free: 15.75 MB / 0.92 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.001773/0.7957, allocations: 1.079 MB / 1.163 GB, free: 14.61 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.7967, allocations: 352 kB / 1.164 GB, free: 14.24 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000548/0.7973, allocations: 230.1 kB / 1.164 GB, free: 13.98 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.7974, allocations: 42.55 kB / 1.164 GB, free: 13.93 MB / 0.92 GB Notification: Performance of pre-optimization done (n=19): time 5.109e-06/0.7974, allocations: 0 / 1.164 GB, free: 13.93 MB / 0.92 GB Notification: Performance of matching and sorting (n=19): time 0.001337/0.7987, allocations: 451.1 kB / 1.164 GB, free: 13.48 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.7988, allocations: 55.41 kB / 1.164 GB, free: 13.41 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.7991, allocations: 270.9 kB / 1.165 GB, free: 13.14 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.7991, allocations: 29.7 kB / 1.165 GB, free: 13.11 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.7992, allocations: 172.2 kB / 1.165 GB, free: 12.94 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.218e-05/0.7993, allocations: 63.05 kB / 1.165 GB, free: 12.88 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.318e-05/0.7993, allocations: 4 kB / 1.165 GB, free: 12.87 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.7995, allocations: 338.8 kB / 1.165 GB, free: 12.53 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003135/0.7998, allocations: 115.9 kB / 1.165 GB, free: 12.42 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000358/0.8002, allocations: 182.7 kB / 1.166 GB, free: 12.21 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.8005, allocations: 139.8 kB / 1.166 GB, free: 12.08 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.8005, allocations: 0 / 1.166 GB, free: 12.08 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007572/0.8013, allocations: 350.9 kB / 1.166 GB, free: 11.73 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.8013, allocations: 8 kB / 1.166 GB, free: 11.72 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.8013, allocations: 0 / 1.166 GB, free: 11.72 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.8014, allocations: 4 kB / 1.166 GB, free: 11.72 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/0.8017, allocations: 72.05 kB / 1.166 GB, free: 11.65 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.8017, allocations: 4 kB / 1.166 GB, free: 11.64 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.802, allocations: 47.81 kB / 1.166 GB, free: 11.6 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.802, allocations: 11.98 kB / 1.166 GB, free: 11.59 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001551/0.8022, allocations: 157.7 kB / 1.166 GB, free: 11.42 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/0.8022, allocations: 31.58 kB / 1.166 GB, free: 11.39 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007916/0.803, allocations: 349.3 kB / 1.167 GB, free: 11.04 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.803, allocations: 4 kB / 1.167 GB, free: 11.04 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.803, allocations: 7.891 kB / 1.167 GB, free: 11.03 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.803, allocations: 0 / 1.167 GB, free: 11.03 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.8047, allocations: 0.9728 MB / 1.168 GB, free: 9.949 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.8048, allocations: 4 kB / 1.168 GB, free: 9.945 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.8051, allocations: 64.17 kB / 1.168 GB, free: 9.883 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.8051, allocations: 4 kB / 1.168 GB, free: 9.879 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.8051, allocations: 8 kB / 1.168 GB, free: 9.871 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.8051, allocations: 4 kB / 1.168 GB, free: 9.867 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8051, allocations: 0 / 1.168 GB, free: 9.867 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.8064, allocations: 0.6898 MB / 1.168 GB, free: 9.098 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.8065, allocations: 132.7 kB / 1.169 GB, free: 8.949 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.24e-05/0.8066, allocations: 7.984 kB / 1.169 GB, free: 8.941 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.8069, allocations: 40.03 kB / 1.169 GB, free: 8.902 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-05/0.807, allocations: 23.88 kB / 1.169 GB, free: 8.879 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.807, allocations: 8 kB / 1.169 GB, free: 8.871 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001856/0.8072, allocations: 197.9 kB / 1.169 GB, free: 8.676 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8072, allocations: 4 kB / 1.169 GB, free: 8.672 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004695/0.8077, allocations: 99.84 kB / 1.169 GB, free: 8.574 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004735/0.8081, allocations: 186.3 kB / 1.169 GB, free: 8.391 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0007772/0.8089, allocations: 275.7 kB / 1.169 GB, free: 8.121 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.8089, allocations: 384 / 1.169 GB, free: 8.121 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000375/0.8093, allocations: 159.8 kB / 1.169 GB, free: 7.965 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007025/0.81, allocations: 126 kB / 1.17 GB, free: 7.848 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.8112, allocations: 0.7235 MB / 1.17 GB, free: 7.078 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.8116, allocations: 0.7875 MB / 1.171 GB, free: 6.266 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0002492/0.8119, allocations: 66.23 kB / 1.171 GB, free: 6.203 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.328e-05/0.8119, allocations: 23.44 kB / 1.171 GB, free: 6.184 MB / 0.92 GB Notification: Performance of SimCode: time 4.1e-07/0.812, allocations: 0 / 1.171 GB, free: 6.184 MB / 0.92 GB Notification: Performance of Templates: time 0.009888/0.8218, allocations: 5.232 MB / 1.176 GB, free: 1.027 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.RelativeHumidity_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_RelativeHumidity.csv","../files/Buildings_latest_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,XHum.duration,XHum.height,XHum.offset,XHum.startTime,m_flow.duration,m_flow.height,m_flow.offset,m_flow.startTime,relHum.Xi_b[1],relHum.allowFlowReversal,relHum.dynamic,relHum.initType,relHum.m_flow_nominal,relHum.m_flow_small,relHum.phi,relHum.phi_start,relHum.port_a.Xi_outflow[1],relHum.port_a.m_flow,relHum.port_a.p,relHum.port_b.p,relHum.tau,relHum.tauInv,senRelHum.phi,senRelHum.port.p,sin.T,sin.T_in_internal,sin.X[1],sin.X[2],sin.Xi_in_internal[1],sin.flowDirection,sin.nPorts,sin.p,sin.ports[1].Xi_outflow[1],sin.ports[1].m_flow,sin.ports[1].p,sin.verifyInputs,sou.T,sou.X[1],sou.X[2],sou.flowDirection,sou.m_flow,sou.nPorts,sou.p_in_internal,sou.ports[1].p,sou.ports[2].p,sou.verifyInputs,time