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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.005095/0.005096, allocations: 97.69 kB / 15.73 MB, free: 6.055 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.00115/0.00115, allocations: 198.4 kB / 16.68 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.342/1.342, 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.1.0-master/package.mo): time 2.635/2.635, allocations: 469.4 MB / 0.7422 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 68.11 kB / 1.064 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8698/0.8712, allocations: 159.1 MB / 1.22 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02848/0.8997, allocations: 23.23 MB / 1.242 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.008601/0.9084, allocations: 5.1 MB / 1.247 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.9096, allocations: 27.81 kB / 1.247 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.9107, allocations: 282.1 kB / 1.248 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002353/0.9131, allocations: 0.8358 MB / 1.249 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002169/0.9153, allocations: 0.7663 MB / 1.249 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00218/0.9175, allocations: 1.621 MB / 1.251 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009031/0.9184, allocations: 481.5 kB / 1.251 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001723/0.9202, allocations: 0.6349 MB / 1.252 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008425/0.921, allocations: 450 kB / 1.252 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001273/0.9212, allocations: 44 kB / 1.252 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.9224, allocations: 491.1 kB / 1.253 GB, free: 220 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002163/0.9227, allocations: 143.4 kB / 1.253 GB, free: 76 kB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004812/0.9232, allocations: 306.7 kB / 1.253 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00172/0.9249, allocations: 0.926 MB / 1.254 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.9249, allocations: 4 kB / 1.254 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.363e-06/0.9249, allocations: 0 / 1.254 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.294e-05/0.9249, allocations: 0 / 1.254 GB, free: 14.85 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.00164/0.9266, allocations: 0.9068 MB / 1.255 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.9266, allocations: 8.625 kB / 1.255 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.9268, allocations: 78.72 kB / 1.255 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.927, allocations: 72.5 kB / 1.255 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.9281, allocations: 0.5846 MB / 1.256 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.9282, allocations: 29 kB / 1.256 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.392e-05/0.9283, allocations: 36 kB / 1.256 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007246/0.929, allocations: 436.7 kB / 1.256 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.929, allocations: 7.891 kB / 1.256 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/0.9291, allocations: 16 kB / 1.256 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.9291, allocations: 12 kB / 1.256 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005384/0.9297, allocations: 303.8 kB / 1.257 GB, free: 12.26 MB / 0.9825 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.003072/0.9327, allocations: 1.916 MB / 1.259 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005565/0.9333, allocations: 258.7 kB / 1.259 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.9335, allocations: 120.8 kB / 1.259 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008914/0.9344, allocations: 0.8506 MB / 1.26 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.9345, allocations: 34.56 kB / 1.26 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=26): time 2.134e-06/0.9345, allocations: 0 / 1.26 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of matching and sorting (n=26): time 0.0008434/0.9353, allocations: 381 kB / 1.26 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.9354, allocations: 55.41 kB / 1.26 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005944/0.936, allocations: 482 kB / 1.261 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.634e-05/0.936, allocations: 29.7 kB / 1.261 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/0.9363, allocations: 264.5 kB / 1.261 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.08e-05/0.9364, allocations: 95.17 kB / 1.261 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.9365, allocations: 77.97 kB / 1.261 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.9366, allocations: 354.8 kB / 1.261 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.9368, allocations: 96.61 kB / 1.261 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.937, allocations: 172 kB / 1.262 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.9375, allocations: 286.6 kB / 1.262 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.9375, allocations: 0 / 1.262 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000663/0.9381, allocations: 369 kB / 1.262 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.9382, allocations: 8 kB / 1.262 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.9382, allocations: 4.219 kB / 1.262 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.9382, allocations: 7.938 kB / 1.262 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.9385, allocations: 71.89 kB / 1.262 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.9385, allocations: 4 kB / 1.262 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003225/0.9389, allocations: 39.73 kB / 1.262 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/0.9389, allocations: 12 kB / 1.262 GB, free: 5.895 MB / 0.9825 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.0002305/0.9392, allocations: 185.7 kB / 1.263 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.9393, allocations: 51.67 kB / 1.263 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008129/0.9401, allocations: 478.5 kB / 1.263 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.9401, allocations: 7.938 kB / 1.263 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.9401, allocations: 0 / 1.263 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005682/0.9407, allocations: 0.5762 MB / 1.264 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.9427, allocations: 1.152 MB / 1.265 GB, free: 3.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.9427, allocations: 8.031 kB / 1.265 GB, free: 3.277 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.9429, allocations: 47.92 kB / 1.265 GB, free: 3.23 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.943, allocations: 3.938 kB / 1.265 GB, free: 3.227 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/0.943, allocations: 15.98 kB / 1.265 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.943, allocations: 0 / 1.265 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/0.943, allocations: 4.047 kB / 1.265 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009392/0.944, allocations: 0.6758 MB / 1.266 GB, free: 2.496 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.9443, allocations: 180.6 kB / 1.266 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.844e-05/0.9444, allocations: 8 kB / 1.266 GB, free: 2.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.9447, allocations: 11.98 kB / 1.266 GB, free: 2.281 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.195e-05/0.9448, allocations: 31.91 kB / 1.266 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/0.9448, allocations: 15.98 kB / 1.266 GB, free: 2.234 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004543/0.9453, allocations: 346.9 kB / 1.266 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9453, allocations: 0 / 1.266 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0007425/0.946, allocations: 195.6 kB / 1.266 GB, free: 1.707 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.001917/0.948, allocations: 1.393 MB / 1.268 GB, free: 284 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005829/0.9486, allocations: 290.4 kB / 1.268 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.9486, allocations: 0 / 1.268 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002525/0.9488, allocations: 168.4 kB / 1.268 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/0.9506, allocations: 349.1 kB / 1.268 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006001/0.9566, allocations: 4.218 MB / 1.273 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.9571, allocations: 0.8627 MB / 1.273 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0004849/0.9576, allocations: 120.7 kB / 1.273 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.9579, allocations: 191.3 kB / 1.274 GB, free: 9.914 MB / 0.9981 GB Notification: Performance of SimCode: time 1.222e-06/0.958, allocations: 3.938 kB / 1.274 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04769/1.006, allocations: 17 MB / 1.29 GB, free: 9.184 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.794/9.8, allocations: 3.781 kB / 1.29 GB, free: 9.18 MB / 1.014 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 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.csv","/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