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.01014/0.01014, allocations: 100.3 kB / 15.73 MB, free: 6.027 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.001914/0.001915, allocations: 187.2 kB / 16.67 MB, free: 5.965 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.733/2.733, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 68.11 kB / 1.054 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3144, allocations: 157.4 MB / 1.207 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEnthalpy): time 0.9284/1.243, allocations: 161.4 MB / 1.365 GB, free: 5.344 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.007181/1.25, allocations: 4.549 MB / 1.369 GB, free: 2.094 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005767/1.251, allocations: 11.22 kB / 1.369 GB, free: 2.09 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0006095/1.251, allocations: 125 kB / 1.369 GB, free: 2.004 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.001346/1.253, allocations: 334.1 kB / 1.37 GB, free: 1.824 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.00114/1.254, allocations: 274.1 kB / 1.37 GB, free: 1.695 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001249/1.255, allocations: 0.556 MB / 1.371 GB, free: 1.453 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000613/1.256, allocations: 221.3 kB / 1.371 GB, free: 1.355 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001555/1.257, allocations: 451.1 kB / 1.371 GB, free: 1.16 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004711/1.258, allocations: 186.8 kB / 1.371 GB, free: 1.086 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.801e-05/1.258, allocations: 19.16 kB / 1.371 GB, free: 1.082 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003267/1.258, allocations: 86.94 kB / 1.371 GB, free: 1.062 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001743/1.258, allocations: 89.59 kB / 1.372 GB, free: 1.023 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002535/1.259, allocations: 119.1 kB / 1.372 GB, free: 0.957 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000628/1.259, allocations: 298.2 kB / 1.372 GB, free: 0.8438 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/1.259, allocations: 2.484 kB / 1.372 GB, free: 0.8438 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.434e-06/1.259, allocations: 0 / 1.372 GB, free: 0.8438 MB / 1.061 GB Notification: Performance of Transformations before backend: time 2.184e-05/1.259, allocations: 1.125 kB / 1.372 GB, free: 0.8438 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.001377/1.261, allocations: 0.5374 MB / 1.372 GB, free: 376 kB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/1.261, allocations: 10.06 kB / 1.372 GB, free: 376 kB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.26e-05/1.261, allocations: 49.14 kB / 1.373 GB, free: 328 kB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/1.261, allocations: 32.66 kB / 1.373 GB, free: 308 kB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/1.262, allocations: 283.7 kB / 1.373 GB, free: 60 kB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.483e-05/1.262, allocations: 15.97 kB / 1.373 GB, free: 52 kB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.931e-05/1.262, allocations: 17.69 kB / 1.373 GB, free: 48 kB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006185/1.262, allocations: 263.3 kB / 1.373 GB, free: 15.87 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/1.262, allocations: 1.219 kB / 1.373 GB, free: 15.87 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/1.262, allocations: 14.12 kB / 1.373 GB, free: 15.86 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/1.262, allocations: 5.125 kB / 1.373 GB, free: 15.86 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000428/1.263, allocations: 144.1 kB / 1.373 GB, free: 15.82 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/1.265, allocations: 1.373 MB / 1.375 GB, free: 14.61 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/1.265, allocations: 185.4 kB / 1.375 GB, free: 14.43 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/1.265, allocations: 92.81 kB / 1.375 GB, free: 14.36 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003732/1.266, allocations: 119 kB / 1.375 GB, free: 14.27 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/1.266, allocations: 45.25 kB / 1.375 GB, free: 14.21 MB / 1.076 GB Notification: Performance of pre-optimization done (n=10): time 2.044e-06/1.266, allocations: 1.344 kB / 1.375 GB, free: 14.21 MB / 1.076 GB Notification: Performance of matching and sorting (n=10): time 0.0006954/1.266, allocations: 208.2 kB / 1.375 GB, free: 14.12 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/1.266, allocations: 187.3 kB / 1.375 GB, free: 13.9 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003677/1.267, allocations: 288.8 kB / 1.376 GB, free: 13.75 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/1.267, allocations: 27.08 kB / 1.376 GB, free: 13.71 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/1.267, allocations: 148.6 kB / 1.376 GB, free: 13.59 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.212e-05/1.267, allocations: 34.23 kB / 1.376 GB, free: 13.56 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.272e-05/1.267, allocations: 39.8 kB / 1.376 GB, free: 13.53 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001288/1.267, allocations: 332.3 kB / 1.376 GB, free: 13.21 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/1.267, allocations: 47.58 kB / 1.376 GB, free: 13.2 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/1.268, allocations: 115.8 kB / 1.376 GB, free: 13.11 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/1.268, allocations: 160.5 kB / 1.377 GB, free: 13 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/1.268, allocations: 1.094 kB / 1.377 GB, free: 13 MB / 1.076 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004595/1.268, allocations: 192.7 kB / 1.377 GB, free: 12.91 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/1.268, allocations: 9.438 kB / 1.377 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/1.268, allocations: 2.625 kB / 1.377 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/1.268, allocations: 9.219 kB / 1.377 GB, free: 12.9 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/1.269, allocations: 35.48 kB / 1.377 GB, free: 12.89 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/1.269, allocations: 2.656 kB / 1.377 GB, free: 12.89 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/1.269, allocations: 26.45 kB / 1.377 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/1.269, allocations: 8.906 kB / 1.377 GB, free: 12.88 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.0001899/1.269, allocations: 151.2 kB / 1.377 GB, free: 12.75 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/1.269, allocations: 28.41 kB / 1.377 GB, free: 12.73 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003907/1.27, allocations: 134.4 kB / 1.377 GB, free: 12.65 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.445e-06/1.27, allocations: 2.844 kB / 1.377 GB, free: 12.65 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/1.27, allocations: 1.906 kB / 1.377 GB, free: 12.65 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/1.27, allocations: 2.188 kB / 1.377 GB, free: 12.65 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/1.271, allocations: 0.7699 MB / 1.378 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/1.271, allocations: 1.375 kB / 1.378 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/1.271, allocations: 30.23 kB / 1.378 GB, free: 11.94 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/1.271, allocations: 2.156 kB / 1.378 GB, free: 11.94 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/1.271, allocations: 2.25 kB / 1.378 GB, free: 11.94 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/1.271, allocations: 2.156 kB / 1.378 GB, free: 11.94 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.271, allocations: 6.281 kB / 1.378 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006823/1.272, allocations: 346.3 kB / 1.378 GB, free: 11.68 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/1.272, allocations: 112.5 kB / 1.378 GB, free: 11.56 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.103e-05/1.272, allocations: 3.969 kB / 1.378 GB, free: 11.56 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/1.272, allocations: 13.3 kB / 1.378 GB, free: 11.55 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.392e-05/1.272, allocations: 11.8 kB / 1.378 GB, free: 11.54 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/1.272, allocations: 4.688 kB / 1.378 GB, free: 11.54 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.000238/1.273, allocations: 213.6 kB / 1.379 GB, free: 11.41 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.7e-07/1.273, allocations: 0 / 1.379 GB, free: 11.41 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004256/1.273, allocations: 57.34 kB / 1.379 GB, free: 11.39 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.001076/1.274, allocations: 0.9068 MB / 1.38 GB, free: 10.58 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004259/1.274, allocations: 123.8 kB / 1.38 GB, free: 10.53 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.274, allocations: 1.094 kB / 1.38 GB, free: 10.53 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001578/1.275, allocations: 61.55 kB / 1.38 GB, free: 10.5 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008629/1.276, allocations: 140.3 kB / 1.38 GB, free: 10.43 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003795/1.279, allocations: 2.594 MB / 1.382 GB, free: 8.395 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/1.28, allocations: 0.7545 MB / 1.383 GB, free: 7.664 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0002204/1.28, allocations: 58.95 kB / 1.383 GB, free: 7.637 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/1.28, allocations: 73.23 kB / 1.383 GB, free: 7.578 MB / 1.076 GB Notification: Performance of SimCode: time 1.273e-06/1.28, allocations: 0 / 1.383 GB, free: 7.578 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.032/1.312, allocations: 6.967 MB / 1.39 GB, free: 4.094 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.258/9.57, allocations: 5.656 kB / 1.39 GB, free: 4.094 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