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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter") translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001296/0.001296, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.79/2.79, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003112, allocations: 10.56 kB / 0.9021 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2634, allocations: 159.6 MB / 1.058 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02214/0.2856, allocations: 21.34 MB / 1.079 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.006512/0.2922, allocations: 4.775 MB / 1.084 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006038/0.2928, allocations: 23.81 kB / 1.084 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006841/0.2935, allocations: 198.7 kB / 1.084 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001677/0.2952, allocations: 0.6529 MB / 1.084 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001594/0.2968, allocations: 0.5853 MB / 1.085 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002219/0.299, allocations: 1.849 MB / 1.087 GB, free: 7.773 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007822/0.2998, allocations: 367.7 kB / 1.087 GB, free: 7.414 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.3009, allocations: 0.5134 MB / 1.088 GB, free: 6.898 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007729/0.3017, allocations: 414.2 kB / 1.088 GB, free: 6.492 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.3018, allocations: 20 kB / 1.088 GB, free: 6.473 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009149/0.3028, allocations: 307.3 kB / 1.088 GB, free: 6.172 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001867/0.303, allocations: 107.6 kB / 1.088 GB, free: 6.066 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002251/0.3032, allocations: 137.3 kB / 1.089 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008397/0.304, allocations: 0.6235 MB / 1.089 GB, free: 5.301 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3041, allocations: 0 / 1.089 GB, free: 5.301 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3041, allocations: 4 kB / 1.089 GB, free: 5.297 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.858e-05/0.3041, allocations: 0 / 1.089 GB, free: 5.297 MB / 0.8419 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.001331/0.3054, allocations: 0.7829 MB / 1.09 GB, free: 4.465 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.3055, allocations: 12.03 kB / 1.09 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002355/0.3057, allocations: 67.23 kB / 1.09 GB, free: 4.387 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.3067, allocations: 0.5406 MB / 1.091 GB, free: 3.805 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/0.3068, allocations: 29 kB / 1.091 GB, free: 3.777 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.967e-05/0.3068, allocations: 43.94 kB / 1.091 GB, free: 3.734 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007153/0.3076, allocations: 436.6 kB / 1.091 GB, free: 3.285 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.3076, allocations: 11.94 kB / 1.091 GB, free: 3.273 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/0.3076, allocations: 16 kB / 1.091 GB, free: 3.258 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.353e-05/0.3077, allocations: 8 kB / 1.091 GB, free: 3.25 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005213/0.3082, allocations: 299.8 kB / 1.091 GB, free: 2.957 MB / 0.8419 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.00271/0.3109, allocations: 1.935 MB / 1.093 GB, free: 0.8945 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004937/0.3114, allocations: 246.8 kB / 1.093 GB, free: 0.6445 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.3116, allocations: 128.7 kB / 1.094 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008105/0.3124, allocations: 0.8623 MB / 1.094 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.3125, allocations: 38.56 kB / 1.094 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.844e-06/0.3125, allocations: 0 / 1.094 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0006952/0.3132, allocations: 366.4 kB / 1.095 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.3132, allocations: 55.41 kB / 1.095 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005507/0.3138, allocations: 466 kB / 1.095 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.3138, allocations: 29.7 kB / 1.095 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.314, allocations: 260.1 kB / 1.096 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.546e-05/0.3141, allocations: 98.58 kB / 1.096 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.583e-05/0.3141, allocations: 4 kB / 1.096 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3143, allocations: 366.7 kB / 1.096 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.3145, allocations: 100.5 kB / 1.096 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.3147, allocations: 172 kB / 1.096 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.3149, allocations: 124.5 kB / 1.096 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3149, allocations: 0 / 1.096 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005695/0.3155, allocations: 364.8 kB / 1.097 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3155, allocations: 4 kB / 1.097 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3155, allocations: 4.219 kB / 1.097 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3155, allocations: 8 kB / 1.097 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.3158, allocations: 67.91 kB / 1.097 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.3158, allocations: 4 kB / 1.097 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000307/0.3162, allocations: 43.58 kB / 1.097 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.828e-05/0.3162, allocations: 15.98 kB / 1.097 GB, free: 12.84 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002306/0.3164, allocations: 190.3 kB / 1.097 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.99e-05/0.3165, allocations: 55.28 kB / 1.097 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008058/0.3174, allocations: 477 kB / 1.098 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/0.3174, allocations: 11.98 kB / 1.098 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3174, allocations: 0 / 1.098 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006849/0.3181, allocations: 0.5579 MB / 1.098 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.32, allocations: 1.157 MB / 1.099 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.32, allocations: 192 / 1.099 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.3203, allocations: 59.91 kB / 1.099 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.3203, allocations: 4 kB / 1.099 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/0.3203, allocations: 11.98 kB / 1.099 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.3203, allocations: 4 kB / 1.099 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3204, allocations: 4 kB / 1.099 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008402/0.3212, allocations: 0.6613 MB / 1.1 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.3214, allocations: 176.4 kB / 1.1 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.631e-05/0.3215, allocations: 11.98 kB / 1.1 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.3218, allocations: 27.92 kB / 1.1 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.3219, allocations: 23.88 kB / 1.1 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/0.3219, allocations: 19.98 kB / 1.1 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004058/0.3223, allocations: 334.8 kB / 1.101 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3223, allocations: 0 / 1.101 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006232/0.3229, allocations: 195.8 kB / 1.101 GB, free: 8.664 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000571/0.3235, allocations: 284.8 kB / 1.101 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004686/0.324, allocations: 275.8 kB / 1.101 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.324, allocations: 0 / 1.101 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002292/0.3242, allocations: 165.1 kB / 1.101 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.3257, allocations: 325.2 kB / 1.102 GB, free: 7.645 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.3275, allocations: 1.344 MB / 1.103 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.3279, allocations: 0.8669 MB / 1.104 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0004072/0.3283, allocations: 120.7 kB / 1.104 GB, free: 5.234 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.3285, allocations: 51.42 kB / 1.104 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.3285, allocations: 0 / 1.104 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of Templates: time 0.02059/0.3491, allocations: 11.16 MB / 1.115 GB, free: 10.2 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (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 & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches