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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001518/0.001518, allocations: 102.6 kB / 16.27 MB, free: 5.996 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.001545/0.001545, allocations: 186.5 kB / 17.2 MB, free: 5.605 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.397/1.397, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.731/2.731, allocations: 482.4 MB / 0.7553 GB, free: 6.953 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 68.8 kB / 0.9245 GB, free: 15.95 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7889/0.7908, allocations: 162.2 MB / 1.083 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2335/1.024, allocations: 185.1 MB / 1.264 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01115/1.036, allocations: 6.974 MB / 1.27 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/1.037, allocations: 31.81 kB / 1.271 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001242/1.038, allocations: 409.4 kB / 1.271 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00408/1.042, allocations: 1.435 MB / 1.272 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003484/1.046, allocations: 1.151 MB / 1.273 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003014/1.049, allocations: 1.948 MB / 1.275 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001132/1.05, allocations: 0.6647 MB / 1.276 GB, free: 8.566 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002433/1.052, allocations: 1.024 MB / 1.277 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001473/1.054, allocations: 0.5899 MB / 1.278 GB, free: 6.949 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001608/1.054, allocations: 68 kB / 1.278 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004352/1.058, allocations: 1.914 MB / 1.279 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004547/1.059, allocations: 287.2 kB / 1.28 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006499/1.06, allocations: 430.1 kB / 1.28 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003495/1.063, allocations: 1.745 MB / 1.282 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/1.063, allocations: 3.984 kB / 1.282 GB, free: 2.508 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.074e-06/1.063, allocations: 0 / 1.282 GB, free: 2.508 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.553e-05/1.063, allocations: 4 kB / 1.282 GB, free: 2.504 MB / 0.9981 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.002029/1.065, allocations: 1.161 MB / 1.283 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/1.065, allocations: 8.031 kB / 1.283 GB, free: 1.285 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001941/1.067, allocations: 274.8 kB / 1.283 GB, free: 1.016 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009856/1.068, allocations: 0.5753 MB / 1.284 GB, free: 408 kB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/1.068, allocations: 37.31 kB / 1.284 GB, free: 372 kB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/1.068, allocations: 63.98 kB / 1.284 GB, free: 308 kB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/1.069, allocations: 0.6284 MB / 1.285 GB, free: 15.66 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/1.069, allocations: 3.938 kB / 1.285 GB, free: 15.65 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.753e-05/1.07, allocations: 23.94 kB / 1.285 GB, free: 15.63 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.167e-05/1.07, allocations: 25.3 kB / 1.285 GB, free: 15.61 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/1.071, allocations: 0.5204 MB / 1.285 GB, free: 15.09 MB / 1.014 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.003456/1.074, allocations: 2.548 MB / 1.288 GB, free: 12.3 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007203/1.075, allocations: 363.5 kB / 1.288 GB, free: 11.94 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004193/1.075, allocations: 237.4 kB / 1.288 GB, free: 11.71 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006252/1.076, allocations: 303.6 kB / 1.288 GB, free: 11.36 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/1.076, allocations: 46.88 kB / 1.289 GB, free: 11.3 MB / 1.014 GB Notification: Performance of pre-optimization done (n=39): time 2.384e-06/1.076, allocations: 0 / 1.289 GB, free: 11.3 MB / 1.014 GB Notification: Performance of matching and sorting (n=39): time 0.001494/1.077, allocations: 0.6104 MB / 1.289 GB, free: 10.68 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/1.078, allocations: 59.39 kB / 1.289 GB, free: 10.61 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006425/1.078, allocations: 0.4951 MB / 1.29 GB, free: 10.11 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.5e-05/1.078, allocations: 33.7 kB / 1.29 GB, free: 10.07 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002698/1.079, allocations: 328.4 kB / 1.29 GB, free: 9.742 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/1.079, allocations: 138 kB / 1.29 GB, free: 9.605 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/1.079, allocations: 94.03 kB / 1.29 GB, free: 9.508 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002008/1.079, allocations: 366.7 kB / 1.291 GB, free: 9.141 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003411/1.079, allocations: 170.5 kB / 1.291 GB, free: 8.973 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000462/1.08, allocations: 287.4 kB / 1.291 GB, free: 8.652 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007903/1.081, allocations: 448.3 kB / 1.291 GB, free: 8.184 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/1.081, allocations: 0 / 1.291 GB, free: 8.184 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009829/1.082, allocations: 0.5239 MB / 1.292 GB, free: 7.652 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/1.082, allocations: 8.281 kB / 1.292 GB, free: 7.645 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/1.082, allocations: 4 kB / 1.292 GB, free: 7.641 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/1.082, allocations: 8 kB / 1.292 GB, free: 7.633 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007699/1.082, allocations: 123.8 kB / 1.292 GB, free: 7.512 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004881/1.083, allocations: 0.6015 MB / 1.293 GB, free: 6.887 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000554/1.084, allocations: 55.61 kB / 1.293 GB, free: 6.832 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.534e-05/1.084, allocations: 20.05 kB / 1.293 GB, free: 6.812 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005689/1.084, allocations: 352.9 kB / 1.293 GB, free: 6.465 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004453/1.085, allocations: 287.3 kB / 1.293 GB, free: 6.145 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007528/1.085, allocations: 456.3 kB / 1.294 GB, free: 5.668 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.794e-06/1.085, allocations: 0 / 1.294 GB, free: 5.668 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009558/1.086, allocations: 0.5162 MB / 1.294 GB, free: 5.145 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/1.086, allocations: 8 kB / 1.294 GB, free: 5.137 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/1.086, allocations: 0 / 1.294 GB, free: 5.137 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.427e-06/1.086, allocations: 7.938 kB / 1.294 GB, free: 5.129 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005222/1.087, allocations: 119.8 kB / 1.294 GB, free: 5.012 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/1.087, allocations: 8.266 kB / 1.294 GB, free: 5.004 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/1.087, allocations: 47.67 kB / 1.294 GB, free: 4.957 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/1.088, allocations: 19.94 kB / 1.294 GB, free: 4.938 MB / 1.014 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.0001955/1.088, allocations: 212.1 kB / 1.295 GB, free: 4.723 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/1.088, allocations: 67.19 kB / 1.295 GB, free: 4.656 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009601/1.089, allocations: 480 kB / 1.295 GB, free: 4.18 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/1.089, allocations: 4 kB / 1.295 GB, free: 4.176 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/1.089, allocations: 0 / 1.295 GB, free: 4.176 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009182/1.09, allocations: 0.7107 MB / 1.296 GB, free: 3.379 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002117/1.092, allocations: 1.28 MB / 1.297 GB, free: 2.02 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/1.092, allocations: 4 kB / 1.297 GB, free: 2.016 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006188/1.093, allocations: 116.1 kB / 1.297 GB, free: 1.902 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.636e-06/1.093, allocations: 4 kB / 1.297 GB, free: 1.898 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/1.093, allocations: 15.98 kB / 1.297 GB, free: 1.883 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003962/1.093, allocations: 0.5976 MB / 1.298 GB, free: 1.262 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.145e-06/1.093, allocations: 0 / 1.298 GB, free: 1.262 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/1.094, allocations: 0.8017 MB / 1.299 GB, free: 428 kB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002588/1.095, allocations: 180.3 kB / 1.299 GB, free: 228 kB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.932e-05/1.095, allocations: 11.94 kB / 1.299 GB, free: 216 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/1.095, allocations: 27.97 kB / 1.299 GB, free: 188 kB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/1.095, allocations: 23.97 kB / 1.299 GB, free: 164 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/1.095, allocations: 12 kB / 1.299 GB, free: 152 kB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004498/1.096, allocations: 354.8 kB / 1.299 GB, free: 15.8 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.9e-07/1.096, allocations: 4 kB / 1.299 GB, free: 15.8 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0009947/1.097, allocations: 359.1 kB / 1.3 GB, free: 15.45 MB / 1.029 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.0005145/1.097, allocations: 222.8 kB / 1.3 GB, free: 15.23 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001647/1.099, allocations: 0.7235 MB / 1.301 GB, free: 14.51 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/1.099, allocations: 0 / 1.301 GB, free: 14.51 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004499/1.099, allocations: 221.3 kB / 1.301 GB, free: 14.29 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/1.101, allocations: 361.3 kB / 1.301 GB, free: 13.95 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/1.104, allocations: 1.454 MB / 1.302 GB, free: 12.44 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006484/1.104, allocations: 0.9457 MB / 1.303 GB, free: 11.47 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/1.105, allocations: 51.44 kB / 1.303 GB, free: 11.42 MB / 1.029 GB Notification: Performance of SimCode: time 6.51e-07/1.105, allocations: 0 / 1.303 GB, free: 11.42 MB / 1.029 GB Notification: Performance of Templates: time 0.02008/1.125, allocations: 12.96 MB / 1.316 GB, free: 14.54 MB / 1.045 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=400 -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