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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: 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_9_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_9_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.001161/0.001161, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.00138/0.00138, allocations: 177.3 kB / 15.95 MB, free: 216 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.408/1.408, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.497/2.497, allocations: 390.2 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003762, allocations: 8 kB / 0.8145 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8108/0.8112, allocations: 142.3 MB / 0.9535 GB, free: 8.316 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.RelativeHumidity): time 0.1632/0.9744, allocations: 138.6 MB / 1.089 GB, free: 5.457 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003522/0.978, allocations: 1.55 MB / 1.09 GB, free: 3.902 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006506/0.9787, allocations: 11.94 kB / 1.09 GB, free: 3.891 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.9798, allocations: 167.2 kB / 1.09 GB, free: 3.727 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001641/0.9814, allocations: 351 kB / 1.091 GB, free: 3.383 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002421/0.9839, allocations: 496.9 kB / 1.091 GB, free: 2.902 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001131/0.985, allocations: 408.2 kB / 1.092 GB, free: 2.496 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006236/0.9857, allocations: 212.2 kB / 1.092 GB, free: 2.293 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.9868, allocations: 339 kB / 1.092 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003908/0.9872, allocations: 155.4 kB / 1.092 GB, free: 1.809 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.326e-05/0.9873, allocations: 15.94 kB / 1.092 GB, free: 1.793 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001339/0.9887, allocations: 415.3 kB / 1.093 GB, free: 1.387 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.9889, allocations: 87.77 kB / 1.093 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.989, allocations: 89.45 kB / 1.093 GB, free: 1.207 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007985/0.9898, allocations: 387.2 kB / 1.093 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.9899, allocations: 0 / 1.093 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.934e-06/0.9899, allocations: 0 / 1.093 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.587e-05/0.9899, allocations: 0 / 1.093 GB, free: 0.8281 MB / 0.8419 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.001266/0.9912, allocations: 0.6169 MB / 1.094 GB, free: 168 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.9912, allocations: 8.031 kB / 1.094 GB, free: 160 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006498/0.9919, allocations: 83.56 kB / 1.094 GB, free: 76 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005136/0.9924, allocations: 290.1 kB / 1.094 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.9924, allocations: 20.56 kB / 1.094 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-05/0.9925, allocations: 24 kB / 1.094 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000717/0.9932, allocations: 348.2 kB / 1.095 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.9933, allocations: 0 / 1.095 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.9933, allocations: 7.953 kB / 1.095 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.9933, allocations: 8 kB / 1.095 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007613/0.9941, allocations: 313.5 kB / 1.095 GB, free: 15.04 MB / 0.8575 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.001836/0.9959, allocations: 1.079 MB / 1.096 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009137/0.9968, allocations: 351.6 kB / 1.096 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004951/0.9974, allocations: 230.1 kB / 1.097 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.9974, allocations: 30.56 kB / 1.097 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=19): time 3.336e-06/0.9974, allocations: 0 / 1.097 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001258/0.9987, allocations: 463.4 kB / 1.097 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.9987, allocations: 63.36 kB / 1.097 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.999, allocations: 263 kB / 1.097 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.699e-05/0.9991, allocations: 29.7 kB / 1.097 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.9992, allocations: 172.1 kB / 1.098 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.106e-05/0.9993, allocations: 63.11 kB / 1.098 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.9993, allocations: 0 / 1.098 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.9994, allocations: 338.8 kB / 1.098 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003208/0.9997, allocations: 119.9 kB / 1.098 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003629/1, allocations: 188.2 kB / 1.098 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/1, allocations: 148.8 kB / 1.098 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/1, allocations: 0 / 1.098 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000767/1.001, allocations: 342.5 kB / 1.099 GB, free: 11 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/1.001, allocations: 8 kB / 1.099 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/1.001, allocations: 4.156 kB / 1.099 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/1.001, allocations: 4 kB / 1.099 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/1.002, allocations: 67.89 kB / 1.099 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/1.002, allocations: 4 kB / 1.099 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/1.002, allocations: 55.64 kB / 1.099 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/1.002, allocations: 15.98 kB / 1.099 GB, free: 10.84 MB / 0.8575 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.000164/1.002, allocations: 149.8 kB / 1.099 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.565e-05/1.002, allocations: 23.72 kB / 1.099 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007984/1.003, allocations: 359.5 kB / 1.099 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/1.003, allocations: 4 kB / 1.099 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/1.003, allocations: 0 / 1.099 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/1.003, allocations: 0 / 1.099 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/1.005, allocations: 0.9807 MB / 1.1 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/1.005, allocations: 4 kB / 1.1 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/1.005, allocations: 51.91 kB / 1.1 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/1.005, allocations: 4 kB / 1.1 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/1.005, allocations: 15.94 kB / 1.1 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/1.005, allocations: 4 kB / 1.1 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.005, allocations: 0 / 1.1 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/1.006, allocations: 0.682 MB / 1.101 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/1.007, allocations: 136.7 kB / 1.101 GB, free: 8.219 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.937e-05/1.007, allocations: 16.05 kB / 1.101 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002649/1.007, allocations: 31.97 kB / 1.101 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.612e-05/1.007, allocations: 15.98 kB / 1.101 GB, free: 8.156 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/1.007, allocations: 16 kB / 1.101 GB, free: 8.141 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001978/1.007, allocations: 189.9 kB / 1.101 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.41e-07/1.007, allocations: 0 / 1.101 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005422/1.008, allocations: 103.8 kB / 1.102 GB, free: 7.859 MB / 0.8575 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.0005121/1.008, allocations: 199.8 kB / 1.102 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007452/1.009, allocations: 286 kB / 1.102 GB, free: 7.383 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/1.009, allocations: 4 kB / 1.102 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003612/1.009, allocations: 160.3 kB / 1.102 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006937/1.01, allocations: 116.7 kB / 1.102 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/1.011, allocations: 0.7118 MB / 1.103 GB, free: 6.355 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/1.012, allocations: 0.7914 MB / 1.104 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002835/1.012, allocations: 66.23 kB / 1.104 GB, free: 5.469 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.836e-05/1.012, allocations: 27.38 kB / 1.104 GB, free: 5.441 MB / 0.8575 GB Notification: Performance of SimCode: time 4.91e-07/1.012, allocations: 0 / 1.104 GB, free: 5.441 MB / 0.8575 GB Notification: Performance of Templates: time 0.01098/1.023, allocations: 5.248 MB / 1.109 GB, free: 280 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity.makefile (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 & ./Buildings_9_Buildings.Fluid.Sensors.Examples.RelativeHumidity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../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,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