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.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.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.001239/0.001239, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001207/0.001207, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.382/1.382, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.762/2.762, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 61.09 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3212, allocations: 157.4 MB / 1.052 GB, free: 8.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.1996/0.5209, allocations: 182.8 MB / 1.231 GB, free: 1.348 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01094/0.5318, allocations: 7.058 MB / 1.238 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.533, allocations: 23.81 kB / 1.238 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.5344, allocations: 334.2 kB / 1.238 GB, free: 9.922 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003905/0.5384, allocations: 1.369 MB / 1.239 GB, free: 8.551 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00337/0.5417, allocations: 1.051 MB / 1.24 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003242/0.545, allocations: 2.705 MB / 1.243 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001188/0.5462, allocations: 0.561 MB / 1.243 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001936/0.5482, allocations: 0.7275 MB / 1.244 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001761/0.55, allocations: 0.627 MB / 1.245 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002012/0.5502, allocations: 36 kB / 1.245 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004256/0.5544, allocations: 2.198 MB / 1.247 GB, free: 0.6172 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005122/0.555, allocations: 267.2 kB / 1.247 GB, free: 364 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.6293/1.184, allocations: 400 kB / 1.248 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004267/1.189, allocations: 1.823 MB / 1.249 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/1.189, allocations: 1 kB / 1.249 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.315e-06/1.189, allocations: 0 / 1.249 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.333e-05/1.189, allocations: 1.203 kB / 1.249 GB, free: 7.344 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.002143/1.191, allocations: 1.159 MB / 1.25 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/1.191, allocations: 9.75 kB / 1.25 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/1.193, allocations: 273 kB / 1.251 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008971/1.194, allocations: 0.5802 MB / 1.251 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/1.194, allocations: 42.53 kB / 1.251 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-05/1.194, allocations: 57.91 kB / 1.251 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/1.195, allocations: 0.6297 MB / 1.252 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/1.195, allocations: 7.438 kB / 1.252 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.733e-05/1.195, allocations: 26.22 kB / 1.252 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/1.195, allocations: 19.59 kB / 1.252 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008494/1.196, allocations: 0.5196 MB / 1.253 GB, free: 6.355 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.003332/1.199, allocations: 2.452 MB / 1.255 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006816/1.2, allocations: 359.6 kB / 1.255 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004284/1.201, allocations: 239.1 kB / 1.256 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005642/1.201, allocations: 311.2 kB / 1.256 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/1.201, allocations: 37.89 kB / 1.256 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=39): time 2.435e-06/1.201, allocations: 0 / 1.256 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39): time 0.0014/1.203, allocations: 0.6172 MB / 1.256 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/1.203, allocations: 54.88 kB / 1.257 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007449/1.203, allocations: 0.501 MB / 1.257 GB, free: 20.42 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/1.203, allocations: 35.8 kB / 1.257 GB, free: 20.39 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002046/1.204, allocations: 318 kB / 1.257 GB, free: 20.23 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/1.204, allocations: 141.3 kB / 1.257 GB, free: 20.14 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/1.204, allocations: 94.69 kB / 1.258 GB, free: 20.12 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001588/1.204, allocations: 364.7 kB / 1.258 GB, free: 19.8 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/1.204, allocations: 175 kB / 1.258 GB, free: 19.79 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004078/1.205, allocations: 282.3 kB / 1.258 GB, free: 19.69 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006659/1.206, allocations: 454.6 kB / 1.259 GB, free: 19.6 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.206, allocations: 0 / 1.259 GB, free: 19.6 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008818/1.206, allocations: 0.5176 MB / 1.259 GB, free: 19.53 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/1.206, allocations: 7.266 kB / 1.259 GB, free: 19.53 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/1.206, allocations: 2.781 kB / 1.259 GB, free: 19.53 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.333e-05/1.207, allocations: 5.781 kB / 1.259 GB, free: 19.53 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007574/1.207, allocations: 134.6 kB / 1.259 GB, free: 19.53 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000397/1.208, allocations: 0.5988 MB / 1.26 GB, free: 18.94 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007709/1.208, allocations: 78.31 kB / 1.26 GB, free: 18.91 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.436e-05/1.209, allocations: 21.36 kB / 1.26 GB, free: 18.91 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005524/1.209, allocations: 352.3 kB / 1.26 GB, free: 18.83 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003746/1.209, allocations: 283.5 kB / 1.261 GB, free: 18.72 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006384/1.21, allocations: 459.3 kB / 1.261 GB, free: 18.62 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.116e-06/1.21, allocations: 0.9375 kB / 1.261 GB, free: 18.62 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0008738/1.211, allocations: 0.5192 MB / 1.262 GB, free: 18.55 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/1.211, allocations: 6.344 kB / 1.262 GB, free: 18.55 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/1.211, allocations: 7.062 kB / 1.262 GB, free: 18.55 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.014e-06/1.211, allocations: 13.59 kB / 1.262 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/1.212, allocations: 116.6 kB / 1.262 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/1.212, allocations: 3.328 kB / 1.262 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006576/1.212, allocations: 75.48 kB / 1.262 GB, free: 18.53 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/1.212, allocations: 18.95 kB / 1.262 GB, free: 18.53 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.0001985/1.212, allocations: 206 kB / 1.262 GB, free: 18.34 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/1.213, allocations: 68.53 kB / 1.262 GB, free: 18.31 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009527/1.214, allocations: 486.5 kB / 1.263 GB, free: 18.26 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/1.214, allocations: 5.797 kB / 1.263 GB, free: 18.26 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/1.214, allocations: 0 / 1.263 GB, free: 18.26 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000771/1.214, allocations: 0.7076 MB / 1.263 GB, free: 17.81 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002482/1.217, allocations: 1.282 MB / 1.265 GB, free: 17.44 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/1.217, allocations: 5.781 kB / 1.265 GB, free: 17.44 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006604/1.218, allocations: 118.9 kB / 1.265 GB, free: 17.44 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.236e-05/1.218, allocations: 5.297 kB / 1.265 GB, free: 17.44 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.732e-05/1.218, allocations: 13.7 kB / 1.265 GB, free: 17.44 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003376/1.218, allocations: 0.5933 MB / 1.265 GB, free: 16.85 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.218, allocations: 6.406 kB / 1.265 GB, free: 16.85 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/1.219, allocations: 0.7924 MB / 1.266 GB, free: 16.61 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003706/1.22, allocations: 183.1 kB / 1.266 GB, free: 16.48 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.66e-05/1.22, allocations: 18.22 kB / 1.266 GB, free: 16.48 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005163/1.22, allocations: 46.03 kB / 1.266 GB, free: 16.47 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/1.221, allocations: 29.61 kB / 1.266 GB, free: 16.47 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.415e-05/1.221, allocations: 16.52 kB / 1.266 GB, free: 16.47 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0006298/1.221, allocations: 350.2 kB / 1.267 GB, free: 16.39 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.61e-07/1.221, allocations: 5.203 kB / 1.267 GB, free: 16.38 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001364/1.223, allocations: 363.8 kB / 1.267 GB, free: 16.34 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.0005326/1.223, allocations: 206.4 kB / 1.267 GB, free: 16.23 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001615/1.225, allocations: 0.6545 MB / 1.268 GB, free: 16.23 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.225, allocations: 1.094 kB / 1.268 GB, free: 16.23 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004739/1.225, allocations: 237 kB / 1.268 GB, free: 16.21 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001969/1.227, allocations: 364.3 kB / 1.268 GB, free: 16.2 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/1.23, allocations: 1.633 MB / 1.27 GB, free: 15.29 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007765/1.231, allocations: 0.9483 MB / 1.271 GB, free: 14.58 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001051/1.232, allocations: 203 kB / 1.271 GB, free: 14.55 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/1.232, allocations: 52.92 kB / 1.271 GB, free: 14.54 MB / 1.014 GB Notification: Performance of SimCode: time 9.52e-07/1.232, allocations: 0 / 1.271 GB, free: 14.54 MB / 1.014 GB Notification: Performance of Templates: time 0.02536/1.257, allocations: 11.94 MB / 1.283 GB, free: 13.86 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches