Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.SpecificEntropy,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_SpecificEntropy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.SpecificEntropy,fileNamePrefix="Buildings_10_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.009864/0.009864, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.002315/0.002315, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.594/2.594, allocations: 437.1 MB / 0.7105 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2925, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEntropy): time 0.8695/1.162, allocations: 163.2 MB / 1.326 GB, free: 6.508 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.007161/1.169, allocations: 4.586 MB / 1.33 GB, free: 3.254 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005489/1.17, allocations: 13.75 kB / 1.33 GB, free: 3.246 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0006362/1.171, allocations: 122 kB / 1.33 GB, free: 3.164 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.002284/1.173, allocations: 0.5546 MB / 1.331 GB, free: 2.875 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002629/1.176, allocations: 0.7885 MB / 1.332 GB, free: 2.484 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.001038/1.177, allocations: 0.5815 MB / 1.332 GB, free: 2.227 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005379/1.177, allocations: 216.5 kB / 1.332 GB, free: 2.133 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001537/1.179, allocations: 477 kB / 1.333 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007802/1.18, allocations: 293.3 kB / 1.333 GB, free: 1.801 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 7.382e-05/1.18, allocations: 17.5 kB / 1.333 GB, free: 1.801 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002497/1.182, allocations: 1.003 MB / 1.334 GB, free: 1.41 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0002059/1.182, allocations: 90.02 kB / 1.334 GB, free: 1.375 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0003013/1.183, allocations: 128.5 kB / 1.334 GB, free: 1.301 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002105/1.185, allocations: 0.7145 MB / 1.335 GB, free: 1.066 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/1.185, allocations: 1.406 kB / 1.335 GB, free: 1.066 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.134e-06/1.185, allocations: 0 / 1.335 GB, free: 1.066 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.321e-05/1.185, allocations: 0 / 1.335 GB, free: 1.066 MB / 1.014 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.001211/1.186, allocations: 0.593 MB / 1.335 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/1.186, allocations: 12.33 kB / 1.336 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.645e-05/1.186, allocations: 53.06 kB / 1.336 GB, free: 0.5078 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007389/1.187, allocations: 78.58 kB / 1.336 GB, free: 496 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000477/1.187, allocations: 301.4 kB / 1.336 GB, free: 236 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/1.187, allocations: 16.05 kB / 1.336 GB, free: 228 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.437e-05/1.188, allocations: 20.84 kB / 1.336 GB, free: 220 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005723/1.188, allocations: 284 kB / 1.336 GB, free: 56 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/1.188, allocations: 1.406 kB / 1.336 GB, free: 56 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/1.188, allocations: 5.5 kB / 1.336 GB, free: 52 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/1.188, allocations: 9.156 kB / 1.336 GB, free: 48 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005083/1.189, allocations: 207.8 kB / 1.336 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/1.191, allocations: 1.244 MB / 1.338 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003476/1.191, allocations: 170.1 kB / 1.338 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/1.191, allocations: 119.1 kB / 1.338 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000849/1.192, allocations: 329.8 kB / 1.338 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.88e-05/1.192, allocations: 40.12 kB / 1.338 GB, free: 14.43 MB / 1.029 GB Notification: Performance of pre-optimization done (n=13): time 1.703e-06/1.192, allocations: 1.844 kB / 1.338 GB, free: 14.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=13): time 0.0008919/1.193, allocations: 283.7 kB / 1.339 GB, free: 14.32 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/1.193, allocations: 163.5 kB / 1.339 GB, free: 14.13 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003935/1.194, allocations: 280.7 kB / 1.339 GB, free: 13.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.101e-05/1.194, allocations: 32.48 kB / 1.339 GB, free: 13.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/1.194, allocations: 148.1 kB / 1.339 GB, free: 13.82 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.066e-05/1.194, allocations: 48.2 kB / 1.339 GB, free: 13.78 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/1.194, allocations: 45.11 kB / 1.339 GB, free: 13.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001853/1.194, allocations: 345 kB / 1.34 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/1.195, allocations: 67.03 kB / 1.34 GB, free: 13.4 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002987/1.195, allocations: 151.5 kB / 1.34 GB, free: 13.29 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004508/1.195, allocations: 201.5 kB / 1.34 GB, free: 13.17 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/1.195, allocations: 3.781 kB / 1.34 GB, free: 13.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005863/1.196, allocations: 250 kB / 1.34 GB, free: 13.07 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/1.196, allocations: 5.844 kB / 1.34 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/1.196, allocations: 1.281 kB / 1.34 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/1.196, allocations: 4 kB / 1.34 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002031/1.196, allocations: 36.52 kB / 1.34 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/1.196, allocations: 6.156 kB / 1.34 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/1.196, allocations: 31.78 kB / 1.34 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.505e-05/1.197, allocations: 16.62 kB / 1.34 GB, free: 13.04 MB / 1.029 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.0001649/1.197, allocations: 144.9 kB / 1.34 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/1.197, allocations: 28.28 kB / 1.34 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005185/1.197, allocations: 190.1 kB / 1.341 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/1.197, allocations: 1.188 kB / 1.341 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/1.197, allocations: 1.469 kB / 1.341 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/1.197, allocations: 4.625 kB / 1.341 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001244/1.199, allocations: 0.8595 MB / 1.341 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/1.199, allocations: 1.406 kB / 1.342 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001393/1.199, allocations: 22.62 kB / 1.342 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.277e-05/1.199, allocations: 5.281 kB / 1.342 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/1.199, allocations: 8.531 kB / 1.342 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/1.199, allocations: 3 kB / 1.342 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/1.199, allocations: 5.375 kB / 1.342 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007196/1.2, allocations: 340.8 kB / 1.342 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/1.2, allocations: 120.1 kB / 1.342 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/1.2, allocations: 4.5 kB / 1.342 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/1.2, allocations: 7.891 kB / 1.342 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.347e-05/1.2, allocations: 10.81 kB / 1.342 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/1.2, allocations: 3.719 kB / 1.342 GB, free: 11.67 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003386/1.201, allocations: 235.1 kB / 1.342 GB, free: 11.54 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.074e-06/1.201, allocations: 0 / 1.342 GB, free: 11.54 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0007302/1.201, allocations: 97.78 kB / 1.342 GB, free: 11.52 MB / 1.029 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.001864/1.203, allocations: 0.9883 MB / 1.343 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004816/1.204, allocations: 146.2 kB / 1.343 GB, free: 10.69 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/1.204, allocations: 1.219 kB / 1.343 GB, free: 10.69 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001691/1.204, allocations: 60.16 kB / 1.343 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008262/1.205, allocations: 149.9 kB / 1.344 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004786/1.209, allocations: 2.758 MB / 1.346 GB, free: 8.723 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/1.21, allocations: 0.7573 MB / 1.347 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0002959/1.21, allocations: 61.2 kB / 1.347 GB, free: 8.004 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/1.21, allocations: 77.53 kB / 1.347 GB, free: 7.949 MB / 1.029 GB Notification: Performance of SimCode: time 9.72e-07/1.21, allocations: 3.938 kB / 1.347 GB, free: 7.945 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03524/1.246, allocations: 8.625 MB / 1.356 GB, free: 5.641 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.188/9.433, allocations: 10.28 kB / 1.356 GB, free: 5.633 MB / 1.029 GB (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.SpecificEntropy.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Sensors.Examples.SpecificEntropy_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Sensors_Examples_SpecificEntropy_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Sensors_Examples_SpecificEntropy.fmu > Buildings_10_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.SpecificEntropy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_SpecificEntropy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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