Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Sensors_Examples_SpecificEntropy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.SpecificEntropy,fileNamePrefix="Buildings_9_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.01012/0.01012, allocations: 103.4 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.002068/0.002068, allocations: 191.2 kB / 16.67 MB, free: 5.957 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.321/1.321, 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 9.1.3-maint.9.1.x/package.mo): time 2.134/2.134, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 64.14 kB / 0.9504 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8035/0.8058, allocations: 140.4 MB / 1.087 GB, free: 5.301 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.SpecificEntropy): time 0.1855/0.9913, allocations: 163.2 MB / 1.247 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.005736/0.9971, allocations: 4.572 MB / 1.251 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004363/0.9975, allocations: 7.938 kB / 1.251 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005043/0.9981, allocations: 131 kB / 1.251 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001444/0.9996, allocations: 0.5406 MB / 1.252 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00186/1.001, allocations: 0.7628 MB / 1.253 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0007642/1.002, allocations: 0.5768 MB / 1.253 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003936/1.003, allocations: 213.2 kB / 1.254 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/1.004, allocations: 470.2 kB / 1.254 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006345/1.004, allocations: 290.9 kB / 1.254 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.645e-05/1.004, allocations: 16 kB / 1.254 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001614/1.006, allocations: 1.005 MB / 1.255 GB, free: 2.035 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001129/1.006, allocations: 87.72 kB / 1.255 GB, free: 1.949 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001473/1.006, allocations: 123.4 kB / 1.255 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001175/1.007, allocations: 0.7207 MB / 1.256 GB, free: 1.105 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/1.007, allocations: 0 / 1.256 GB, free: 1.105 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.522e-06/1.007, allocations: 0 / 1.256 GB, free: 1.105 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.247e-06/1.007, allocations: 0 / 1.256 GB, free: 1.105 MB / 0.9825 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.001007/1.009, allocations: 0.5841 MB / 1.257 GB, free: 484 kB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/1.009, allocations: 12.03 kB / 1.257 GB, free: 472 kB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.824e-05/1.009, allocations: 50.48 kB / 1.257 GB, free: 412 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006643/1.009, allocations: 83.56 kB / 1.257 GB, free: 328 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004617/1.01, allocations: 299.4 kB / 1.257 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/1.01, allocations: 19.98 kB / 1.257 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.493e-05/1.01, allocations: 16 kB / 1.257 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004752/1.01, allocations: 283.4 kB / 1.257 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/1.01, allocations: 0 / 1.257 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/1.01, allocations: 15.94 kB / 1.257 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/1.01, allocations: 4 kB / 1.257 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004114/1.011, allocations: 211.7 kB / 1.258 GB, free: 15.42 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/1.012, allocations: 1.238 MB / 1.259 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/1.013, allocations: 173 kB / 1.259 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/1.013, allocations: 120.3 kB / 1.259 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007043/1.014, allocations: 331.2 kB / 1.259 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/1.014, allocations: 42.56 kB / 1.26 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 2.765e-06/1.014, allocations: 0 / 1.26 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13): time 0.0007436/1.014, allocations: 273.1 kB / 1.26 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.747e-05/1.014, allocations: 158.2 kB / 1.26 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002699/1.015, allocations: 291.5 kB / 1.26 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/1.015, allocations: 33.7 kB / 1.26 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/1.015, allocations: 143.9 kB / 1.26 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.999e-05/1.015, allocations: 43.3 kB / 1.26 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.752e-05/1.015, allocations: 49.61 kB / 1.26 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001143/1.015, allocations: 338.8 kB / 1.261 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/1.015, allocations: 67.94 kB / 1.261 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/1.015, allocations: 140.5 kB / 1.261 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/1.016, allocations: 211.5 kB / 1.261 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/1.016, allocations: 0 / 1.261 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005175/1.016, allocations: 249.1 kB / 1.261 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/1.016, allocations: 8 kB / 1.261 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/1.016, allocations: 3.984 kB / 1.261 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/1.016, allocations: 4 kB / 1.261 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/1.017, allocations: 35.92 kB / 1.261 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/1.017, allocations: 4 kB / 1.261 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/1.017, allocations: 39.92 kB / 1.262 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/1.017, allocations: 8 kB / 1.262 GB, free: 11.13 MB / 0.9981 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.0001378/1.017, allocations: 158.2 kB / 1.262 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/1.017, allocations: 27.72 kB / 1.262 GB, free: 10.94 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004507/1.018, allocations: 186.2 kB / 1.262 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/1.018, allocations: 0 / 1.262 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/1.018, allocations: 7.984 kB / 1.262 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/1.018, allocations: 3.938 kB / 1.262 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009757/1.019, allocations: 0.8472 MB / 1.263 GB, free: 9.809 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/1.019, allocations: 4 kB / 1.263 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/1.019, allocations: 27.86 kB / 1.263 GB, free: 9.777 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/1.019, allocations: 8.094 kB / 1.263 GB, free: 9.77 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/1.019, allocations: 4 kB / 1.263 GB, free: 9.766 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/1.019, allocations: 4 kB / 1.263 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.019, allocations: 0 / 1.263 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005436/1.019, allocations: 343.5 kB / 1.263 GB, free: 9.395 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.743e-05/1.019, allocations: 112.7 kB / 1.263 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/1.02, allocations: 12 kB / 1.263 GB, free: 9.254 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/1.02, allocations: 7.984 kB / 1.263 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/1.02, allocations: 15.92 kB / 1.263 GB, free: 9.23 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/1.02, allocations: 12.06 kB / 1.263 GB, free: 9.219 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000227/1.02, allocations: 229.9 kB / 1.263 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.11e-07/1.02, allocations: 0 / 1.263 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004672/1.02, allocations: 95.94 kB / 1.264 GB, free: 8.898 MB / 0.9981 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.001228/1.022, allocations: 0.9925 MB / 1.265 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003874/1.022, allocations: 147.8 kB / 1.265 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.022, allocations: 0 / 1.265 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/1.022, allocations: 68.52 kB / 1.265 GB, free: 7.664 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007513/1.023, allocations: 128.2 kB / 1.265 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/1.026, allocations: 2.763 MB / 1.268 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/1.027, allocations: 0.7597 MB / 1.268 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001915/1.027, allocations: 66.97 kB / 1.268 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/1.027, allocations: 79.41 kB / 1.268 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of SimCode: time 3.6e-07/1.027, allocations: 0 / 1.268 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/1.055, allocations: 8.716 MB / 1.277 GB, free: 11.14 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.85/8.905, allocations: 14.69 kB / 1.277 GB, free: 11.12 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_SpecificEntropy_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_SpecificEntropy.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.SpecificEntropy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_SpecificEntropy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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