Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.005849/0.005849, allocations: 97.33 kB / 15.73 MB, free: 5.578 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.001225/0.001225, allocations: 188.4 kB / 16.67 MB, free: 5.516 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.626/2.626, allocations: 437 MB / 0.7105 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 71.89 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9057/0.9072, allocations: 151.6 MB / 1.167 GB, free: 4.023 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2137/1.121, allocations: 185.1 MB / 1.347 GB, free: 10.27 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.01138/1.132, allocations: 6.989 MB / 1.354 GB, free: 3.258 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00106/1.133, allocations: 31.81 kB / 1.354 GB, free: 3.227 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.00115/1.135, allocations: 401.5 kB / 1.355 GB, free: 2.832 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.003963/1.139, allocations: 1.439 MB / 1.356 GB, free: 1.387 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.003309/1.142, allocations: 1.171 MB / 1.357 GB, free: 224 kB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.002994/1.145, allocations: 1.945 MB / 1.359 GB, free: 14.27 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/1.146, allocations: 0.6492 MB / 1.36 GB, free: 13.61 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001717/1.148, allocations: 0.8299 MB / 1.36 GB, free: 12.77 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001374/1.149, allocations: 0.5998 MB / 1.361 GB, free: 12.18 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0001316/1.149, allocations: 68 kB / 1.361 GB, free: 12.11 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00411/1.153, allocations: 1.925 MB / 1.363 GB, free: 10.18 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0003909/1.154, allocations: 291.2 kB / 1.363 GB, free: 9.895 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0005798/1.154, allocations: 434 kB / 1.364 GB, free: 9.469 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.003561/1.158, allocations: 1.768 MB / 1.365 GB, free: 7.695 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/1.158, allocations: 0 / 1.365 GB, free: 7.695 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.233e-06/1.158, allocations: 0 / 1.365 GB, free: 7.695 MB / 1.092 GB Notification: Performance of Transformations before backend: time 1.909e-05/1.158, allocations: 0 / 1.365 GB, free: 7.695 MB / 1.092 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.001941/1.16, allocations: 1.194 MB / 1.367 GB, free: 6.449 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/1.16, allocations: 8.031 kB / 1.367 GB, free: 6.441 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001929/1.162, allocations: 279.2 kB / 1.367 GB, free: 6.168 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/1.163, allocations: 0.6149 MB / 1.367 GB, free: 5.508 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.45e-05/1.163, allocations: 41.31 kB / 1.367 GB, free: 5.469 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/1.163, allocations: 59.95 kB / 1.368 GB, free: 5.41 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/1.164, allocations: 0.6284 MB / 1.368 GB, free: 4.766 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.425e-05/1.164, allocations: 3.938 kB / 1.368 GB, free: 4.762 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.712e-05/1.164, allocations: 28 kB / 1.368 GB, free: 4.734 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.01e-05/1.164, allocations: 17.31 kB / 1.368 GB, free: 4.719 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009715/1.165, allocations: 0.5243 MB / 1.369 GB, free: 4.195 MB / 1.092 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.00323/1.169, allocations: 2.454 MB / 1.371 GB, free: 1.527 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007587/1.169, allocations: 369.2 kB / 1.371 GB, free: 1.16 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003879/1.17, allocations: 237.3 kB / 1.372 GB, free: 0.9258 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005606/1.17, allocations: 303.6 kB / 1.372 GB, free: 0.5742 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/1.17, allocations: 38.89 kB / 1.372 GB, free: 0.5273 MB / 1.092 GB Notification: Performance of pre-optimization done (n=39): time 2.454e-06/1.17, allocations: 0 / 1.372 GB, free: 0.5273 MB / 1.092 GB Notification: Performance of matching and sorting (n=39): time 0.001491/1.172, allocations: 0.6199 MB / 1.373 GB, free: 15.9 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/1.172, allocations: 55.41 kB / 1.373 GB, free: 15.84 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005571/1.173, allocations: 0.4989 MB / 1.373 GB, free: 15.32 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 4.104e-05/1.173, allocations: 37.64 kB / 1.373 GB, free: 15.28 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/1.173, allocations: 333 kB / 1.374 GB, free: 14.95 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/1.173, allocations: 146.7 kB / 1.374 GB, free: 14.81 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/1.173, allocations: 94.08 kB / 1.374 GB, free: 14.71 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0002372/1.173, allocations: 366.7 kB / 1.374 GB, free: 14.34 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000356/1.174, allocations: 174.5 kB / 1.374 GB, free: 14.17 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004056/1.174, allocations: 283.4 kB / 1.375 GB, free: 13.86 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007689/1.175, allocations: 448.3 kB / 1.375 GB, free: 13.39 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/1.175, allocations: 4.062 kB / 1.375 GB, free: 13.38 MB / 1.107 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001042/1.176, allocations: 0.5359 MB / 1.375 GB, free: 12.84 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/1.176, allocations: 4 kB / 1.376 GB, free: 12.84 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/1.176, allocations: 4 kB / 1.376 GB, free: 12.83 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/1.176, allocations: 4 kB / 1.376 GB, free: 12.83 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007699/1.177, allocations: 132.1 kB / 1.376 GB, free: 12.7 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005441/1.177, allocations: 0.5898 MB / 1.376 GB, free: 12.09 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/1.178, allocations: 55.64 kB / 1.376 GB, free: 12.03 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/1.178, allocations: 23.98 kB / 1.376 GB, free: 12.01 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005838/1.179, allocations: 353 kB / 1.377 GB, free: 11.66 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004153/1.179, allocations: 279.3 kB / 1.377 GB, free: 11.35 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007522/1.18, allocations: 460.3 kB / 1.377 GB, free: 10.87 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.864e-06/1.18, allocations: 0 / 1.377 GB, free: 10.87 MB / 1.107 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009127/1.181, allocations: 0.5204 MB / 1.378 GB, free: 10.34 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/1.181, allocations: 4.281 kB / 1.378 GB, free: 10.34 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/1.181, allocations: 8 kB / 1.378 GB, free: 10.33 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.433e-06/1.181, allocations: 7.938 kB / 1.378 GB, free: 10.32 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005025/1.181, allocations: 115.8 kB / 1.378 GB, free: 10.21 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/1.181, allocations: 8 kB / 1.378 GB, free: 10.2 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005058/1.182, allocations: 39.81 kB / 1.378 GB, free: 10.16 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/1.182, allocations: 20 kB / 1.378 GB, free: 10.14 MB / 1.107 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.000192/1.182, allocations: 212.4 kB / 1.378 GB, free: 9.926 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/1.182, allocations: 63.56 kB / 1.378 GB, free: 9.863 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009804/1.183, allocations: 490.6 kB / 1.379 GB, free: 9.371 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/1.183, allocations: 4 kB / 1.379 GB, free: 9.367 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/1.183, allocations: 3.938 kB / 1.379 GB, free: 9.363 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008547/1.184, allocations: 0.7065 MB / 1.379 GB, free: 8.57 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/1.186, allocations: 1.282 MB / 1.381 GB, free: 7.211 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/1.186, allocations: 0 / 1.381 GB, free: 7.211 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006374/1.187, allocations: 127.8 kB / 1.381 GB, free: 7.086 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.054e-06/1.187, allocations: 0 / 1.381 GB, free: 7.086 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/1.187, allocations: 15.98 kB / 1.381 GB, free: 7.07 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003316/1.187, allocations: 0.6057 MB / 1.381 GB, free: 6.441 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.187, allocations: 0 / 1.381 GB, free: 6.441 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/1.189, allocations: 0.7993 MB / 1.382 GB, free: 5.605 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002563/1.189, allocations: 180.7 kB / 1.382 GB, free: 5.41 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.984e-05/1.189, allocations: 19.94 kB / 1.382 GB, free: 5.391 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004317/1.189, allocations: 15.98 kB / 1.382 GB, free: 5.375 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.051e-05/1.19, allocations: 31.95 kB / 1.382 GB, free: 5.344 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.634e-05/1.19, allocations: 16 kB / 1.382 GB, free: 5.328 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.0004267/1.19, allocations: 350.8 kB / 1.383 GB, free: 4.988 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.803e-06/1.19, allocations: 0 / 1.383 GB, free: 4.988 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.001018/1.191, allocations: 371.2 kB / 1.383 GB, free: 4.625 MB / 1.107 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.0005058/1.192, allocations: 204.5 kB / 1.383 GB, free: 4.426 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.001623/1.193, allocations: 0.6685 MB / 1.384 GB, free: 3.758 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/1.193, allocations: 4 kB / 1.384 GB, free: 3.754 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0004459/1.194, allocations: 223.7 kB / 1.384 GB, free: 3.535 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/1.195, allocations: 366.1 kB / 1.385 GB, free: 3.188 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/1.198, allocations: 1.403 MB / 1.386 GB, free: 1.734 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/1.198, allocations: 0.9535 MB / 1.387 GB, free: 0.7539 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0006424/1.199, allocations: 204.9 kB / 1.387 GB, free: 0.5547 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/1.199, allocations: 51.44 kB / 1.387 GB, free: 0.5039 MB / 1.107 GB Notification: Performance of SimCode: time 4.61e-07/1.199, allocations: 4 kB / 1.387 GB, free: 0.5 MB / 1.107 GB Notification: Performance of Templates: time 0.02164/1.221, allocations: 12.48 MB / 1.399 GB, free: 4.207 MB / 1.123 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches