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.0103/0.0103, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.002055/0.002055, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.521/1.521, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.73/2.73, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.91 kB / 1.054 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.324, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEntropy): time 0.9092/1.233, allocations: 163.2 MB / 1.367 GB, free: 4.055 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.006884/1.24, allocations: 4.571 MB / 1.371 GB, free: 0.8164 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006051/1.241, allocations: 10.84 kB / 1.371 GB, free: 0.8125 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0005922/1.241, allocations: 129.5 kB / 1.371 GB, free: 0.7227 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.001878/1.243, allocations: 0.5369 MB / 1.372 GB, free: 452 kB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.002384/1.246, allocations: 0.7809 MB / 1.373 GB, free: 52 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001011/1.247, allocations: 0.5761 MB / 1.373 GB, free: 15.8 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004656/1.247, allocations: 213.1 kB / 1.373 GB, free: 15.71 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001525/1.249, allocations: 463.1 kB / 1.374 GB, free: 15.51 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009202/1.25, allocations: 292.7 kB / 1.374 GB, free: 15.39 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 9.14e-05/1.25, allocations: 18 kB / 1.374 GB, free: 15.39 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002595/1.252, allocations: 0.9987 MB / 1.375 GB, free: 15 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001799/1.253, allocations: 93.38 kB / 1.375 GB, free: 14.96 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0002652/1.253, allocations: 128.4 kB / 1.375 GB, free: 14.89 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.002028/1.255, allocations: 0.715 MB / 1.376 GB, free: 14.5 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/1.255, allocations: 1.125 kB / 1.376 GB, free: 14.5 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.064e-06/1.255, allocations: 0 / 1.376 GB, free: 14.5 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.991e-05/1.255, allocations: 0 / 1.376 GB, free: 14.5 MB / 1.076 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.00142/1.256, allocations: 0.5883 MB / 1.377 GB, free: 13.96 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/1.257, allocations: 10.62 kB / 1.377 GB, free: 13.96 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.326e-05/1.257, allocations: 60.08 kB / 1.377 GB, free: 13.9 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008146/1.257, allocations: 79.44 kB / 1.377 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/1.258, allocations: 297.7 kB / 1.377 GB, free: 13.58 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/1.258, allocations: 12.31 kB / 1.377 GB, free: 13.58 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.278e-05/1.258, allocations: 25.12 kB / 1.377 GB, free: 13.57 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005314/1.259, allocations: 279.7 kB / 1.377 GB, free: 13.36 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/1.259, allocations: 3.984 kB / 1.377 GB, free: 13.36 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.866e-05/1.259, allocations: 10.3 kB / 1.377 GB, free: 13.35 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/1.259, allocations: 10.22 kB / 1.377 GB, free: 13.35 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004332/1.259, allocations: 208.6 kB / 1.377 GB, free: 13.25 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/1.261, allocations: 1.242 MB / 1.379 GB, free: 12.12 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/1.261, allocations: 175.5 kB / 1.379 GB, free: 11.95 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/1.261, allocations: 112.1 kB / 1.379 GB, free: 11.87 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000781/1.262, allocations: 332 kB / 1.379 GB, free: 11.55 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/1.262, allocations: 37.5 kB / 1.379 GB, free: 11.5 MB / 1.076 GB Notification: Performance of pre-optimization done (n=13): time 4.569e-06/1.262, allocations: 0 / 1.379 GB, free: 11.5 MB / 1.076 GB Notification: Performance of matching and sorting (n=13): time 0.0008555/1.263, allocations: 281 kB / 1.38 GB, free: 11.35 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.446e-05/1.263, allocations: 161.1 kB / 1.38 GB, free: 11.16 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003235/1.264, allocations: 287.6 kB / 1.38 GB, free: 10.97 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/1.264, allocations: 27.14 kB / 1.38 GB, free: 10.94 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/1.264, allocations: 149.1 kB / 1.38 GB, free: 10.8 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 5.084e-05/1.264, allocations: 44.73 kB / 1.38 GB, free: 10.76 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/1.264, allocations: 46.23 kB / 1.38 GB, free: 10.73 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001444/1.264, allocations: 340.9 kB / 1.381 GB, free: 10.39 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/1.264, allocations: 71.16 kB / 1.381 GB, free: 10.36 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/1.264, allocations: 149.3 kB / 1.381 GB, free: 10.23 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/1.265, allocations: 214.2 kB / 1.381 GB, free: 10.07 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/1.265, allocations: 1.219 kB / 1.381 GB, free: 10.07 MB / 1.076 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005615/1.265, allocations: 243 kB / 1.381 GB, free: 9.934 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/1.265, allocations: 6.406 kB / 1.381 GB, free: 9.934 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/1.265, allocations: 4.266 kB / 1.381 GB, free: 9.934 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/1.266, allocations: 3.25 kB / 1.381 GB, free: 9.934 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/1.266, allocations: 41.22 kB / 1.381 GB, free: 9.922 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/1.266, allocations: 7.594 kB / 1.381 GB, free: 9.918 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/1.266, allocations: 30.55 kB / 1.381 GB, free: 9.898 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/1.266, allocations: 12.75 kB / 1.381 GB, free: 9.895 MB / 1.076 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.0001583/1.266, allocations: 151.9 kB / 1.381 GB, free: 9.754 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/1.266, allocations: 24.09 kB / 1.382 GB, free: 9.742 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004953/1.267, allocations: 188.3 kB / 1.382 GB, free: 9.594 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/1.267, allocations: 3.469 kB / 1.382 GB, free: 9.594 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/1.267, allocations: 1.469 kB / 1.382 GB, free: 9.594 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/1.267, allocations: 1.5 kB / 1.382 GB, free: 9.594 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/1.268, allocations: 0.8589 MB / 1.383 GB, free: 8.785 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/1.268, allocations: 1.375 kB / 1.383 GB, free: 8.785 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001283/1.268, allocations: 34.17 kB / 1.383 GB, free: 8.77 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/1.268, allocations: 5.156 kB / 1.383 GB, free: 8.766 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/1.268, allocations: 3.344 kB / 1.383 GB, free: 8.766 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/1.268, allocations: 2.344 kB / 1.383 GB, free: 8.766 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/1.268, allocations: 5.047 kB / 1.383 GB, free: 8.762 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006178/1.269, allocations: 336.9 kB / 1.383 GB, free: 8.496 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/1.269, allocations: 119.6 kB / 1.383 GB, free: 8.371 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/1.269, allocations: 3.438 kB / 1.383 GB, free: 8.371 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/1.269, allocations: 8.5 kB / 1.383 GB, free: 8.367 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.344e-05/1.269, allocations: 20.77 kB / 1.383 GB, free: 8.352 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/1.269, allocations: 4.281 kB / 1.383 GB, free: 8.352 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.000304/1.27, allocations: 237.3 kB / 1.383 GB, free: 8.203 MB / 1.076 GB Notification: Performance of sort global known variables: time 2.094e-06/1.27, allocations: 0 / 1.383 GB, free: 8.203 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0006422/1.27, allocations: 91.86 kB / 1.383 GB, free: 8.188 MB / 1.076 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.001534/1.272, allocations: 0.985 MB / 1.384 GB, free: 7.34 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0005004/1.272, allocations: 150.6 kB / 1.384 GB, free: 7.273 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/1.272, allocations: 4.125 kB / 1.384 GB, free: 7.27 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001551/1.273, allocations: 54.56 kB / 1.385 GB, free: 7.25 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008438/1.273, allocations: 139.1 kB / 1.385 GB, free: 7.184 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00412/1.277, allocations: 2.774 MB / 1.387 GB, free: 5.039 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/1.278, allocations: 0.7551 MB / 1.388 GB, free: 4.309 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.000261/1.278, allocations: 65.95 kB / 1.388 GB, free: 4.277 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/1.278, allocations: 78.25 kB / 1.388 GB, free: 4.215 MB / 1.076 GB Notification: Performance of SimCode: time 1.352e-06/1.278, allocations: 0 / 1.388 GB, free: 4.215 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03077/1.309, allocations: 8.718 MB / 1.397 GB, free: 15.83 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.072/9.381, allocations: 14.08 kB / 1.397 GB, free: 15.82 MB / 1.092 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