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.001413/0.001413, allocations: 107.8 kB / 16.36 MB, free: 6.285 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.001508/0.001508, allocations: 193.2 kB / 17.29 MB, free: 5.863 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.617/2.617, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 70.44 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3617, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.7766/1.138, allocations: 185.1 MB / 1.207 GB, free: 15.28 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.01063/1.149, allocations: 6.973 MB / 1.214 GB, free: 9.617 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002187/1.151, allocations: 30.16 kB / 1.214 GB, free: 9.605 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001603/1.153, allocations: 390.4 kB / 1.215 GB, free: 9.285 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.004419/1.157, allocations: 1.449 MB / 1.216 GB, free: 8.168 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003325/1.161, allocations: 1.169 MB / 1.217 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.00307/1.164, allocations: 1.941 MB / 1.219 GB, free: 6.188 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001071/1.165, allocations: 0.6673 MB / 1.22 GB, free: 5.773 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/1.167, allocations: 0.8176 MB / 1.221 GB, free: 5.289 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001496/1.168, allocations: 0.5947 MB / 1.221 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.000117/1.168, allocations: 68.09 kB / 1.221 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004139/1.173, allocations: 1.929 MB / 1.223 GB, free: 3.855 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003874/1.173, allocations: 300.5 kB / 1.223 GB, free: 3.652 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0006252/1.174, allocations: 428.7 kB / 1.224 GB, free: 3.387 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003686/1.177, allocations: 1.76 MB / 1.225 GB, free: 1.867 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/1.177, allocations: 0 / 1.225 GB, free: 1.867 MB / 0.92 GB Notification: Performance of FrontEnd: time 4.379e-06/1.177, allocations: 0 / 1.225 GB, free: 1.867 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.259e-05/1.177, allocations: 3.938 kB / 1.225 GB, free: 1.863 MB / 0.92 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.002067/1.18, allocations: 1.157 MB / 1.227 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/1.18, allocations: 8.031 kB / 1.227 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001933/1.182, allocations: 274.8 kB / 1.227 GB, free: 388 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/1.183, allocations: 0.6144 MB / 1.227 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/1.183, allocations: 41.31 kB / 1.228 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/1.183, allocations: 56 kB / 1.228 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/1.184, allocations: 0.6362 MB / 1.228 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/1.184, allocations: 0 / 1.228 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.944e-05/1.184, allocations: 27.94 kB / 1.228 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.614e-05/1.184, allocations: 17.31 kB / 1.228 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009364/1.185, allocations: 0.5204 MB / 1.229 GB, free: 14.41 MB / 0.9356 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.003221/1.188, allocations: 2.453 MB / 1.231 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006875/1.189, allocations: 377.9 kB / 1.232 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003788/1.189, allocations: 233.4 kB / 1.232 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006075/1.19, allocations: 307.6 kB / 1.232 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/1.19, allocations: 38.89 kB / 1.232 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=39): time 2.544e-06/1.19, allocations: 3.938 kB / 1.232 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of matching and sorting (n=39): time 0.001426/1.191, allocations: 0.6148 MB / 1.233 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/1.191, allocations: 55.41 kB / 1.233 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000577/1.192, allocations: 0.495 MB / 1.233 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/1.192, allocations: 33.7 kB / 1.233 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002402/1.192, allocations: 332.4 kB / 1.234 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/1.193, allocations: 126.1 kB / 1.234 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/1.193, allocations: 94.03 kB / 1.234 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001525/1.193, allocations: 370.7 kB / 1.234 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003284/1.193, allocations: 179.6 kB / 1.234 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/1.194, allocations: 283.3 kB / 1.235 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007091/1.194, allocations: 449 kB / 1.235 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/1.194, allocations: 0 / 1.235 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009103/1.195, allocations: 0.5241 MB / 1.236 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/1.195, allocations: 4 kB / 1.236 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/1.195, allocations: 4 kB / 1.236 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/1.195, allocations: 4 kB / 1.236 GB, free: 7.07 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007122/1.196, allocations: 135.8 kB / 1.236 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003991/1.196, allocations: 0.6017 MB / 1.236 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005505/1.197, allocations: 52.2 kB / 1.236 GB, free: 6.262 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/1.197, allocations: 23.94 kB / 1.236 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005693/1.198, allocations: 356.8 kB / 1.237 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004036/1.198, allocations: 275.5 kB / 1.237 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006789/1.199, allocations: 452.4 kB / 1.237 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.683e-06/1.199, allocations: 4 kB / 1.237 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0008667/1.2, allocations: 0.5201 MB / 1.238 GB, free: 4.574 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/1.2, allocations: 7.938 kB / 1.238 GB, free: 4.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/1.2, allocations: 8.109 kB / 1.238 GB, free: 4.559 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/1.2, allocations: 8.219 kB / 1.238 GB, free: 4.551 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/1.2, allocations: 119.9 kB / 1.238 GB, free: 4.434 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/1.2, allocations: 8 kB / 1.238 GB, free: 4.426 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000521/1.201, allocations: 39.67 kB / 1.238 GB, free: 4.387 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/1.201, allocations: 20 kB / 1.238 GB, free: 4.367 MB / 0.9356 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.0001956/1.201, allocations: 204.9 kB / 1.238 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/1.201, allocations: 59.34 kB / 1.238 GB, free: 4.102 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000924/1.202, allocations: 492.3 kB / 1.239 GB, free: 3.617 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/1.202, allocations: 7.984 kB / 1.239 GB, free: 3.609 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.202, allocations: 3.938 kB / 1.239 GB, free: 3.605 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007847/1.203, allocations: 0.6988 MB / 1.239 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/1.205, allocations: 1.281 MB / 1.241 GB, free: 1.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/1.205, allocations: 4.156 kB / 1.241 GB, free: 1.457 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006349/1.206, allocations: 133.3 kB / 1.241 GB, free: 1.328 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/1.206, allocations: 0 / 1.241 GB, free: 1.328 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/1.206, allocations: 12 kB / 1.241 GB, free: 1.316 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000328/1.206, allocations: 0.5899 MB / 1.241 GB, free: 0.7031 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/1.206, allocations: 4.094 kB / 1.241 GB, free: 0.6992 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/1.207, allocations: 0.7945 MB / 1.242 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003184/1.207, allocations: 180.3 kB / 1.242 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.245e-05/1.208, allocations: 19.92 kB / 1.242 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004185/1.208, allocations: 19.89 kB / 1.242 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/1.208, allocations: 31.91 kB / 1.242 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.909e-05/1.208, allocations: 19.98 kB / 1.242 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004464/1.209, allocations: 346.8 kB / 1.243 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2e-07/1.209, allocations: 3.938 kB / 1.243 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001075/1.21, allocations: 359.2 kB / 1.243 GB, free: 14.89 MB / 0.9512 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.0005368/1.21, allocations: 217.4 kB / 1.243 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001509/1.212, allocations: 0.6799 MB / 1.244 GB, free: 14 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.212, allocations: 8.375 kB / 1.244 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004083/1.212, allocations: 215.7 kB / 1.244 GB, free: 13.78 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00155/1.214, allocations: 358.8 kB / 1.245 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/1.216, allocations: 1.379 MB / 1.246 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000522/1.217, allocations: 0.9457 MB / 1.247 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0006502/1.217, allocations: 204.9 kB / 1.247 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/1.217, allocations: 59.42 kB / 1.247 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of SimCode: time 1.142e-06/1.217, allocations: 0 / 1.247 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of Templates: time 0.02276/1.24, allocations: 12.38 MB / 1.259 GB, free: 14.56 MB / 0.9669 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 -s cvode -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