Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.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.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Density") translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Density") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00805/0.00805, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.002034/0.002034, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.403/1.403, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.761/2.761, allocations: 461.9 MB / 0.7348 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 67.48 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3224, allocations: 157.4 MB / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2146/0.5371, allocations: 182.8 MB / 1.231 GB, free: 0.7266 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01081/0.5479, allocations: 7.055 MB / 1.238 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001294/0.5493, allocations: 23.88 kB / 1.238 GB, free: 9.629 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001442/0.5507, allocations: 350.1 kB / 1.239 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004168/0.555, allocations: 1.364 MB / 1.24 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003397/0.5584, allocations: 1.047 MB / 1.241 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003449/0.5618, allocations: 2.705 MB / 1.244 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001172/0.563, allocations: 0.5643 MB / 1.244 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002122/0.5652, allocations: 0.7236 MB / 1.245 GB, free: 2.852 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.5671, allocations: 0.6344 MB / 1.245 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002392/0.5674, allocations: 40 kB / 1.245 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.7289/1.296, allocations: 2.182 MB / 1.248 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006922/1.297, allocations: 259.2 kB / 1.248 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001385/1.298, allocations: 396.6 kB / 1.248 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003005/1.301, allocations: 1.274 MB / 1.249 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/1.302, allocations: 0.5625 kB / 1.249 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.673e-06/1.302, allocations: 2.125 kB / 1.249 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.47e-05/1.302, allocations: 0.5 kB / 1.249 GB, free: 5.699 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003388/1.305, allocations: 1.159 MB / 1.251 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/1.305, allocations: 10.59 kB / 1.251 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002244/1.307, allocations: 271.7 kB / 1.251 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/1.308, allocations: 0.579 MB / 1.251 GB, free: 4.793 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.1e-05/1.308, allocations: 41.53 kB / 1.251 GB, free: 4.793 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/1.309, allocations: 57.66 kB / 1.252 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/1.31, allocations: 0.6368 MB / 1.252 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/1.31, allocations: 1.875 kB / 1.252 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.175e-05/1.31, allocations: 20.03 kB / 1.252 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/1.31, allocations: 24.81 kB / 1.252 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008025/1.311, allocations: 0.5158 MB / 1.253 GB, free: 4.711 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.003386/1.314, allocations: 2.455 MB / 1.255 GB, free: 19.39 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006249/1.315, allocations: 359.5 kB / 1.255 GB, free: 19.37 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003571/1.315, allocations: 239 kB / 1.256 GB, free: 19.36 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006182/1.316, allocations: 305 kB / 1.256 GB, free: 19.08 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/1.316, allocations: 37.91 kB / 1.256 GB, free: 19.04 MB / 1.014 GB Notification: Performance of pre-optimization done (n=39): time 2.204e-06/1.316, allocations: 5.531 kB / 1.256 GB, free: 19.04 MB / 1.014 GB Notification: Performance of matching and sorting (n=39): time 0.001389/1.317, allocations: 0.6133 MB / 1.257 GB, free: 18.96 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/1.317, allocations: 54.58 kB / 1.257 GB, free: 18.9 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005666/1.318, allocations: 0.4987 MB / 1.257 GB, free: 18.78 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.52e-05/1.318, allocations: 38.27 kB / 1.257 GB, free: 18.75 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/1.318, allocations: 326.5 kB / 1.257 GB, free: 18.59 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/1.318, allocations: 138.5 kB / 1.258 GB, free: 18.5 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/1.318, allocations: 96.72 kB / 1.258 GB, free: 18.48 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001603/1.318, allocations: 364.1 kB / 1.258 GB, free: 18.16 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003141/1.319, allocations: 173.9 kB / 1.258 GB, free: 18.15 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003842/1.319, allocations: 281.8 kB / 1.258 GB, free: 18.05 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006532/1.32, allocations: 453.7 kB / 1.259 GB, free: 17.96 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/1.32, allocations: 6.656 kB / 1.259 GB, free: 17.95 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009036/1.321, allocations: 0.5218 MB / 1.259 GB, free: 17.89 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/1.321, allocations: 5.406 kB / 1.259 GB, free: 17.89 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/1.321, allocations: 4.75 kB / 1.259 GB, free: 17.89 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/1.321, allocations: 4.047 kB / 1.259 GB, free: 17.89 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007129/1.321, allocations: 136.1 kB / 1.26 GB, free: 17.88 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000412/1.322, allocations: 0.5996 MB / 1.26 GB, free: 17.29 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007351/1.323, allocations: 79.58 kB / 1.26 GB, free: 17.27 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/1.323, allocations: 18.97 kB / 1.26 GB, free: 17.27 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005868/1.323, allocations: 354.1 kB / 1.261 GB, free: 17.18 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003786/1.324, allocations: 275.7 kB / 1.261 GB, free: 17.07 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006546/1.324, allocations: 455.9 kB / 1.261 GB, free: 16.98 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.663e-06/1.324, allocations: 0 / 1.261 GB, free: 16.98 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0008245/1.325, allocations: 0.5234 MB / 1.262 GB, free: 16.91 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/1.325, allocations: 11.34 kB / 1.262 GB, free: 16.91 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/1.325, allocations: 6.469 kB / 1.262 GB, free: 16.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.52e-06/1.325, allocations: 3.5 kB / 1.262 GB, free: 16.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004875/1.326, allocations: 115.9 kB / 1.262 GB, free: 16.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/1.326, allocations: 5.609 kB / 1.262 GB, free: 16.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006465/1.326, allocations: 69.72 kB / 1.262 GB, free: 16.89 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.368e-05/1.326, allocations: 17.89 kB / 1.262 GB, free: 16.89 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002035/1.327, allocations: 213.8 kB / 1.262 GB, free: 16.7 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.573e-05/1.327, allocations: 60.92 kB / 1.262 GB, free: 16.67 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009077/1.328, allocations: 489.6 kB / 1.263 GB, free: 16.62 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/1.328, allocations: 3.875 kB / 1.263 GB, free: 16.62 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/1.328, allocations: 1.766 kB / 1.263 GB, free: 16.62 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008325/1.329, allocations: 0.7147 MB / 1.263 GB, free: 16.17 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002461/1.331, allocations: 1.28 MB / 1.265 GB, free: 15.79 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/1.331, allocations: 2.562 kB / 1.265 GB, free: 15.79 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006629/1.332, allocations: 123.2 kB / 1.265 GB, free: 15.79 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/1.332, allocations: 4.438 kB / 1.265 GB, free: 15.79 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.292e-05/1.332, allocations: 10.41 kB / 1.265 GB, free: 15.79 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003665/1.332, allocations: 0.599 MB / 1.265 GB, free: 15.2 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/1.332, allocations: 1.875 kB / 1.265 GB, free: 15.2 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/1.334, allocations: 0.7972 MB / 1.266 GB, free: 14.97 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003549/1.334, allocations: 182.3 kB / 1.266 GB, free: 14.84 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/1.334, allocations: 12.77 kB / 1.266 GB, free: 14.84 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005899/1.335, allocations: 50.38 kB / 1.266 GB, free: 14.83 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/1.335, allocations: 31.62 kB / 1.266 GB, free: 14.83 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.472e-05/1.335, allocations: 16.8 kB / 1.266 GB, free: 14.82 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005922/1.335, allocations: 354.2 kB / 1.267 GB, free: 14.74 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/1.335, allocations: 0 / 1.267 GB, free: 14.74 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001464/1.337, allocations: 359.5 kB / 1.267 GB, free: 14.69 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,senDenFlo.d) * 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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006181/1.338, allocations: 204.6 kB / 1.267 GB, free: 14.59 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001697/1.339, allocations: 0.6666 MB / 1.268 GB, free: 14.58 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/1.339, allocations: 1 kB / 1.268 GB, free: 14.58 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004795/1.34, allocations: 224.3 kB / 1.268 GB, free: 14.57 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/1.342, allocations: 361.4 kB / 1.269 GB, free: 14.55 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/1.345, allocations: 1.688 MB / 1.27 GB, free: 13.61 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008844/1.346, allocations: 0.9442 MB / 1.271 GB, free: 12.9 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002655/1.346, allocations: 55.53 kB / 1.271 GB, free: 12.89 MB / 1.014 GB Notification: Performance of SimCode: time 6.01e-07/1.346, allocations: 0 / 1.271 GB, free: 12.89 MB / 1.014 GB Notification: Performance of Templates: time 0.02493/1.371, allocations: 13.02 MB / 1.284 GB, free: 11.85 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches