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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.008029/0.008029, allocations: 104.1 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.0019/0.0019, allocations: 189.7 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.413/1.413, allocations: 222.9 MB / 240.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 390.2 MB / 0.6648 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 63.91 kB / 0.9508 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9463/0.9475, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2282/1.176, allocations: 185.1 MB / 1.269 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01122/1.187, allocations: 6.972 MB / 1.275 GB, free: 13.61 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001253/1.188, allocations: 31.81 kB / 1.275 GB, free: 13.58 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001294/1.19, allocations: 409.5 kB / 1.276 GB, free: 13.18 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.003941/1.194, allocations: 1.505 MB / 1.277 GB, free: 11.67 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.00306/1.197, allocations: 1.174 MB / 1.279 GB, free: 10.5 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.002724/1.2, allocations: 1.952 MB / 1.28 GB, free: 8.539 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009648/1.201, allocations: 0.6629 MB / 1.281 GB, free: 7.867 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001631/1.202, allocations: 0.8484 MB / 1.282 GB, free: 7.016 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001194/1.203, allocations: 0.5981 MB / 1.282 GB, free: 6.418 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0001098/1.203, allocations: 68 kB / 1.283 GB, free: 6.352 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003678/1.207, allocations: 1.941 MB / 1.284 GB, free: 4.406 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0003283/1.208, allocations: 287.2 kB / 1.285 GB, free: 4.125 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0005375/1.208, allocations: 434 kB / 1.285 GB, free: 3.699 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002968/1.211, allocations: 1.757 MB / 1.287 GB, free: 1.938 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/1.211, allocations: 8 kB / 1.287 GB, free: 1.93 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.503e-06/1.211, allocations: 0 / 1.287 GB, free: 1.93 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.056e-05/1.211, allocations: 0 / 1.287 GB, free: 1.93 MB / 1.014 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.001744/1.213, allocations: 1.149 MB / 1.288 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/1.213, allocations: 12.03 kB / 1.288 GB, free: 0.7188 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001885/1.215, allocations: 270.7 kB / 1.288 GB, free: 464 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009902/1.216, allocations: 0.6182 MB / 1.289 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.868e-05/1.216, allocations: 41.31 kB / 1.289 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.417e-05/1.216, allocations: 56 kB / 1.289 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/1.217, allocations: 0.6323 MB / 1.29 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/1.217, allocations: 7.938 kB / 1.29 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.584e-05/1.217, allocations: 24 kB / 1.29 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.976e-05/1.217, allocations: 21.3 kB / 1.29 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009008/1.218, allocations: 0.5243 MB / 1.29 GB, free: 14.47 MB / 1.029 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.002927/1.221, allocations: 2.445 MB / 1.292 GB, free: 11.81 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000628/1.222, allocations: 363.5 kB / 1.293 GB, free: 11.45 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003618/1.222, allocations: 238.6 kB / 1.293 GB, free: 11.21 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005656/1.223, allocations: 311.5 kB / 1.293 GB, free: 10.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/1.223, allocations: 34.89 kB / 1.293 GB, free: 10.81 MB / 1.029 GB Notification: Performance of pre-optimization done (n=39): time 2.836e-06/1.223, allocations: 4 kB / 1.293 GB, free: 10.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=39): time 0.001355/1.224, allocations: 0.6147 MB / 1.294 GB, free: 10.19 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/1.224, allocations: 59.39 kB / 1.294 GB, free: 10.12 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005264/1.225, allocations: 0.4911 MB / 1.295 GB, free: 9.617 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/1.225, allocations: 37.7 kB / 1.295 GB, free: 9.574 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/1.225, allocations: 328.4 kB / 1.295 GB, free: 9.246 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/1.225, allocations: 145.9 kB / 1.295 GB, free: 9.102 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/1.225, allocations: 86.12 kB / 1.295 GB, free: 9.012 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001354/1.225, allocations: 370.7 kB / 1.295 GB, free: 8.641 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003159/1.226, allocations: 170.5 kB / 1.296 GB, free: 8.473 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003939/1.226, allocations: 291.3 kB / 1.296 GB, free: 8.148 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006664/1.227, allocations: 456.2 kB / 1.296 GB, free: 7.672 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/1.227, allocations: 4 kB / 1.296 GB, free: 7.668 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008733/1.228, allocations: 0.52 MB / 1.297 GB, free: 7.141 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/1.228, allocations: 6.344 kB / 1.297 GB, free: 7.137 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/1.228, allocations: 4 kB / 1.297 GB, free: 7.133 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/1.228, allocations: 8.281 kB / 1.297 GB, free: 7.125 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006821/1.228, allocations: 131.8 kB / 1.297 GB, free: 6.996 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003542/1.229, allocations: 0.5938 MB / 1.298 GB, free: 6.379 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004793/1.229, allocations: 55.64 kB / 1.298 GB, free: 6.324 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.834e-05/1.229, allocations: 24.06 kB / 1.298 GB, free: 6.301 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004954/1.23, allocations: 348.8 kB / 1.298 GB, free: 5.957 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003834/1.23, allocations: 287.4 kB / 1.298 GB, free: 5.637 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006733/1.231, allocations: 444.6 kB / 1.299 GB, free: 5.172 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.084e-06/1.231, allocations: 4 kB / 1.299 GB, free: 5.168 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0008792/1.232, allocations: 0.524 MB / 1.299 GB, free: 4.637 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/1.232, allocations: 7.938 kB / 1.299 GB, free: 4.629 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/1.232, allocations: 4 kB / 1.299 GB, free: 4.625 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.093e-06/1.232, allocations: 7.938 kB / 1.299 GB, free: 4.617 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004819/1.232, allocations: 111.9 kB / 1.299 GB, free: 4.508 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/1.232, allocations: 7.984 kB / 1.299 GB, free: 4.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004753/1.233, allocations: 47.86 kB / 1.299 GB, free: 4.453 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.531e-05/1.233, allocations: 16 kB / 1.299 GB, free: 4.438 MB / 1.029 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.0001733/1.233, allocations: 208.1 kB / 1.3 GB, free: 4.227 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.977e-05/1.233, allocations: 63.19 kB / 1.3 GB, free: 4.164 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008886/1.234, allocations: 484 kB / 1.3 GB, free: 3.68 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/1.234, allocations: 8 kB / 1.3 GB, free: 3.672 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/1.234, allocations: 3.938 kB / 1.3 GB, free: 3.668 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000966/1.235, allocations: 0.7069 MB / 1.301 GB, free: 2.875 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002934/1.238, allocations: 1.284 MB / 1.302 GB, free: 1.512 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.238, allocations: 0 / 1.302 GB, free: 1.512 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008726/1.239, allocations: 119.8 kB / 1.302 GB, free: 1.395 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/1.239, allocations: 8.219 kB / 1.302 GB, free: 1.387 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.952e-05/1.239, allocations: 15.98 kB / 1.302 GB, free: 1.371 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003805/1.239, allocations: 0.5937 MB / 1.303 GB, free: 0.7539 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.239, allocations: 4.031 kB / 1.303 GB, free: 0.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/1.241, allocations: 0.79 MB / 1.304 GB, free: 15.92 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004081/1.241, allocations: 188.3 kB / 1.304 GB, free: 15.72 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/1.242, allocations: 15.92 kB / 1.304 GB, free: 15.7 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006311/1.242, allocations: 19.98 kB / 1.304 GB, free: 15.68 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/1.242, allocations: 31.91 kB / 1.304 GB, free: 15.65 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.867e-05/1.242, allocations: 8.062 kB / 1.304 GB, free: 15.64 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0005333/1.243, allocations: 358.8 kB / 1.304 GB, free: 15.3 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.6e-07/1.243, allocations: 0 / 1.304 GB, free: 15.3 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001096/1.244, allocations: 355.2 kB / 1.304 GB, free: 14.95 MB / 1.045 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.0005493/1.245, allocations: 213.3 kB / 1.305 GB, free: 14.74 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001453/1.246, allocations: 0.6673 MB / 1.305 GB, free: 14.07 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.246, allocations: 0 / 1.305 GB, free: 14.07 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004008/1.246, allocations: 224.8 kB / 1.306 GB, free: 13.85 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/1.248, allocations: 374.9 kB / 1.306 GB, free: 13.5 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/1.25, allocations: 1.383 MB / 1.307 GB, free: 12.07 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/1.251, allocations: 0.9457 MB / 1.308 GB, free: 11.1 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0005765/1.251, allocations: 208.9 kB / 1.308 GB, free: 10.89 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/1.251, allocations: 51.42 kB / 1.308 GB, free: 10.84 MB / 1.045 GB Notification: Performance of SimCode: time 3.5e-07/1.251, allocations: 0 / 1.308 GB, free: 10.84 MB / 1.045 GB Notification: Performance of Templates: time 0.02114/1.273, allocations: 12.49 MB / 1.321 GB, free: 14.54 MB / 1.061 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches