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.001013/0.001013, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001282/0.001282, allocations: 168.7 kB / 15.95 MB, free: 204 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.329/1.329, allocations: 223.3 MB / 240 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.68/2.68, allocations: 462.6 MB / 0.736 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003299/0.0003301, allocations: 10.28 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.259, allocations: 159.6 MB / 1.058 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.1665/0.4255, allocations: 168.3 MB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008584/0.4341, allocations: 6.513 MB / 1.229 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000813/0.435, allocations: 27.81 kB / 1.229 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0008397/0.4359, allocations: 278.2 kB / 1.229 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002611/0.4385, allocations: 1.05 MB / 1.23 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002422/0.4409, allocations: 0.8431 MB / 1.231 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.002636/0.4436, allocations: 2.288 MB / 1.233 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006909/0.4443, allocations: 488.1 kB / 1.234 GB, free: 0.9727 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001189/0.4455, allocations: 0.6886 MB / 1.234 GB, free: 288 kB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007818/0.4463, allocations: 0.572 MB / 1.235 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.852e-05/0.4463, allocations: 28 kB / 1.235 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002485/0.4488, allocations: 1.138 MB / 1.236 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002769/0.4491, allocations: 255.2 kB / 1.236 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.4493, allocations: 177.3 kB / 1.236 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.4507, allocations: 1.138 MB / 1.237 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.4507, allocations: 0 / 1.237 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4507, allocations: 0 / 1.237 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.688e-06/0.4507, allocations: 0 / 1.237 GB, free: 12.97 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.00155/0.4523, allocations: 1.028 MB / 1.238 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.4523, allocations: 15.97 kB / 1.239 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001784/0.4541, allocations: 266.8 kB / 1.239 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008359/0.455, allocations: 0.5601 MB / 1.239 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.455, allocations: 41.31 kB / 1.239 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.412e-05/0.4551, allocations: 59.95 kB / 1.239 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.4562, allocations: 0.6401 MB / 1.24 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.4562, allocations: 4 kB / 1.24 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.223e-05/0.4562, allocations: 20 kB / 1.24 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.929e-05/0.4563, allocations: 21.31 kB / 1.24 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009044/0.4572, allocations: 0.5282 MB / 1.241 GB, free: 9.684 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.00276/0.46, allocations: 2.457 MB / 1.243 GB, free: 7.012 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000635/0.4606, allocations: 359.5 kB / 1.243 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003803/0.461, allocations: 245.4 kB / 1.244 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005419/0.4615, allocations: 323.5 kB / 1.244 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.4616, allocations: 38.89 kB / 1.244 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=39): time 2.274e-06/0.4616, allocations: 0 / 1.244 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39): time 0.001338/0.4629, allocations: 0.6261 MB / 1.245 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.463, allocations: 59.41 kB / 1.245 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005328/0.4635, allocations: 0.4949 MB / 1.245 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.4636, allocations: 29.7 kB / 1.245 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002174/0.4638, allocations: 332.4 kB / 1.245 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.4639, allocations: 138 kB / 1.246 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/0.4639, allocations: 8 kB / 1.246 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4641, allocations: 374.7 kB / 1.246 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.4644, allocations: 164.8 kB / 1.246 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004004/0.4648, allocations: 291.3 kB / 1.246 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.4652, allocations: 215.8 kB / 1.247 GB, free: 3.207 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4652, allocations: 0 / 1.247 GB, free: 3.207 MB / 0.9981 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008819/0.4661, allocations: 0.5317 MB / 1.247 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.432e-05/0.4662, allocations: 157 kB / 1.247 GB, free: 2.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4662, allocations: 8 kB / 1.247 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.4662, allocations: 4 kB / 1.247 GB, free: 2.469 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007138/0.4669, allocations: 147.8 kB / 1.247 GB, free: 2.324 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003403/0.4673, allocations: 0.5938 MB / 1.248 GB, free: 1.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005867/0.4679, allocations: 83.56 kB / 1.248 GB, free: 1.625 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.077e-05/0.468, allocations: 20 kB / 1.248 GB, free: 1.605 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.923e-06/0.468, allocations: 4 kB / 1.248 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007947/0.4688, allocations: 463.8 kB / 1.248 GB, free: 1.148 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.4688, allocations: 4 kB / 1.249 GB, free: 1.145 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.392e-06/0.4688, allocations: 4 kB / 1.249 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005047/0.4693, allocations: 128.1 kB / 1.249 GB, free: 1.016 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.4693, allocations: 7.938 kB / 1.249 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005189/0.4698, allocations: 83.59 kB / 1.249 GB, free: 0.9258 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-05/0.4699, allocations: 24 kB / 1.249 GB, free: 0.9023 MB / 0.9981 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003071/0.4702, allocations: 306.6 kB / 1.249 GB, free: 0.5938 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.174e-05/0.4703, allocations: 67.33 kB / 1.249 GB, free: 0.5273 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008797/0.4712, allocations: 488 kB / 1.25 GB, free: 44 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.4712, allocations: 4 kB / 1.25 GB, free: 40 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4712, allocations: 0 / 1.25 GB, free: 40 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.5/0.9713, allocations: 0.7123 MB / 1.25 GB, free: 191.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.9735, allocations: 1.292 MB / 1.252 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.9735, allocations: 2 kB / 1.252 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006563/0.9741, allocations: 137.9 kB / 1.252 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.9742, allocations: 7.906 kB / 1.252 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.441e-05/0.9742, allocations: 12.06 kB / 1.252 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001974/0.9744, allocations: 0.5864 MB / 1.252 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.9744, allocations: 6.781 kB / 1.252 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.9756, allocations: 0.8071 MB / 1.253 GB, free: 190.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002197/0.9758, allocations: 188.7 kB / 1.253 GB, free: 190.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.979e-05/0.9759, allocations: 12.22 kB / 1.253 GB, free: 190.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.9763, allocations: 49.2 kB / 1.253 GB, free: 190.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/0.9764, allocations: 33.02 kB / 1.253 GB, free: 190.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.9765, allocations: 17.5 kB / 1.253 GB, free: 190.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003744/0.9768, allocations: 346 kB / 1.254 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9768, allocations: 0 / 1.254 GB, free: 190.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001011/0.9779, allocations: 359.3 kB / 1.254 GB, free: 190.2 MB / 0.9981 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004352/0.9783, allocations: 213 kB / 1.254 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001244/0.9796, allocations: 0.6866 MB / 1.255 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.9796, allocations: 0 / 1.255 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003563/0.9799, allocations: 228.1 kB / 1.255 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001522/0.9815, allocations: 351.7 kB / 1.255 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.9834, allocations: 1.734 MB / 1.257 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.9838, allocations: 0.9514 MB / 1.258 GB, free: 188.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0006278/0.9844, allocations: 208.2 kB / 1.258 GB, free: 188.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.9845, allocations: 48.62 kB / 1.258 GB, free: 188.5 MB / 0.9981 GB Notification: Performance of SimCode: time 3.7e-07/0.9845, allocations: 0 / 1.258 GB, free: 188.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.02173/1.006, allocations: 11.51 MB / 1.27 GB, free: 187.4 MB / 0.9981 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