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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.002193/0.002193, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002795/0.002795, allocations: 197.3 kB / 16.26 MB, free: 6.629 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.655/1.655, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.162/3.162, allocations: 482.2 MB / 0.7542 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002854/0.002854, allocations: 73.12 kB / 0.9232 GB, free: 29.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4823/0.4852, allocations: 162.2 MB / 1.082 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 1.072/1.557, allocations: 182.7 MB / 1.26 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01101/1.568, allocations: 6.937 MB / 1.267 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/1.57, allocations: 27.34 kB / 1.267 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001264/1.571, allocations: 348.8 kB / 1.267 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00437/1.575, allocations: 1.359 MB / 1.268 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003928/1.579, allocations: 1.066 MB / 1.269 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003374/1.583, allocations: 1.947 MB / 1.271 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001164/1.584, allocations: 0.6426 MB / 1.272 GB, free: 7.508 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0029/1.587, allocations: 1.031 MB / 1.273 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001674/1.588, allocations: 0.6246 MB / 1.274 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001342/1.588, allocations: 66.34 kB / 1.274 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004975/1.593, allocations: 1.99 MB / 1.276 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004763/1.594, allocations: 291.2 kB / 1.276 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006891/1.595, allocations: 432.4 kB / 1.276 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004556/1.599, allocations: 1.86 MB / 1.278 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/1.599, allocations: 2.109 kB / 1.278 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.445e-06/1.599, allocations: 0.6094 kB / 1.278 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.432e-05/1.599, allocations: 0.9375 kB / 1.278 GB, free: 7.375 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.002847/1.602, allocations: 1.16 MB / 1.279 GB, free: 22.7 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/1.602, allocations: 10.94 kB / 1.279 GB, free: 22.7 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002225/1.604, allocations: 275.1 kB / 1.28 GB, free: 22.65 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/1.605, allocations: 0.5804 MB / 1.28 GB, free: 22.36 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.595e-05/1.605, allocations: 40.44 kB / 1.28 GB, free: 22.36 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/1.606, allocations: 59 kB / 1.28 GB, free: 22.36 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/1.607, allocations: 0.6368 MB / 1.281 GB, free: 22.29 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/1.607, allocations: 3.906 kB / 1.281 GB, free: 22.29 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.604e-05/1.607, allocations: 19.66 kB / 1.281 GB, free: 22.29 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.82e-05/1.607, allocations: 18.52 kB / 1.281 GB, free: 22.29 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/1.608, allocations: 0.5264 MB / 1.281 GB, free: 22.27 MB / 1.014 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.00421/1.612, allocations: 2.523 MB / 1.284 GB, free: 20.86 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008438/1.613, allocations: 364.8 kB / 1.284 GB, free: 20.83 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005323/1.614, allocations: 237.4 kB / 1.284 GB, free: 20.82 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006832/1.614, allocations: 306.5 kB / 1.285 GB, free: 20.54 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.026e-05/1.614, allocations: 39.02 kB / 1.285 GB, free: 20.5 MB / 1.014 GB Notification: Performance of pre-optimization done (n=39): time 2.315e-06/1.614, allocations: 0 / 1.285 GB, free: 20.5 MB / 1.014 GB Notification: Performance of matching and sorting (n=39): time 0.001926/1.616, allocations: 0.6191 MB / 1.285 GB, free: 20.43 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/1.616, allocations: 56.66 kB / 1.285 GB, free: 20.37 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008907/1.617, allocations: 0.4916 MB / 1.286 GB, free: 20.25 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.758e-05/1.617, allocations: 32.23 kB / 1.286 GB, free: 20.22 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/1.618, allocations: 330.2 kB / 1.286 GB, free: 20.06 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/1.618, allocations: 145 kB / 1.286 GB, free: 19.96 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/1.618, allocations: 87.5 kB / 1.286 GB, free: 19.95 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002711/1.618, allocations: 364.4 kB / 1.287 GB, free: 19.64 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003887/1.619, allocations: 175.2 kB / 1.287 GB, free: 19.63 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004347/1.619, allocations: 284.7 kB / 1.287 GB, free: 19.52 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007608/1.62, allocations: 455.9 kB / 1.288 GB, free: 19.43 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/1.62, allocations: 2.156 kB / 1.288 GB, free: 19.43 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001004/1.621, allocations: 0.5279 MB / 1.288 GB, free: 19.36 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/1.621, allocations: 7.109 kB / 1.288 GB, free: 19.36 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/1.621, allocations: 3.828 kB / 1.288 GB, free: 19.36 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/1.621, allocations: 7.938 kB / 1.288 GB, free: 19.36 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007348/1.622, allocations: 128.8 kB / 1.288 GB, free: 19.36 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004616/1.622, allocations: 0.5952 MB / 1.289 GB, free: 18.77 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007404/1.623, allocations: 83.42 kB / 1.289 GB, free: 18.75 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/1.623, allocations: 21.67 kB / 1.289 GB, free: 18.75 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006027/1.624, allocations: 352.6 kB / 1.289 GB, free: 18.67 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000432/1.624, allocations: 278.1 kB / 1.29 GB, free: 18.57 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007248/1.625, allocations: 452.8 kB / 1.29 GB, free: 18.48 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.906e-06/1.625, allocations: 0.9688 kB / 1.29 GB, free: 18.48 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009398/1.626, allocations: 0.5201 MB / 1.291 GB, free: 18.41 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/1.626, allocations: 7.328 kB / 1.291 GB, free: 18.41 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/1.626, allocations: 2.406 kB / 1.291 GB, free: 18.41 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.745e-06/1.626, allocations: 5.344 kB / 1.291 GB, free: 18.41 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005148/1.626, allocations: 120.2 kB / 1.291 GB, free: 18.41 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/1.626, allocations: 8.719 kB / 1.291 GB, free: 18.41 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006645/1.627, allocations: 84.84 kB / 1.291 GB, free: 18.39 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/1.627, allocations: 18.67 kB / 1.291 GB, free: 18.39 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.0002374/1.627, allocations: 202.6 kB / 1.291 GB, free: 18.21 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/1.628, allocations: 57.41 kB / 1.291 GB, free: 18.18 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/1.629, allocations: 484.8 kB / 1.292 GB, free: 18.13 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/1.629, allocations: 5.344 kB / 1.292 GB, free: 18.13 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/1.629, allocations: 4.844 kB / 1.292 GB, free: 18.13 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009236/1.63, allocations: 0.7099 MB / 1.292 GB, free: 17.68 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/1.632, allocations: 1.287 MB / 1.293 GB, free: 17.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/1.632, allocations: 1.312 kB / 1.293 GB, free: 17.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006724/1.633, allocations: 125.6 kB / 1.294 GB, free: 17.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/1.633, allocations: 4.438 kB / 1.294 GB, free: 17.3 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.932e-05/1.633, allocations: 14.33 kB / 1.294 GB, free: 17.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003984/1.633, allocations: 0.596 MB / 1.294 GB, free: 16.72 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.633, allocations: 2.25 kB / 1.294 GB, free: 16.72 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/1.634, allocations: 0.7998 MB / 1.295 GB, free: 16.48 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003122/1.635, allocations: 177.1 kB / 1.295 GB, free: 16.36 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.652e-05/1.635, allocations: 13.66 kB / 1.295 GB, free: 16.36 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005159/1.635, allocations: 44.81 kB / 1.295 GB, free: 16.36 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/1.636, allocations: 34.69 kB / 1.295 GB, free: 16.35 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/1.636, allocations: 16.36 kB / 1.295 GB, free: 16.35 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005314/1.636, allocations: 353.7 kB / 1.296 GB, free: 16.27 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.6e-07/1.636, allocations: 2.062 kB / 1.296 GB, free: 16.27 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0012/1.637, allocations: 357.6 kB / 1.296 GB, free: 16.22 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.0007111/1.638, allocations: 203.5 kB / 1.296 GB, free: 16.12 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00205/1.64, allocations: 0.7194 MB / 1.297 GB, free: 16.11 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/1.64, allocations: 0.9062 kB / 1.297 GB, free: 16.11 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000493/1.641, allocations: 223.6 kB / 1.297 GB, free: 16.11 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/1.642, allocations: 364.7 kB / 1.297 GB, free: 16.06 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/1.645, allocations: 1.64 MB / 1.299 GB, free: 15.22 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007221/1.646, allocations: 0.948 MB / 1.3 GB, free: 14.52 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0008081/1.647, allocations: 211.5 kB / 1.3 GB, free: 14.47 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/1.647, allocations: 47.06 kB / 1.3 GB, free: 14.46 MB / 1.014 GB Notification: Performance of SimCode: time 7.62e-07/1.647, allocations: 1.094 kB / 1.3 GB, free: 14.46 MB / 1.014 GB Notification: Performance of Templates: time 0.02692/1.674, allocations: 12.27 MB / 1.312 GB, free: 13.71 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