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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009783/0.0009784, allocations: 92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 177.2 kB / 16.92 MB, free: 6.652 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.693/1.693, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.392/3.392, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003873/0.0003874, allocations: 11.41 kB / 0.9034 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3622, allocations: 159.6 MB / 1.059 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2001/0.5624, allocations: 180.4 MB / 1.236 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0111/0.5735, allocations: 6.962 MB / 1.242 GB, free: 8.926 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.5749, allocations: 23.81 kB / 1.242 GB, free: 8.902 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.5763, allocations: 334.2 kB / 1.243 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004119/0.5804, allocations: 1.369 MB / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003245/0.5837, allocations: 1.044 MB / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00356/0.5872, allocations: 2.717 MB / 1.248 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001135/0.5884, allocations: 0.5434 MB / 1.248 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.5903, allocations: 0.7118 MB / 1.249 GB, free: 2.168 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001596/0.5919, allocations: 0.6073 MB / 1.249 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001594/0.592, allocations: 28 kB / 1.25 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.6791/1.271, allocations: 2.172 MB / 1.252 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.000682/1.272, allocations: 245.5 kB / 1.252 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008435/1.273, allocations: 412.5 kB / 1.252 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002484/1.275, allocations: 1.26 MB / 1.253 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/1.275, allocations: 3.062 kB / 1.253 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.074e-06/1.275, allocations: 0 / 1.253 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.222e-05/1.275, allocations: 0 / 1.253 GB, free: 5.75 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.001839/1.277, allocations: 1.019 MB / 1.254 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/1.277, allocations: 9.5 kB / 1.254 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001958/1.279, allocations: 267.4 kB / 1.255 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/1.28, allocations: 0.5755 MB / 1.255 GB, free: 20.85 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.694e-05/1.28, allocations: 41.16 kB / 1.255 GB, free: 20.85 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/1.281, allocations: 63.19 kB / 1.255 GB, free: 20.85 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/1.282, allocations: 0.6407 MB / 1.256 GB, free: 20.77 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/1.282, allocations: 0 / 1.256 GB, free: 20.77 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.468e-05/1.282, allocations: 26.03 kB / 1.256 GB, free: 20.77 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.792e-05/1.282, allocations: 18.69 kB / 1.256 GB, free: 20.77 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009123/1.283, allocations: 0.5323 MB / 1.257 GB, free: 20.77 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.00324/1.286, allocations: 2.465 MB / 1.259 GB, free: 19.45 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006336/1.287, allocations: 367 kB / 1.259 GB, free: 19.42 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/1.287, allocations: 243.7 kB / 1.26 GB, free: 19.41 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006059/1.288, allocations: 322.7 kB / 1.26 GB, free: 19.12 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/1.288, allocations: 36.83 kB / 1.26 GB, free: 19.09 MB / 1.014 GB Notification: Performance of pre-optimization done (n=39): time 1.894e-06/1.288, allocations: 5.406 kB / 1.26 GB, free: 19.08 MB / 1.014 GB Notification: Performance of matching and sorting (n=39): time 0.001357/1.289, allocations: 0.6302 MB / 1.261 GB, free: 19.01 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/1.289, allocations: 58.58 kB / 1.261 GB, free: 18.95 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005871/1.29, allocations: 0.4985 MB / 1.261 GB, free: 18.82 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/1.29, allocations: 36.2 kB / 1.261 GB, free: 18.79 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/1.29, allocations: 318.4 kB / 1.261 GB, free: 18.63 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/1.29, allocations: 141 kB / 1.262 GB, free: 18.54 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/1.29, allocations: 42.02 kB / 1.262 GB, free: 18.53 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001689/1.29, allocations: 368 kB / 1.262 GB, free: 18.21 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/1.291, allocations: 176.4 kB / 1.262 GB, free: 18.21 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004127/1.291, allocations: 287.9 kB / 1.262 GB, free: 18.1 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000698/1.292, allocations: 460.8 kB / 1.263 GB, free: 18.01 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/1.292, allocations: 10.03 kB / 1.263 GB, free: 18.01 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008929/1.293, allocations: 0.524 MB / 1.263 GB, free: 17.94 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001033/1.293, allocations: 157.1 kB / 1.264 GB, free: 17.77 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/1.293, allocations: 8.828 kB / 1.264 GB, free: 17.77 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/1.293, allocations: 2.875 kB / 1.264 GB, free: 17.77 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007234/1.294, allocations: 150.9 kB / 1.264 GB, free: 17.76 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004139/1.294, allocations: 0.5949 MB / 1.264 GB, free: 17.18 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007434/1.295, allocations: 83.42 kB / 1.264 GB, free: 17.15 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/1.295, allocations: 21.7 kB / 1.264 GB, free: 17.15 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 8.116e-06/1.295, allocations: 2.938 kB / 1.264 GB, free: 17.15 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008024/1.296, allocations: 465 kB / 1.265 GB, free: 17.14 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/1.296, allocations: 288 / 1.265 GB, free: 17.14 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/1.296, allocations: 14.98 kB / 1.265 GB, free: 17.13 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/1.296, allocations: 129.5 kB / 1.265 GB, free: 17.13 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/1.296, allocations: 3.609 kB / 1.265 GB, free: 17.13 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006199/1.297, allocations: 79.86 kB / 1.265 GB, free: 17.11 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/1.297, allocations: 21.84 kB / 1.265 GB, free: 17.11 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.0004371/1.297, allocations: 303.5 kB / 1.265 GB, free: 16.92 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.499e-05/1.297, allocations: 65.77 kB / 1.265 GB, free: 16.89 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009611/1.298, allocations: 0.4923 MB / 1.266 GB, free: 16.83 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/1.298, allocations: 3 kB / 1.266 GB, free: 16.83 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/1.298, allocations: 2.438 kB / 1.266 GB, free: 16.83 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008353/1.299, allocations: 0.7161 MB / 1.267 GB, free: 16.39 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/1.302, allocations: 1.298 MB / 1.268 GB, free: 16 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/1.302, allocations: 2.938 kB / 1.268 GB, free: 16 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007018/1.302, allocations: 132.1 kB / 1.268 GB, free: 16 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/1.302, allocations: 7.719 kB / 1.268 GB, free: 16 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-05/1.302, allocations: 15.11 kB / 1.268 GB, free: 16 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003296/1.303, allocations: 0.594 MB / 1.269 GB, free: 15.41 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.303, allocations: 2.188 kB / 1.269 GB, free: 15.41 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/1.304, allocations: 0.8105 MB / 1.269 GB, free: 15.18 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003378/1.304, allocations: 181.3 kB / 1.27 GB, free: 15.05 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.241e-05/1.305, allocations: 17.39 kB / 1.27 GB, free: 15.04 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/1.305, allocations: 45.12 kB / 1.27 GB, free: 15.04 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/1.305, allocations: 28.8 kB / 1.27 GB, free: 15.04 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/1.305, allocations: 16.12 kB / 1.27 GB, free: 15.04 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005747/1.306, allocations: 358.5 kB / 1.27 GB, free: 14.95 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.81e-07/1.306, allocations: 1.031 kB / 1.27 GB, free: 14.95 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001355/1.307, allocations: 363.4 kB / 1.27 GB, free: 14.9 MB / 1.014 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.0006116/1.308, allocations: 205.5 kB / 1.271 GB, free: 14.8 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001651/1.309, allocations: 0.6896 MB / 1.271 GB, free: 14.78 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/1.309, allocations: 1.031 kB / 1.271 GB, free: 14.78 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004771/1.31, allocations: 230.9 kB / 1.271 GB, free: 14.77 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002065/1.312, allocations: 364.8 kB / 1.272 GB, free: 14.75 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/1.315, allocations: 1.782 MB / 1.273 GB, free: 13.78 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007372/1.316, allocations: 0.9463 MB / 1.274 GB, free: 13.07 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002269/1.316, allocations: 55.25 kB / 1.274 GB, free: 13.07 MB / 1.014 GB Notification: Performance of SimCode: time 1.042e-06/1.316, allocations: 0 / 1.274 GB, free: 13.07 MB / 1.014 GB Notification: Performance of Templates: time 0.02615/1.342, allocations: 12.91 MB / 1.287 GB, free: 12.08 MB / 1.014 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