Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.SpecificEnthalpy,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_SpecificEnthalpy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.SpecificEnthalpy,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_SpecificEnthalpy",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.01041/0.01041, allocations: 103.6 kB / 15.73 MB, free: 6.445 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.001877/0.001877, allocations: 190.6 kB / 16.67 MB, free: 6.355 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.756/2.756, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 64.09 kB / 1.054 GB, free: 7.625 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3166, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEnthalpy): time 0.906/1.223, allocations: 161.4 MB / 1.365 GB, free: 5.383 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.006132/1.229, allocations: 4.555 MB / 1.369 GB, free: 2.129 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005292/1.229, allocations: 14.97 kB / 1.369 GB, free: 2.121 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000601/1.23, allocations: 119.1 kB / 1.369 GB, free: 2.039 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.001268/1.231, allocations: 332.3 kB / 1.37 GB, free: 1.863 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001013/1.232, allocations: 285.4 kB / 1.37 GB, free: 1.723 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000937/1.233, allocations: 0.5567 MB / 1.371 GB, free: 1.48 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00049/1.234, allocations: 207.5 kB / 1.371 GB, free: 1.395 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001287/1.235, allocations: 462.6 kB / 1.371 GB, free: 1.191 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004357/1.236, allocations: 183.5 kB / 1.371 GB, free: 1.117 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.949e-05/1.236, allocations: 16.69 kB / 1.371 GB, free: 1.117 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002579/1.236, allocations: 85.67 kB / 1.371 GB, free: 1.098 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001341/1.236, allocations: 96.25 kB / 1.372 GB, free: 1.055 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001716/1.236, allocations: 117.1 kB / 1.372 GB, free: 0.9883 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004711/1.237, allocations: 290.9 kB / 1.372 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/1.237, allocations: 7.219 kB / 1.372 GB, free: 0.875 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.613e-06/1.237, allocations: 4 kB / 1.372 GB, free: 0.8711 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.351e-05/1.237, allocations: 0 / 1.372 GB, free: 0.8711 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001022/1.238, allocations: 0.5303 MB / 1.372 GB, free: 412 kB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/1.238, allocations: 11.16 kB / 1.373 GB, free: 412 kB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.508e-05/1.238, allocations: 52.64 kB / 1.373 GB, free: 360 kB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.114e-05/1.238, allocations: 32.88 kB / 1.373 GB, free: 340 kB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004691/1.238, allocations: 283.5 kB / 1.373 GB, free: 92 kB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/1.238, allocations: 11.59 kB / 1.373 GB, free: 88 kB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.082e-05/1.239, allocations: 20.97 kB / 1.373 GB, free: 80 kB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/1.239, allocations: 264.8 kB / 1.373 GB, free: 15.9 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/1.239, allocations: 0 / 1.373 GB, free: 15.9 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/1.239, allocations: 10.88 kB / 1.373 GB, free: 15.89 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/1.239, allocations: 8.688 kB / 1.373 GB, free: 15.89 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003555/1.239, allocations: 151.5 kB / 1.373 GB, free: 15.84 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/1.241, allocations: 1.366 MB / 1.375 GB, free: 14.64 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/1.241, allocations: 184.2 kB / 1.375 GB, free: 14.46 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/1.241, allocations: 98.81 kB / 1.375 GB, free: 14.39 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003661/1.242, allocations: 118.9 kB / 1.375 GB, free: 14.29 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/1.242, allocations: 49.38 kB / 1.375 GB, free: 14.24 MB / 1.076 GB Notification: Performance of pre-optimization done (n=10): time 2.224e-06/1.242, allocations: 0 / 1.375 GB, free: 14.24 MB / 1.076 GB Notification: Performance of matching and sorting (n=10): time 0.0006514/1.242, allocations: 201.8 kB / 1.375 GB, free: 14.16 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/1.243, allocations: 190.7 kB / 1.375 GB, free: 13.93 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/1.243, allocations: 288.7 kB / 1.376 GB, free: 13.77 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/1.243, allocations: 31.17 kB / 1.376 GB, free: 13.74 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/1.243, allocations: 142.4 kB / 1.376 GB, free: 13.61 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.325e-05/1.243, allocations: 37.25 kB / 1.376 GB, free: 13.59 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.386e-05/1.243, allocations: 33.94 kB / 1.376 GB, free: 13.56 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001188/1.243, allocations: 335.9 kB / 1.376 GB, free: 13.24 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/1.243, allocations: 54.77 kB / 1.376 GB, free: 13.22 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/1.244, allocations: 111.7 kB / 1.376 GB, free: 13.13 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002917/1.244, allocations: 156.4 kB / 1.377 GB, free: 13.03 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/1.244, allocations: 0 / 1.377 GB, free: 13.03 MB / 1.076 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003942/1.244, allocations: 195.8 kB / 1.377 GB, free: 12.94 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/1.244, allocations: 10.75 kB / 1.377 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/1.244, allocations: 2.375 kB / 1.377 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/1.244, allocations: 2.438 kB / 1.377 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/1.244, allocations: 29.66 kB / 1.377 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/1.244, allocations: 6.812 kB / 1.377 GB, free: 12.93 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/1.245, allocations: 35.42 kB / 1.377 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/1.245, allocations: 7.281 kB / 1.377 GB, free: 12.91 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (15): * Single equations (assignments): 15 * 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.0001458/1.245, allocations: 149.1 kB / 1.377 GB, free: 12.78 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/1.245, allocations: 28.31 kB / 1.377 GB, free: 12.76 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003541/1.245, allocations: 127.1 kB / 1.377 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/1.245, allocations: 2.156 kB / 1.377 GB, free: 12.69 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/1.245, allocations: 8.375 kB / 1.377 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/1.245, allocations: 3.625 kB / 1.377 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008813/1.246, allocations: 0.7698 MB / 1.378 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/1.246, allocations: 1.531 kB / 1.378 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/1.246, allocations: 29.77 kB / 1.378 GB, free: 11.94 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/1.246, allocations: 2.25 kB / 1.378 GB, free: 11.94 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/1.246, allocations: 6.75 kB / 1.378 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/1.247, allocations: 5.297 kB / 1.378 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/1.247, allocations: 1.594 kB / 1.378 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005471/1.247, allocations: 336.9 kB / 1.378 GB, free: 11.66 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/1.247, allocations: 116 kB / 1.378 GB, free: 11.54 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/1.247, allocations: 2.688 kB / 1.378 GB, free: 11.54 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/1.247, allocations: 8.328 kB / 1.378 GB, free: 11.54 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/1.247, allocations: 24.94 kB / 1.378 GB, free: 11.52 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/1.247, allocations: 3.844 kB / 1.378 GB, free: 11.52 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001993/1.248, allocations: 209.5 kB / 1.379 GB, free: 11.39 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.4e-07/1.248, allocations: 0 / 1.379 GB, free: 11.39 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000387/1.248, allocations: 60.98 kB / 1.379 GB, free: 11.37 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (senStr.h_out) * 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 (10): * Single equations (assignments): 10 * 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.001031/1.249, allocations: 0.9071 MB / 1.38 GB, free: 10.56 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003889/1.249, allocations: 123 kB / 1.38 GB, free: 10.51 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/1.25, allocations: 1.375 kB / 1.38 GB, free: 10.51 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001561/1.25, allocations: 57.28 kB / 1.38 GB, free: 10.48 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007971/1.25, allocations: 132.5 kB / 1.38 GB, free: 10.42 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003525/1.254, allocations: 2.605 MB / 1.382 GB, free: 8.379 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/1.254, allocations: 0.7539 MB / 1.383 GB, free: 7.648 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001932/1.255, allocations: 51.66 kB / 1.383 GB, free: 7.629 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/1.255, allocations: 64.8 kB / 1.383 GB, free: 7.578 MB / 1.076 GB Notification: Performance of SimCode: time 1.242e-06/1.255, allocations: 1.594 kB / 1.383 GB, free: 7.578 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0268/1.282, allocations: 6.975 MB / 1.39 GB, free: 4.082 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.978/9.259, allocations: 5.891 kB / 1.39 GB, free: 4.078 MB / 1.076 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_SpecificEnthalpy_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_SpecificEnthalpy.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_SpecificEnthalpy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,senStr.port_a.m_flow,senStr.h_out,senFloSou.h_out Variables in the result:der(senStr.h_out),ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,senFloSou.h_out,senFloSou.port.Xi_outflow[1],senFloSou.port.h_outflow,senFloSou.port.m_flow,senFloSou.port.p,senFloSou.warnAboutOnePortConnection,senStr.allowFlowReversal,senStr.h_out,senStr.h_out_start,senStr.initType,senStr.m_flow_nominal,senStr.m_flow_small,senStr.port_a.Xi_outflow[1],senStr.port_a.h_outflow,senStr.port_a.m_flow,senStr.port_a.p,senStr.port_b.Xi_outflow[1],senStr.port_b.h_outflow,senStr.port_b.m_flow,senStr.port_b.p,senStr.tau,sin.X[1],sin.X[2],sin.h,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_X_in,sin.use_Xi_in,sin.use_h_in,sin.use_p_in,sin.verifyInputs,sou.X[1],sou.X[2],sou.h,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_X_in,sou.use_Xi_in,sou.use_h_in,sou.use_m_flow_in,sou.verifyInputs,time