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.00842/0.00842, allocations: 99.5 kB / 15.73 MB, free: 6.055 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.002047/0.002047, allocations: 191.8 kB / 16.67 MB, free: 5.973 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.39/1.39, 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.419/2.419, allocations: 437 MB / 0.7105 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 63.84 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.861/0.8624, allocations: 151.6 MB / 1.167 GB, free: 3.996 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2022/1.065, allocations: 185.1 MB / 1.347 GB, free: 10.24 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.01013/1.075, allocations: 6.978 MB / 1.354 GB, free: 3.242 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/1.076, allocations: 31.81 kB / 1.354 GB, free: 3.211 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001199/1.077, allocations: 413.5 kB / 1.355 GB, free: 2.805 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.003789/1.081, allocations: 1.501 MB / 1.356 GB, free: 1.297 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.003113/1.084, allocations: 1.183 MB / 1.357 GB, free: 120 kB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.002738/1.087, allocations: 1.952 MB / 1.359 GB, free: 14.16 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/1.088, allocations: 0.6492 MB / 1.36 GB, free: 13.5 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001755/1.09, allocations: 0.8534 MB / 1.361 GB, free: 12.64 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001559/1.091, allocations: 0.6041 MB / 1.361 GB, free: 12.04 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0001859/1.091, allocations: 68 kB / 1.361 GB, free: 11.97 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003606/1.095, allocations: 1.945 MB / 1.363 GB, free: 10.02 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0003637/1.095, allocations: 287.2 kB / 1.363 GB, free: 9.742 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0006187/1.096, allocations: 426.1 kB / 1.364 GB, free: 9.324 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.003533/1.1, allocations: 1.779 MB / 1.366 GB, free: 7.539 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/1.1, allocations: 0 / 1.366 GB, free: 7.539 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.572e-06/1.1, allocations: 0 / 1.366 GB, free: 7.539 MB / 1.092 GB Notification: Performance of Transformations before backend: time 3.461e-05/1.1, allocations: 0 / 1.366 GB, free: 7.539 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.002526/1.102, allocations: 1.19 MB / 1.367 GB, free: 6.297 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/1.102, allocations: 12.92 kB / 1.367 GB, free: 6.285 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002169/1.104, allocations: 267.2 kB / 1.367 GB, free: 6.023 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/1.106, allocations: 0.6149 MB / 1.368 GB, free: 5.363 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/1.106, allocations: 45.31 kB / 1.368 GB, free: 5.32 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.278e-05/1.106, allocations: 59.89 kB / 1.368 GB, free: 5.262 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/1.107, allocations: 0.6362 MB / 1.368 GB, free: 4.609 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/1.107, allocations: 3.938 kB / 1.368 GB, free: 4.605 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-05/1.107, allocations: 20 kB / 1.368 GB, free: 4.586 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.906e-05/1.107, allocations: 21.31 kB / 1.368 GB, free: 4.566 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009211/1.108, allocations: 0.5204 MB / 1.369 GB, free: 4.047 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.003211/1.111, allocations: 2.457 MB / 1.371 GB, free: 1.375 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006589/1.112, allocations: 365.2 kB / 1.372 GB, free: 1.012 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00037/1.112, allocations: 238.3 kB / 1.372 GB, free: 0.7773 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005751/1.113, allocations: 307.6 kB / 1.372 GB, free: 432 kB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/1.113, allocations: 42.89 kB / 1.372 GB, free: 380 kB / 1.092 GB Notification: Performance of pre-optimization done (n=39): time 2.064e-06/1.113, allocations: 0 / 1.372 GB, free: 380 kB / 1.092 GB Notification: Performance of matching and sorting (n=39): time 0.001434/1.114, allocations: 0.6122 MB / 1.373 GB, free: 15.75 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/1.114, allocations: 55.41 kB / 1.373 GB, free: 15.69 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006026/1.115, allocations: 0.5029 MB / 1.373 GB, free: 15.17 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 5.398e-05/1.115, allocations: 29.7 kB / 1.373 GB, free: 15.14 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/1.115, allocations: 337 kB / 1.374 GB, free: 14.8 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/1.115, allocations: 146.7 kB / 1.374 GB, free: 14.66 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/1.115, allocations: 90.08 kB / 1.374 GB, free: 14.57 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001826/1.116, allocations: 370.7 kB / 1.374 GB, free: 14.2 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/1.116, allocations: 178.4 kB / 1.374 GB, free: 14.02 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004152/1.116, allocations: 275.4 kB / 1.375 GB, free: 13.71 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007174/1.117, allocations: 456.3 kB / 1.375 GB, free: 13.23 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/1.117, allocations: 0 / 1.375 GB, free: 13.23 MB / 1.107 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009217/1.118, allocations: 0.532 MB / 1.376 GB, free: 12.7 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/1.118, allocations: 8.281 kB / 1.376 GB, free: 12.69 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/1.118, allocations: 4 kB / 1.376 GB, free: 12.68 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/1.118, allocations: 4 kB / 1.376 GB, free: 12.68 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007458/1.119, allocations: 123.8 kB / 1.376 GB, free: 12.56 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004034/1.119, allocations: 0.5977 MB / 1.376 GB, free: 11.94 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005633/1.12, allocations: 59.73 kB / 1.376 GB, free: 11.88 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.566e-05/1.12, allocations: 16 kB / 1.376 GB, free: 11.86 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005354/1.12, allocations: 352.9 kB / 1.377 GB, free: 11.52 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004097/1.121, allocations: 279.4 kB / 1.377 GB, free: 11.2 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007035/1.122, allocations: 460.4 kB / 1.377 GB, free: 10.72 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.036e-06/1.122, allocations: 0 / 1.377 GB, free: 10.72 MB / 1.107 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009072/1.123, allocations: 0.5204 MB / 1.378 GB, free: 10.2 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/1.123, allocations: 8 kB / 1.378 GB, free: 10.19 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/1.123, allocations: 4 kB / 1.378 GB, free: 10.18 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.086e-06/1.123, allocations: 7.938 kB / 1.378 GB, free: 10.18 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005308/1.123, allocations: 120.1 kB / 1.378 GB, free: 10.06 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/1.123, allocations: 8 kB / 1.378 GB, free: 10.05 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004965/1.124, allocations: 43.77 kB / 1.378 GB, free: 10.01 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-05/1.124, allocations: 19.98 kB / 1.378 GB, free: 9.988 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.0001728/1.124, allocations: 204.5 kB / 1.378 GB, free: 9.781 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/1.124, allocations: 63.56 kB / 1.378 GB, free: 9.719 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009233/1.125, allocations: 494.5 kB / 1.379 GB, free: 9.223 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/1.125, allocations: 4 kB / 1.379 GB, free: 9.219 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/1.125, allocations: 0 / 1.379 GB, free: 9.219 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008152/1.126, allocations: 0.7027 MB / 1.38 GB, free: 8.43 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/1.128, allocations: 1.278 MB / 1.381 GB, free: 7.074 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-06/1.128, allocations: 4 kB / 1.381 GB, free: 7.07 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006265/1.128, allocations: 128 kB / 1.381 GB, free: 6.945 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/1.128, allocations: 4 kB / 1.381 GB, free: 6.941 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/1.128, allocations: 11.98 kB / 1.381 GB, free: 6.93 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003275/1.129, allocations: 0.6015 MB / 1.382 GB, free: 6.305 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.329e-06/1.129, allocations: 4.031 kB / 1.382 GB, free: 6.301 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/1.13, allocations: 0.8032 MB / 1.382 GB, free: 5.461 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/1.13, allocations: 184.6 kB / 1.383 GB, free: 5.262 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.672e-05/1.13, allocations: 15.94 kB / 1.383 GB, free: 5.246 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000448/1.131, allocations: 15.98 kB / 1.383 GB, free: 5.23 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.215e-05/1.131, allocations: 31.95 kB / 1.383 GB, free: 5.199 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.345e-05/1.131, allocations: 16 kB / 1.383 GB, free: 5.184 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.0003928/1.131, allocations: 346.8 kB / 1.383 GB, free: 4.848 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.6e-07/1.131, allocations: 4 kB / 1.383 GB, free: 4.844 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.0009739/1.132, allocations: 371.3 kB / 1.383 GB, free: 4.48 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.0004646/1.133, allocations: 199.3 kB / 1.383 GB, free: 4.285 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.001488/1.134, allocations: 0.6717 MB / 1.384 GB, free: 3.613 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/1.134, allocations: 0 / 1.384 GB, free: 3.613 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0004523/1.135, allocations: 233.2 kB / 1.384 GB, free: 3.387 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/1.136, allocations: 361.5 kB / 1.385 GB, free: 3.043 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/1.139, allocations: 1.409 MB / 1.386 GB, free: 1.586 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005808/1.139, allocations: 0.9496 MB / 1.387 GB, free: 0.6094 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0006173/1.14, allocations: 204.9 kB / 1.387 GB, free: 420 kB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/1.14, allocations: 51.44 kB / 1.387 GB, free: 368 kB / 1.107 GB Notification: Performance of SimCode: time 1.963e-06/1.14, allocations: 0 / 1.387 GB, free: 368 kB / 1.107 GB Notification: Performance of Templates: time 0.02148/1.162, allocations: 12.48 MB / 1.399 GB, free: 4.062 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