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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001416/0.001416, allocations: 107.4 kB / 16.41 MB, free: 6.5 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.001395/0.001395, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.371/1.371, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.645/2.645, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 64.12 kB / 1.055 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.872/0.8735, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2002/1.074, allocations: 185.1 MB / 1.389 GB, free: 3.848 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.0107/1.084, allocations: 6.971 MB / 1.396 GB, free: 12.85 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001273/1.086, allocations: 27.81 kB / 1.396 GB, free: 12.82 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.0014/1.087, allocations: 405.5 kB / 1.396 GB, free: 12.43 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.004156/1.091, allocations: 1.439 MB / 1.398 GB, free: 10.98 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.003488/1.095, allocations: 1.163 MB / 1.399 GB, free: 9.82 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.002919/1.098, allocations: 1.945 MB / 1.401 GB, free: 7.867 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001214/1.099, allocations: 0.655 MB / 1.401 GB, free: 7.203 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001899/1.101, allocations: 0.8445 MB / 1.402 GB, free: 6.355 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/1.103, allocations: 0.6034 MB / 1.403 GB, free: 5.754 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0002617/1.103, allocations: 68 kB / 1.403 GB, free: 5.688 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004015/1.107, allocations: 1.925 MB / 1.405 GB, free: 3.758 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.000488/1.107, allocations: 299.1 kB / 1.405 GB, free: 3.465 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.0009377/1.108, allocations: 430.1 kB / 1.406 GB, free: 3.043 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.004121/1.113, allocations: 1.753 MB / 1.407 GB, free: 1.285 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/1.113, allocations: 0 / 1.407 GB, free: 1.285 MB / 1.123 GB Notification: Performance of FrontEnd: time 5.08e-06/1.113, allocations: 4 kB / 1.407 GB, free: 1.281 MB / 1.123 GB Notification: Performance of Transformations before backend: time 4.123e-05/1.113, allocations: 0 / 1.407 GB, free: 1.281 MB / 1.123 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.002655/1.115, allocations: 1.161 MB / 1.408 GB, free: 72 kB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/1.115, allocations: 8.031 kB / 1.408 GB, free: 64 kB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002131/1.117, allocations: 270.8 kB / 1.409 GB, free: 15.8 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/1.119, allocations: 0.6143 MB / 1.409 GB, free: 15.14 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.051e-05/1.119, allocations: 45.25 kB / 1.409 GB, free: 15.09 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/1.119, allocations: 56 kB / 1.409 GB, free: 15.04 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/1.12, allocations: 0.6323 MB / 1.41 GB, free: 14.39 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/1.12, allocations: 3.938 kB / 1.41 GB, free: 14.39 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.231e-05/1.12, allocations: 24 kB / 1.41 GB, free: 14.36 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.243e-05/1.12, allocations: 21.3 kB / 1.41 GB, free: 14.34 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009962/1.121, allocations: 0.5204 MB / 1.41 GB, free: 13.82 MB / 1.139 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.003391/1.125, allocations: 2.457 MB / 1.413 GB, free: 11.15 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006669/1.125, allocations: 367.4 kB / 1.413 GB, free: 10.79 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003914/1.126, allocations: 233.4 kB / 1.413 GB, free: 10.55 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005667/1.126, allocations: 315.5 kB / 1.414 GB, free: 10.19 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/1.126, allocations: 34.89 kB / 1.414 GB, free: 10.15 MB / 1.139 GB Notification: Performance of pre-optimization done (n=39): time 2.164e-06/1.126, allocations: 0 / 1.414 GB, free: 10.15 MB / 1.139 GB Notification: Performance of matching and sorting (n=39): time 0.001465/1.128, allocations: 0.6147 MB / 1.414 GB, free: 9.527 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/1.128, allocations: 63.34 kB / 1.414 GB, free: 9.453 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006122/1.129, allocations: 0.4911 MB / 1.415 GB, free: 8.953 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/1.129, allocations: 37.7 kB / 1.415 GB, free: 8.91 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/1.129, allocations: 328.4 kB / 1.415 GB, free: 8.582 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/1.129, allocations: 138 kB / 1.415 GB, free: 8.445 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/1.129, allocations: 90.03 kB / 1.416 GB, free: 8.352 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001424/1.129, allocations: 370.7 kB / 1.416 GB, free: 7.98 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003257/1.13, allocations: 174.5 kB / 1.416 GB, free: 7.805 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/1.13, allocations: 279.4 kB / 1.416 GB, free: 7.496 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007122/1.131, allocations: 452.2 kB / 1.417 GB, free: 7.023 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/1.131, allocations: 0 / 1.417 GB, free: 7.023 MB / 1.139 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009501/1.132, allocations: 0.528 MB / 1.417 GB, free: 6.488 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/1.132, allocations: 4 kB / 1.417 GB, free: 6.484 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/1.132, allocations: 4 kB / 1.417 GB, free: 6.48 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/1.132, allocations: 7.984 kB / 1.417 GB, free: 6.473 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007208/1.133, allocations: 135.8 kB / 1.417 GB, free: 6.34 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003859/1.133, allocations: 0.5977 MB / 1.418 GB, free: 5.719 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005923/1.134, allocations: 51.55 kB / 1.418 GB, free: 5.668 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.036e-05/1.134, allocations: 23.98 kB / 1.418 GB, free: 5.645 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005378/1.134, allocations: 344.9 kB / 1.418 GB, free: 5.305 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003912/1.135, allocations: 283.5 kB / 1.419 GB, free: 4.984 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007087/1.135, allocations: 452.4 kB / 1.419 GB, free: 4.512 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.998e-06/1.135, allocations: 4 kB / 1.419 GB, free: 4.508 MB / 1.139 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009148/1.136, allocations: 0.5239 MB / 1.42 GB, free: 3.977 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/1.136, allocations: 4 kB / 1.42 GB, free: 3.973 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/1.136, allocations: 4 kB / 1.42 GB, free: 3.969 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/1.136, allocations: 11.88 kB / 1.42 GB, free: 3.957 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005074/1.137, allocations: 124.1 kB / 1.42 GB, free: 3.836 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/1.137, allocations: 4 kB / 1.42 GB, free: 3.832 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005727/1.137, allocations: 39.67 kB / 1.42 GB, free: 3.793 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/1.137, allocations: 23.94 kB / 1.42 GB, free: 3.77 MB / 1.139 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.0002038/1.138, allocations: 212.1 kB / 1.42 GB, free: 3.555 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/1.138, allocations: 63.19 kB / 1.42 GB, free: 3.492 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009087/1.139, allocations: 491.9 kB / 1.421 GB, free: 3.008 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/1.139, allocations: 4 kB / 1.421 GB, free: 3.004 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/1.139, allocations: 0 / 1.421 GB, free: 3.004 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008066/1.14, allocations: 0.7029 MB / 1.421 GB, free: 2.215 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00206/1.142, allocations: 1.289 MB / 1.422 GB, free: 0.8477 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/1.142, allocations: 0 / 1.422 GB, free: 0.8477 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000628/1.142, allocations: 124.1 kB / 1.423 GB, free: 0.7266 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/1.142, allocations: 4 kB / 1.423 GB, free: 0.7227 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.521e-05/1.142, allocations: 12 kB / 1.423 GB, free: 0.7109 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003004/1.143, allocations: 0.5937 MB / 1.423 GB, free: 96 kB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.143, allocations: 4 kB / 1.423 GB, free: 92 kB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/1.144, allocations: 0.794 MB / 1.424 GB, free: 15.25 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002614/1.144, allocations: 188.3 kB / 1.424 GB, free: 15.05 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/1.144, allocations: 11.94 kB / 1.424 GB, free: 15.04 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000456/1.145, allocations: 21.02 kB / 1.424 GB, free: 15.02 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.062e-05/1.145, allocations: 23.97 kB / 1.424 GB, free: 15 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.267e-05/1.145, allocations: 15.98 kB / 1.424 GB, free: 14.98 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0004121/1.145, allocations: 354.8 kB / 1.425 GB, free: 14.64 MB / 1.154 GB Notification: Performance of sort global known variables: time 2.41e-07/1.145, allocations: 4 kB / 1.425 GB, free: 14.63 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.001052/1.146, allocations: 359.1 kB / 1.425 GB, free: 14.28 MB / 1.154 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.0005377/1.147, allocations: 212.3 kB / 1.425 GB, free: 14.07 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.001497/1.148, allocations: 0.6722 MB / 1.426 GB, free: 13.4 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/1.148, allocations: 0 / 1.426 GB, free: 13.4 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0004575/1.149, allocations: 220 kB / 1.426 GB, free: 13.19 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/1.151, allocations: 364.4 kB / 1.426 GB, free: 12.84 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/1.153, allocations: 1.431 MB / 1.428 GB, free: 11.35 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005292/1.153, allocations: 0.9495 MB / 1.429 GB, free: 10.38 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/1.154, allocations: 51.44 kB / 1.429 GB, free: 10.32 MB / 1.154 GB Notification: Performance of SimCode: time 6.51e-07/1.154, allocations: 0 / 1.429 GB, free: 10.32 MB / 1.154 GB Notification: Performance of Templates: time 0.0193/1.173, allocations: 13.01 MB / 1.441 GB, free: 13.4 MB / 1.17 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/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