Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.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.SpecificEntropy,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_SpecificEntropy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.SpecificEntropy,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_SpecificEntropy",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.006782/0.006782, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001381/0.001381, allocations: 197.4 kB / 16.67 MB, free: 5.961 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.528/2.528, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 67.89 kB / 1.054 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8054/0.8068, allocations: 157.4 MB / 1.207 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEntropy): time 0.1768/0.9837, allocations: 163.2 MB / 1.367 GB, free: 9.664 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.006085/0.9898, allocations: 4.582 MB / 1.371 GB, free: 5.074 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000497/0.9904, allocations: 7.938 kB / 1.371 GB, free: 5.066 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.000576/0.991, allocations: 123.1 kB / 1.371 GB, free: 4.945 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.001665/0.9927, allocations: 0.5406 MB / 1.372 GB, free: 4.402 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.002203/0.9949, allocations: 0.7662 MB / 1.373 GB, free: 3.637 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.0007817/0.9957, allocations: 0.5729 MB / 1.373 GB, free: 3.062 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004201/0.9961, allocations: 221.2 kB / 1.373 GB, free: 2.844 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.9972, allocations: 466.2 kB / 1.374 GB, free: 2.387 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006813/0.9979, allocations: 294.9 kB / 1.374 GB, free: 2.098 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 5.184e-05/0.998, allocations: 16 kB / 1.374 GB, free: 2.082 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001773/0.9998, allocations: 1.002 MB / 1.375 GB, free: 1.078 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.9999, allocations: 91.77 kB / 1.375 GB, free: 0.9883 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0001592/1, allocations: 127.3 kB / 1.375 GB, free: 0.8633 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.001302/1.001, allocations: 0.713 MB / 1.376 GB, free: 152 kB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/1.001, allocations: 0 / 1.376 GB, free: 152 kB / 1.092 GB Notification: Performance of FrontEnd: time 1.674e-06/1.001, allocations: 0 / 1.376 GB, free: 152 kB / 1.092 GB Notification: Performance of Transformations before backend: time 1.848e-05/1.001, allocations: 4 kB / 1.376 GB, free: 148 kB / 1.092 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001104/1.003, allocations: 0.5957 MB / 1.377 GB, free: 15.5 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 6.669e-05/1.003, allocations: 15.97 kB / 1.377 GB, free: 15.48 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.719e-05/1.003, allocations: 50.55 kB / 1.377 GB, free: 15.43 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006963/1.003, allocations: 79.5 kB / 1.377 GB, free: 15.35 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005108/1.004, allocations: 303.3 kB / 1.377 GB, free: 15.01 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/1.004, allocations: 12 kB / 1.377 GB, free: 15 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.572e-05/1.004, allocations: 24 kB / 1.377 GB, free: 14.98 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005391/1.005, allocations: 279.5 kB / 1.377 GB, free: 14.68 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/1.005, allocations: 3.938 kB / 1.377 GB, free: 14.67 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/1.005, allocations: 11.94 kB / 1.377 GB, free: 14.66 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/1.005, allocations: 4 kB / 1.377 GB, free: 14.66 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/1.005, allocations: 203.8 kB / 1.377 GB, free: 14.46 MB / 1.107 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/1.007, allocations: 1.245 MB / 1.379 GB, free: 13.13 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/1.007, allocations: 177 kB / 1.379 GB, free: 12.91 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/1.007, allocations: 112.2 kB / 1.379 GB, free: 12.79 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007783/1.008, allocations: 331.3 kB / 1.379 GB, free: 12.41 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/1.008, allocations: 38.56 kB / 1.379 GB, free: 12.36 MB / 1.107 GB Notification: Performance of pre-optimization done (n=13): time 1.583e-06/1.008, allocations: 0 / 1.379 GB, free: 12.36 MB / 1.107 GB Notification: Performance of matching and sorting (n=13): time 0.0007999/1.009, allocations: 281.5 kB / 1.38 GB, free: 12.08 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.889e-05/1.009, allocations: 158.2 kB / 1.38 GB, free: 11.89 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/1.009, allocations: 283 kB / 1.38 GB, free: 11.6 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/1.01, allocations: 29.7 kB / 1.38 GB, free: 11.57 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.000108/1.01, allocations: 147.8 kB / 1.38 GB, free: 11.42 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/1.01, allocations: 51.38 kB / 1.38 GB, free: 11.37 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.695e-05/1.01, allocations: 45.61 kB / 1.38 GB, free: 11.32 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001229/1.01, allocations: 338.8 kB / 1.381 GB, free: 10.98 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/1.01, allocations: 67.94 kB / 1.381 GB, free: 10.91 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/1.01, allocations: 150.3 kB / 1.381 GB, free: 10.73 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004032/1.011, allocations: 211.5 kB / 1.381 GB, free: 10.5 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/1.011, allocations: 0 / 1.381 GB, free: 10.5 MB / 1.107 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00057/1.011, allocations: 237.1 kB / 1.381 GB, free: 10.26 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/1.011, allocations: 12.56 kB / 1.381 GB, free: 10.25 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/1.011, allocations: 4 kB / 1.381 GB, free: 10.25 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/1.011, allocations: 4 kB / 1.381 GB, free: 10.24 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/1.012, allocations: 43.91 kB / 1.381 GB, free: 10.2 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.968e-06/1.012, allocations: 7.938 kB / 1.381 GB, free: 10.19 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/1.012, allocations: 31.67 kB / 1.381 GB, free: 10.16 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/1.012, allocations: 12 kB / 1.381 GB, free: 10.15 MB / 1.107 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (18): * Single equations (assignments): 18 * 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.000146/1.012, allocations: 153.7 kB / 1.382 GB, free: 9.988 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/1.012, allocations: 27.72 kB / 1.382 GB, free: 9.961 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004847/1.013, allocations: 181.8 kB / 1.382 GB, free: 9.762 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/1.013, allocations: 0 / 1.382 GB, free: 9.762 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/1.013, allocations: 4 kB / 1.382 GB, free: 9.758 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/1.013, allocations: 3.938 kB / 1.382 GB, free: 9.754 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000982/1.014, allocations: 0.8589 MB / 1.383 GB, free: 8.82 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/1.014, allocations: 0 / 1.383 GB, free: 8.82 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/1.014, allocations: 23.92 kB / 1.383 GB, free: 8.797 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/1.014, allocations: 4 kB / 1.383 GB, free: 8.793 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/1.014, allocations: 7.938 kB / 1.383 GB, free: 8.785 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/1.014, allocations: 4 kB / 1.383 GB, free: 8.781 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/1.014, allocations: 0 / 1.383 GB, free: 8.781 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005697/1.014, allocations: 335.5 kB / 1.383 GB, free: 8.422 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/1.015, allocations: 124.7 kB / 1.383 GB, free: 8.281 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.805e-05/1.015, allocations: 4.062 kB / 1.383 GB, free: 8.277 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/1.015, allocations: 4 kB / 1.383 GB, free: 8.273 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/1.015, allocations: 15.98 kB / 1.383 GB, free: 8.258 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/1.015, allocations: 4 kB / 1.383 GB, free: 8.254 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.0002269/1.015, allocations: 233.9 kB / 1.383 GB, free: 8.031 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.4e-07/1.015, allocations: 4 kB / 1.383 GB, free: 8.027 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.0004734/1.016, allocations: 95.92 kB / 1.383 GB, free: 7.934 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (senStr.s) * 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.001375/1.017, allocations: 1.002 MB / 1.384 GB, free: 6.898 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.0004477/1.017, allocations: 147.8 kB / 1.384 GB, free: 6.754 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/1.017, allocations: 0 / 1.384 GB, free: 6.754 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0001536/1.018, allocations: 63.84 kB / 1.385 GB, free: 6.691 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008216/1.018, allocations: 133.5 kB / 1.385 GB, free: 6.562 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003523/1.022, allocations: 2.756 MB / 1.387 GB, free: 3.652 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/1.022, allocations: 0.7558 MB / 1.388 GB, free: 2.871 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0002023/1.023, allocations: 67.02 kB / 1.388 GB, free: 2.809 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/1.023, allocations: 79.41 kB / 1.388 GB, free: 2.73 MB / 1.107 GB Notification: Performance of SimCode: time 5.51e-07/1.023, allocations: 0 / 1.388 GB, free: 2.73 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02701/1.05, allocations: 8.729 MB / 1.397 GB, free: 10.17 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.178/9.228, allocations: 6.141 kB / 1.397 GB, free: 10.16 MB / 1.123 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_SpecificEntropy_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_SpecificEntropy.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_SpecificEntropy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEntropy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,senStr.port_a.m_flow,senStr.s,senFloSou.s Variables in the result:der(senStr.s),ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,senFloSou.port.Xi_outflow[1],senFloSou.port.h_outflow,senFloSou.port.m_flow,senFloSou.port.p,senFloSou.s,senFloSou.warnAboutOnePortConnection,senStr.allowFlowReversal,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.s,senStr.s_start,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