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.001742/0.001742, allocations: 110.5 kB / 16.41 MB, free: 6.453 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.00217/0.00217, allocations: 190.5 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.654/2.654, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.264/5.264, allocations: 461.9 MB / 0.7354 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 63.91 kB / 1.055 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.388/1.391, allocations: 157.4 MB / 1.208 GB, free: 13.76 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.3764/1.767, allocations: 185.1 MB / 1.389 GB, free: 4.012 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.01997/1.787, allocations: 6.98 MB / 1.396 GB, free: 13.01 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001891/1.789, allocations: 27.81 kB / 1.396 GB, free: 12.98 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.002372/1.791, allocations: 409.5 kB / 1.396 GB, free: 12.58 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.007525/1.799, allocations: 1.442 MB / 1.398 GB, free: 11.14 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.005266/1.804, allocations: 1.156 MB / 1.399 GB, free: 9.98 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.004501/1.809, allocations: 1.952 MB / 1.401 GB, free: 8.023 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00195/1.811, allocations: 0.655 MB / 1.401 GB, free: 7.359 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002916/1.814, allocations: 0.8367 MB / 1.402 GB, free: 6.52 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002481/1.816, allocations: 0.5915 MB / 1.403 GB, free: 5.926 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0003836/1.817, allocations: 68 kB / 1.403 GB, free: 5.859 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0063/1.823, allocations: 1.929 MB / 1.405 GB, free: 3.926 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0007548/1.824, allocations: 295.1 kB / 1.405 GB, free: 3.637 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.00127/1.825, allocations: 430.1 kB / 1.406 GB, free: 3.215 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.006291/1.831, allocations: 1.757 MB / 1.407 GB, free: 1.453 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 9.869e-06/1.831, allocations: 4 kB / 1.407 GB, free: 1.449 MB / 1.123 GB Notification: Performance of FrontEnd: time 3.937e-06/1.831, allocations: 4 kB / 1.407 GB, free: 1.445 MB / 1.123 GB Notification: Performance of Transformations before backend: time 5.055e-05/1.832, allocations: 0 / 1.407 GB, free: 1.445 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.003675/1.835, allocations: 1.157 MB / 1.408 GB, free: 244 kB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 6.301e-05/1.835, allocations: 8.031 kB / 1.408 GB, free: 236 kB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003249/1.839, allocations: 274.8 kB / 1.409 GB, free: 15.96 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/1.841, allocations: 0.6143 MB / 1.409 GB, free: 15.3 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.383e-05/1.841, allocations: 37.31 kB / 1.409 GB, free: 15.27 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/1.841, allocations: 56 kB / 1.409 GB, free: 15.21 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/1.843, allocations: 0.6362 MB / 1.41 GB, free: 14.56 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.234e-05/1.843, allocations: 7.938 kB / 1.41 GB, free: 14.55 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/1.843, allocations: 24 kB / 1.41 GB, free: 14.53 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-05/1.843, allocations: 21.31 kB / 1.41 GB, free: 14.51 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/1.844, allocations: 0.5165 MB / 1.41 GB, free: 13.99 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.005246/1.85, allocations: 2.461 MB / 1.413 GB, free: 11.32 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/1.851, allocations: 361.2 kB / 1.413 GB, free: 10.96 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005789/1.851, allocations: 239.6 kB / 1.413 GB, free: 10.72 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007972/1.852, allocations: 303.6 kB / 1.414 GB, free: 10.37 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.837e-05/1.852, allocations: 38.89 kB / 1.414 GB, free: 10.32 MB / 1.139 GB Notification: Performance of pre-optimization done (n=39): time 3.817e-06/1.852, allocations: 4 kB / 1.414 GB, free: 10.32 MB / 1.139 GB Notification: Performance of matching and sorting (n=39): time 0.002192/1.854, allocations: 0.6185 MB / 1.414 GB, free: 9.695 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/1.854, allocations: 59.34 kB / 1.414 GB, free: 9.625 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/1.856, allocations: 0.4912 MB / 1.415 GB, free: 9.125 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 8.701e-05/1.856, allocations: 37.7 kB / 1.415 GB, free: 9.082 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003781/1.856, allocations: 332.4 kB / 1.415 GB, free: 8.75 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002155/1.856, allocations: 138 kB / 1.415 GB, free: 8.613 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002332/1.857, allocations: 90.03 kB / 1.416 GB, free: 8.52 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0002396/1.857, allocations: 370.7 kB / 1.416 GB, free: 8.148 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000504/1.857, allocations: 170.5 kB / 1.416 GB, free: 7.977 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006114/1.858, allocations: 291.3 kB / 1.416 GB, free: 7.656 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/1.859, allocations: 448.2 kB / 1.417 GB, free: 7.188 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/1.859, allocations: 4 kB / 1.417 GB, free: 7.184 MB / 1.139 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001514/1.861, allocations: 0.524 MB / 1.417 GB, free: 6.652 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/1.861, allocations: 5.719 kB / 1.417 GB, free: 6.648 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/1.861, allocations: 7.984 kB / 1.417 GB, free: 6.641 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.943e-05/1.861, allocations: 4.281 kB / 1.417 GB, free: 6.637 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/1.862, allocations: 139.8 kB / 1.417 GB, free: 6.5 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005418/1.862, allocations: 0.586 MB / 1.418 GB, free: 5.891 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008766/1.863, allocations: 55.61 kB / 1.418 GB, free: 5.836 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.509e-05/1.863, allocations: 23.98 kB / 1.418 GB, free: 5.812 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008379/1.864, allocations: 352.8 kB / 1.418 GB, free: 5.465 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006196/1.865, allocations: 275.4 kB / 1.419 GB, free: 5.152 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001065/1.866, allocations: 456.4 kB / 1.419 GB, free: 4.676 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.19e-06/1.866, allocations: 0 / 1.419 GB, free: 4.676 MB / 1.139 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.001607/1.867, allocations: 0.528 MB / 1.42 GB, free: 4.141 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/1.868, allocations: 4 kB / 1.42 GB, free: 4.137 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/1.868, allocations: 7.938 kB / 1.42 GB, free: 4.129 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/1.868, allocations: 7.938 kB / 1.42 GB, free: 4.121 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007848/1.868, allocations: 111.9 kB / 1.42 GB, free: 4.012 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-05/1.868, allocations: 8 kB / 1.42 GB, free: 4.004 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009861/1.869, allocations: 43.83 kB / 1.42 GB, free: 3.961 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.314e-05/1.869, allocations: 20 kB / 1.42 GB, free: 3.941 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.0003481/1.87, allocations: 208.1 kB / 1.42 GB, free: 3.73 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/1.87, allocations: 59.25 kB / 1.42 GB, free: 3.672 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/1.872, allocations: 495.7 kB / 1.421 GB, free: 3.184 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001269/1.873, allocations: 0.7108 MB / 1.421 GB, free: 2.387 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/1.873, allocations: 4 kB / 1.421 GB, free: 2.383 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004722/1.874, allocations: 176.3 kB / 1.421 GB, free: 2.191 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/1.874, allocations: 12 kB / 1.421 GB, free: 2.18 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006608/1.874, allocations: 15.98 kB / 1.421 GB, free: 2.164 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/1.875, allocations: 23.97 kB / 1.421 GB, free: 2.141 MB / 1.139 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001929/1.876, allocations: 0.5832 MB / 1.422 GB, free: 1.547 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001817/1.878, allocations: 0.8419 MB / 1.423 GB, free: 0.6875 MB / 1.139 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004987/1.879, allocations: 191.9 kB / 1.423 GB, free: 0.5 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0007314/1.88, allocations: 354.8 kB / 1.423 GB, free: 160 kB / 1.139 GB Notification: Performance of Backend: time 8.42e-07/1.88, allocations: 0 / 1.423 GB, free: 160 kB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.004385/1.884, allocations: 0.9838 MB / 1.424 GB, free: 15.18 MB / 1.154 GB Notification: Performance of SimCode: time 0.005127/1.889, allocations: 1.935 MB / 1.426 GB, free: 13.19 MB / 1.154 GB Notification: Performance of Templates: time 0.04805/1.937, allocations: 18.03 MB / 1.444 GB, free: 11.32 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