Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.00806/0.00806, allocations: 101.6 kB / 15.88 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.001937/0.001937, allocations: 193.9 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.405/1.405, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.339/2.339, allocations: 390.2 MB / 0.6649 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001614, allocations: 67.89 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8381/0.8397, allocations: 140.3 MB / 0.9496 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2047/1.044, allocations: 182.8 MB / 1.128 GB, free: 10.67 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01044/1.055, allocations: 7.053 MB / 1.135 GB, free: 3.594 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/1.056, allocations: 27.81 kB / 1.135 GB, free: 3.566 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00136/1.058, allocations: 334.2 kB / 1.135 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003864/1.062, allocations: 1.369 MB / 1.137 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003086/1.065, allocations: 1.039 MB / 1.138 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.003159/1.068, allocations: 2.717 MB / 1.14 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/1.069, allocations: 0.5643 MB / 1.141 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001828/1.071, allocations: 0.7353 MB / 1.142 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001691/1.072, allocations: 0.6168 MB / 1.142 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001956/1.073, allocations: 36 kB / 1.142 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004171/1.077, allocations: 2.198 MB / 1.144 GB, free: 9.93 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004839/1.077, allocations: 267.2 kB / 1.145 GB, free: 9.668 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0008337/1.078, allocations: 394.1 kB / 1.145 GB, free: 9.281 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0023/1.081, allocations: 1.279 MB / 1.146 GB, free: 8 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/1.081, allocations: 0 / 1.146 GB, free: 8 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.865e-06/1.081, allocations: 4 kB / 1.146 GB, free: 7.996 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.353e-05/1.081, allocations: 0 / 1.146 GB, free: 7.996 MB / 0.9044 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.002532/1.083, allocations: 1.153 MB / 1.147 GB, free: 6.793 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/1.083, allocations: 8.031 kB / 1.147 GB, free: 6.785 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002063/1.085, allocations: 270.8 kB / 1.148 GB, free: 6.52 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/1.086, allocations: 0.5869 MB / 1.148 GB, free: 5.891 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/1.086, allocations: 41.31 kB / 1.148 GB, free: 5.852 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/1.087, allocations: 56 kB / 1.148 GB, free: 5.797 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/1.088, allocations: 0.6323 MB / 1.149 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/1.088, allocations: 3.938 kB / 1.149 GB, free: 5.145 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.608e-05/1.088, allocations: 24 kB / 1.149 GB, free: 5.121 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.764e-05/1.088, allocations: 21.31 kB / 1.149 GB, free: 5.102 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009426/1.089, allocations: 0.5204 MB / 1.15 GB, free: 4.578 MB / 0.9044 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.003627/1.092, allocations: 2.453 MB / 1.152 GB, free: 1.906 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007116/1.093, allocations: 352.2 kB / 1.152 GB, free: 1.555 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/1.094, allocations: 249.3 kB / 1.152 GB, free: 1.309 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005703/1.094, allocations: 295.6 kB / 1.153 GB, free: 0.9648 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/1.094, allocations: 38.89 kB / 1.153 GB, free: 0.918 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=39): time 3.607e-06/1.094, allocations: 4 kB / 1.153 GB, free: 0.9141 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39): time 0.001377/1.096, allocations: 0.6106 MB / 1.153 GB, free: 304 kB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/1.096, allocations: 55.41 kB / 1.153 GB, free: 236 kB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005644/1.096, allocations: 0.495 MB / 1.154 GB, free: 15.72 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.095e-05/1.096, allocations: 37.7 kB / 1.154 GB, free: 15.68 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002562/1.097, allocations: 332.4 kB / 1.154 GB, free: 15.35 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/1.097, allocations: 134 kB / 1.154 GB, free: 15.22 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/1.097, allocations: 89.98 kB / 1.155 GB, free: 15.12 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001708/1.097, allocations: 370.7 kB / 1.155 GB, free: 14.75 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/1.097, allocations: 174.5 kB / 1.155 GB, free: 14.58 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003986/1.098, allocations: 283.4 kB / 1.155 GB, free: 14.27 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006941/1.098, allocations: 452.2 kB / 1.156 GB, free: 13.79 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.098, allocations: 4 kB / 1.156 GB, free: 13.79 MB / 0.92 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009205/1.099, allocations: 0.524 MB / 1.156 GB, free: 13.26 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/1.099, allocations: 5.875 kB / 1.156 GB, free: 13.25 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/1.099, allocations: 4 kB / 1.156 GB, free: 13.25 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/1.099, allocations: 4.281 kB / 1.156 GB, free: 13.25 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007234/1.1, allocations: 135.8 kB / 1.156 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004891/1.101, allocations: 0.6015 MB / 1.157 GB, free: 12.49 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006356/1.101, allocations: 83.56 kB / 1.157 GB, free: 12.41 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-05/1.101, allocations: 16 kB / 1.157 GB, free: 12.39 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005391/1.102, allocations: 356.9 kB / 1.157 GB, free: 12.04 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004006/1.102, allocations: 283.4 kB / 1.158 GB, free: 11.72 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006949/1.103, allocations: 456.3 kB / 1.158 GB, free: 11.25 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.493e-06/1.103, allocations: 0 / 1.158 GB, free: 11.25 MB / 0.92 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0008775/1.104, allocations: 0.5203 MB / 1.159 GB, free: 10.72 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/1.104, allocations: 8 kB / 1.159 GB, free: 10.71 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.866e-06/1.104, allocations: 0 / 1.159 GB, free: 10.71 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/1.104, allocations: 12.05 kB / 1.159 GB, free: 10.7 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004743/1.104, allocations: 119.9 kB / 1.159 GB, free: 10.58 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/1.104, allocations: 7.938 kB / 1.159 GB, free: 10.57 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/1.105, allocations: 75.66 kB / 1.159 GB, free: 10.5 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.542e-05/1.105, allocations: 20 kB / 1.159 GB, free: 10.48 MB / 0.92 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.0001755/1.105, allocations: 204.2 kB / 1.159 GB, free: 10.27 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.783e-05/1.105, allocations: 59.28 kB / 1.159 GB, free: 10.21 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008792/1.106, allocations: 491.9 kB / 1.16 GB, free: 9.727 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/1.106, allocations: 4 kB / 1.16 GB, free: 9.723 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/1.106, allocations: 0 / 1.16 GB, free: 9.723 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008336/1.107, allocations: 0.703 MB / 1.16 GB, free: 8.934 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/1.109, allocations: 1.293 MB / 1.162 GB, free: 7.562 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/1.109, allocations: 0 / 1.162 GB, free: 7.562 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000605/1.11, allocations: 123.8 kB / 1.162 GB, free: 7.441 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/1.11, allocations: 4 kB / 1.162 GB, free: 7.438 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.565e-05/1.11, allocations: 19.92 kB / 1.162 GB, free: 7.418 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003396/1.11, allocations: 0.594 MB / 1.162 GB, free: 6.801 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/1.11, allocations: 4 kB / 1.162 GB, free: 6.797 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/1.111, allocations: 0.7861 MB / 1.163 GB, free: 5.973 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/1.112, allocations: 188.3 kB / 1.163 GB, free: 5.77 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.108e-05/1.112, allocations: 11.94 kB / 1.163 GB, free: 5.758 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004603/1.112, allocations: 45.5 kB / 1.163 GB, free: 5.715 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.336e-05/1.112, allocations: 23.97 kB / 1.163 GB, free: 5.691 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.205e-05/1.112, allocations: 23.98 kB / 1.163 GB, free: 5.668 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003862/1.113, allocations: 350.8 kB / 1.164 GB, free: 5.328 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/1.113, allocations: 0 / 1.164 GB, free: 5.328 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000926/1.114, allocations: 367 kB / 1.164 GB, free: 4.969 MB / 0.92 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.0004836/1.114, allocations: 202.4 kB / 1.164 GB, free: 4.773 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001418/1.115, allocations: 0.6759 MB / 1.165 GB, free: 4.098 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/1.115, allocations: 0 / 1.165 GB, free: 4.098 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004184/1.116, allocations: 219.9 kB / 1.165 GB, free: 3.883 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/1.118, allocations: 361.1 kB / 1.165 GB, free: 3.531 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/1.12, allocations: 1.69 MB / 1.167 GB, free: 1.789 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005575/1.121, allocations: 0.9496 MB / 1.168 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/1.121, allocations: 55.42 kB / 1.168 GB, free: 0.7578 MB / 0.92 GB Notification: Performance of SimCode: time 2.61e-07/1.121, allocations: 0 / 1.168 GB, free: 0.7578 MB / 0.92 GB Notification: Performance of Templates: time 0.01697/1.138, allocations: 13.02 MB / 1.181 GB, free: 3.836 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches