Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.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.HeatMeter,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",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.005844/0.005844, allocations: 103.2 kB / 15.73 MB, free: 6.035 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.001265/0.001265, allocations: 194.6 kB / 16.68 MB, free: 5.953 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.702/2.702, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 64.12 kB / 1.054 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8753/0.8768, allocations: 157.4 MB / 1.207 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02904/0.9059, allocations: 23.24 MB / 1.23 GB, free: 6.176 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.008324/0.9143, allocations: 5.084 MB / 1.235 GB, free: 1.078 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001231/0.9155, allocations: 31.81 kB / 1.235 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.9166, allocations: 286.1 kB / 1.235 GB, free: 0.7656 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002979/0.9197, allocations: 0.8242 MB / 1.236 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002539/0.9223, allocations: 0.7738 MB / 1.237 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002861/0.9251, allocations: 1.617 MB / 1.238 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001028/0.9262, allocations: 481.5 kB / 1.239 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.9282, allocations: 0.6227 MB / 1.239 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.9292, allocations: 454 kB / 1.24 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.9294, allocations: 48 kB / 1.24 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.9311, allocations: 491.1 kB / 1.24 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003193/0.9314, allocations: 139.5 kB / 1.241 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0008034/0.9323, allocations: 310.5 kB / 1.241 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002597/0.9349, allocations: 0.923 MB / 1.242 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.9349, allocations: 0 / 1.242 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.875e-06/0.9349, allocations: 0 / 1.242 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.38e-05/0.9349, allocations: 0 / 1.242 GB, free: 10.11 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.002179/0.9371, allocations: 0.892 MB / 1.243 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.9372, allocations: 8.031 kB / 1.243 GB, free: 9.16 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.9373, allocations: 74.72 kB / 1.243 GB, free: 9.078 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002942/0.9376, allocations: 72.19 kB / 1.243 GB, free: 9.008 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.9388, allocations: 0.5686 MB / 1.243 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.9389, allocations: 29 kB / 1.243 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.884e-05/0.939, allocations: 40 kB / 1.243 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000851/0.9398, allocations: 448.7 kB / 1.244 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.9399, allocations: 0 / 1.244 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.298e-05/0.9399, allocations: 12 kB / 1.244 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/0.9399, allocations: 12 kB / 1.244 GB, free: 7.852 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006069/0.9406, allocations: 303.8 kB / 1.244 GB, free: 7.555 MB / 0.9669 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003045/0.9436, allocations: 1.923 MB / 1.246 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000565/0.9442, allocations: 266.7 kB / 1.246 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.9444, allocations: 128.7 kB / 1.246 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008971/0.9453, allocations: 0.8467 MB / 1.247 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.9453, allocations: 30.56 kB / 1.247 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=26): time 2.344e-06/0.9454, allocations: 0 / 1.247 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of matching and sorting (n=26): time 0.0007725/0.9461, allocations: 381.2 kB / 1.248 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.9462, allocations: 51.41 kB / 1.248 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006352/0.9468, allocations: 481.9 kB / 1.248 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.9469, allocations: 29.7 kB / 1.248 GB, free: 3.078 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002121/0.9471, allocations: 264 kB / 1.248 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.9472, allocations: 90.75 kB / 1.248 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.9474, allocations: 73.86 kB / 1.249 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000177/0.9475, allocations: 358.8 kB / 1.249 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.9477, allocations: 100.6 kB / 1.249 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002435/0.948, allocations: 168 kB / 1.249 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.9484, allocations: 291.2 kB / 1.249 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.9484, allocations: 0 / 1.249 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006407/0.9491, allocations: 353.1 kB / 1.25 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.9491, allocations: 14.19 kB / 1.25 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.9491, allocations: 0 / 1.25 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.9491, allocations: 7.938 kB / 1.25 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.9494, allocations: 75.84 kB / 1.25 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.9495, allocations: 11.97 kB / 1.25 GB, free: 1.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000295/0.9498, allocations: 39.53 kB / 1.25 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.145e-05/0.9498, allocations: 16 kB / 1.25 GB, free: 1.184 MB / 0.9669 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 (39): * Single equations (assignments): 39 * 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.0002222/0.95, allocations: 181.8 kB / 1.25 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.9502, allocations: 47.44 kB / 1.25 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008292/0.951, allocations: 466.6 kB / 1.251 GB, free: 500 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.951, allocations: 7.938 kB / 1.251 GB, free: 492 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.951, allocations: 4 kB / 1.251 GB, free: 488 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006609/0.9517, allocations: 0.5684 MB / 1.251 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.9536, allocations: 1.157 MB / 1.252 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.9536, allocations: 11.92 kB / 1.252 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.9538, allocations: 51.92 kB / 1.252 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.9539, allocations: 7.938 kB / 1.252 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.9539, allocations: 11.98 kB / 1.252 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.9539, allocations: 4 kB / 1.252 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.9539, allocations: 4 kB / 1.252 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000901/0.9548, allocations: 0.6717 MB / 1.253 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002352/0.9551, allocations: 172.4 kB / 1.253 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.695e-05/0.9551, allocations: 8 kB / 1.253 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.9554, allocations: 19.98 kB / 1.253 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.9555, allocations: 23.91 kB / 1.253 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.553e-05/0.9555, allocations: 16 kB / 1.253 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004382/0.956, allocations: 346.8 kB / 1.254 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.71e-07/0.956, allocations: 4 kB / 1.254 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006977/0.9567, allocations: 191.8 kB / 1.254 GB, free: 13.01 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * 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 (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001766/0.9585, allocations: 1.396 MB / 1.255 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005488/0.959, allocations: 296 kB / 1.255 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.959, allocations: 4.062 kB / 1.255 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.9593, allocations: 163.8 kB / 1.256 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.9608, allocations: 332.5 kB / 1.256 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005812/0.9666, allocations: 4.2 MB / 1.26 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000505/0.9671, allocations: 0.8666 MB / 1.261 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0004278/0.9676, allocations: 128.6 kB / 1.261 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003009/0.9679, allocations: 191.4 kB / 1.261 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of SimCode: time 1.383e-06/0.9679, allocations: 0 / 1.261 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04235/1.01, allocations: 16.98 MB / 1.278 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.118/10.13, allocations: 18.92 kB / 1.278 GB, free: 4.5 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches