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: 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.007267/0.007267, allocations: 102.4 kB / 15.73 MB, free: 6.031 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.001743/0.001743, allocations: 198.1 kB / 16.67 MB, free: 5.969 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.497/1.497, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.689/2.689, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.91 kB / 1.054 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3507, allocations: 157.4 MB / 1.208 GB, free: 9.574 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02711/0.3779, allocations: 23.24 MB / 1.23 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.009257/0.3872, allocations: 5.096 MB / 1.235 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009578/0.3882, allocations: 27.81 kB / 1.235 GB, free: 13.1 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.000858/0.3891, allocations: 274.1 kB / 1.236 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001973/0.3911, allocations: 0.7851 MB / 1.236 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.3929, allocations: 0.7626 MB / 1.237 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001618/0.3945, allocations: 1.613 MB / 1.239 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005805/0.3951, allocations: 493.5 kB / 1.239 GB, free: 9.184 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001257/0.3964, allocations: 0.6329 MB / 1.24 GB, free: 8.551 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005483/0.397, allocations: 454 kB / 1.24 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.579e-05/0.397, allocations: 47.94 kB / 1.24 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008499/0.3979, allocations: 495.1 kB / 1.241 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.398, allocations: 135.6 kB / 1.241 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.3983, allocations: 310.5 kB / 1.241 GB, free: 7.137 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.3994, allocations: 0.9153 MB / 1.242 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3994, allocations: 4 kB / 1.242 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3994, allocations: 0 / 1.242 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.172e-05/0.3994, allocations: 3.938 kB / 1.242 GB, free: 6.211 MB / 0.9981 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.001246/0.4007, allocations: 0.8843 MB / 1.243 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.4007, allocations: 12.62 kB / 1.243 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.4009, allocations: 64.19 kB / 1.243 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009934/0.4019, allocations: 0.5805 MB / 1.244 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.402, allocations: 32.94 kB / 1.244 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.641e-05/0.402, allocations: 40 kB / 1.244 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00065/0.4027, allocations: 440.7 kB / 1.244 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.4027, allocations: 3.938 kB / 1.244 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.947e-05/0.4028, allocations: 16 kB / 1.244 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.4028, allocations: 15.98 kB / 1.244 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004711/0.4033, allocations: 299.8 kB / 1.244 GB, free: 3.734 MB / 0.9981 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.002458/0.4057, allocations: 1.907 MB / 1.246 GB, free: 1.699 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004861/0.4062, allocations: 256.2 kB / 1.247 GB, free: 1.441 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.4064, allocations: 128.7 kB / 1.247 GB, free: 1.312 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007793/0.4072, allocations: 0.8545 MB / 1.248 GB, free: 280 kB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.4072, allocations: 30.56 kB / 1.248 GB, free: 240 kB / 0.9981 GB Notification: Performance of pre-optimization done (n=26): time 1.703e-06/0.4073, allocations: 0 / 1.248 GB, free: 240 kB / 0.9981 GB Notification: Performance of matching and sorting (n=26): time 0.6077/1.015, allocations: 369.8 kB / 1.248 GB, free: 41.39 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/1.015, allocations: 58.56 kB / 1.248 GB, free: 41.33 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006402/1.016, allocations: 481.7 kB / 1.248 GB, free: 41.21 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/1.016, allocations: 31.36 kB / 1.248 GB, free: 41.18 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/1.016, allocations: 254.7 kB / 1.249 GB, free: 41.09 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.221e-05/1.016, allocations: 94.06 kB / 1.249 GB, free: 41.06 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/1.016, allocations: 74.81 kB / 1.249 GB, free: 41.04 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.589e-05/1.016, allocations: 354.5 kB / 1.249 GB, free: 40.73 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/1.016, allocations: 100.8 kB / 1.249 GB, free: 40.73 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/1.017, allocations: 177.2 kB / 1.249 GB, free: 40.66 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/1.017, allocations: 281.3 kB / 1.25 GB, free: 40.59 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/1.017, allocations: 0.9375 kB / 1.25 GB, free: 40.59 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005734/1.018, allocations: 364.9 kB / 1.25 GB, free: 40.54 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/1.018, allocations: 5.844 kB / 1.25 GB, free: 40.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/1.018, allocations: 2.375 kB / 1.25 GB, free: 40.54 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/1.018, allocations: 6.969 kB / 1.25 GB, free: 40.54 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/1.018, allocations: 72.7 kB / 1.25 GB, free: 40.54 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/1.018, allocations: 8.016 kB / 1.25 GB, free: 40.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002466/1.018, allocations: 38.97 kB / 1.25 GB, free: 40.51 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-05/1.018, allocations: 20.08 kB / 1.25 GB, free: 40.51 MB / 0.9981 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.0001617/1.018, allocations: 177.7 kB / 1.25 GB, free: 40.39 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.948e-05/1.018, allocations: 53.62 kB / 1.25 GB, free: 40.37 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008072/1.019, allocations: 475.6 kB / 1.251 GB, free: 40.31 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/1.019, allocations: 6.703 kB / 1.251 GB, free: 40.31 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/1.019, allocations: 3.281 kB / 1.251 GB, free: 40.31 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005074/1.02, allocations: 0.567 MB / 1.251 GB, free: 39.96 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/1.021, allocations: 1.146 MB / 1.253 GB, free: 39.49 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/1.021, allocations: 2.656 kB / 1.253 GB, free: 39.49 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/1.022, allocations: 57.45 kB / 1.253 GB, free: 39.49 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/1.022, allocations: 4.031 kB / 1.253 GB, free: 39.49 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/1.022, allocations: 9.125 kB / 1.253 GB, free: 39.49 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/1.022, allocations: 8.688 kB / 1.253 GB, free: 39.49 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/1.022, allocations: 0 / 1.253 GB, free: 39.49 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006741/1.022, allocations: 0.6743 MB / 1.253 GB, free: 39.26 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/1.023, allocations: 181.6 kB / 1.253 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.681e-05/1.023, allocations: 4.562 kB / 1.253 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/1.023, allocations: 13.97 kB / 1.254 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/1.023, allocations: 29.66 kB / 1.254 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/1.023, allocations: 18 kB / 1.254 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003063/1.023, allocations: 345.2 kB / 1.254 GB, free: 39.04 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.023, allocations: 0 / 1.254 GB, free: 39.04 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005643/1.024, allocations: 197 kB / 1.254 GB, free: 39.03 MB / 0.9981 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.0005193/1.024, allocations: 292.4 kB / 1.254 GB, free: 38.93 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004201/1.025, allocations: 293 kB / 1.255 GB, free: 38.92 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/1.025, allocations: 0 / 1.255 GB, free: 38.92 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000194/1.025, allocations: 160.8 kB / 1.255 GB, free: 38.91 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/1.026, allocations: 338.6 kB / 1.255 GB, free: 38.89 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/1.028, allocations: 1.059 MB / 1.256 GB, free: 38.38 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/1.028, allocations: 0.8683 MB / 1.257 GB, free: 37.68 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003026/1.028, allocations: 117.9 kB / 1.257 GB, free: 37.65 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/1.029, allocations: 52.64 kB / 1.257 GB, free: 37.64 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/1.029, allocations: 0 / 1.257 GB, free: 37.64 MB / 0.9981 GB Notification: Performance of Templates: time 0.02505/1.054, allocations: 12.42 MB / 1.269 GB, free: 36.6 MB / 0.9981 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