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.001079/0.001079, allocations: 90.98 kB / 15.36 MB, free: 0.7383 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.007079/0.007079, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.438/1.438, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.846/2.846, allocations: 462.6 MB / 0.7364 GB, free: 300 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 12.16 kB / 0.9028 GB, free: 36.73 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3207, allocations: 159.6 MB / 1.059 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2084/0.5292, allocations: 180.4 MB / 1.235 GB, free: 432 kB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01136/0.5406, allocations: 6.965 MB / 1.242 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.5419, allocations: 27.81 kB / 1.242 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.543, allocations: 334.2 kB / 1.242 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003952/0.547, allocations: 1.37 MB / 1.243 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00318/0.5502, allocations: 1.054 MB / 1.244 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003635/0.5538, allocations: 2.709 MB / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009249/0.5547, allocations: 0.5361 MB / 1.248 GB, free: 3.395 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.5565, allocations: 0.708 MB / 1.248 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001381/0.5579, allocations: 0.6029 MB / 1.249 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.742e-05/0.558, allocations: 32 kB / 1.249 GB, free: 2.051 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.6761/1.234, allocations: 2.183 MB / 1.251 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005697/1.235, allocations: 253.8 kB / 1.251 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006806/1.235, allocations: 404.6 kB / 1.252 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003612/1.239, allocations: 1.814 MB / 1.253 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/1.239, allocations: 3.875 kB / 1.253 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.004e-06/1.239, allocations: 0 / 1.253 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.127e-05/1.239, allocations: 0 / 1.253 GB, free: 6.062 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.001761/1.241, allocations: 1.019 MB / 1.254 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/1.241, allocations: 10.22 kB / 1.254 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001964/1.243, allocations: 264.8 kB / 1.255 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009097/1.244, allocations: 0.5784 MB / 1.255 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/1.244, allocations: 39.34 kB / 1.255 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/1.244, allocations: 60.5 kB / 1.255 GB, free: 5.172 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/1.245, allocations: 0.6412 MB / 1.256 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/1.245, allocations: 0.6094 kB / 1.256 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.804e-05/1.245, allocations: 22.81 kB / 1.256 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.109e-05/1.245, allocations: 20.83 kB / 1.256 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009547/1.246, allocations: 0.5335 MB / 1.256 GB, free: 5.094 MB / 0.9981 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.003188/1.249, allocations: 2.465 MB / 1.259 GB, free: 19.77 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006173/1.25, allocations: 371.4 kB / 1.259 GB, free: 19.74 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003638/1.25, allocations: 242.1 kB / 1.259 GB, free: 19.73 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006059/1.251, allocations: 325.1 kB / 1.26 GB, free: 19.45 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/1.251, allocations: 38.03 kB / 1.26 GB, free: 19.41 MB / 1.014 GB Notification: Performance of pre-optimization done (n=39): time 2.444e-06/1.251, allocations: 0 / 1.26 GB, free: 19.41 MB / 1.014 GB Notification: Performance of matching and sorting (n=39): time 0.001631/1.253, allocations: 0.6297 MB / 1.26 GB, free: 19.34 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.624e-05/1.253, allocations: 58.73 kB / 1.26 GB, free: 19.27 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006716/1.253, allocations: 0.499 MB / 1.261 GB, free: 19.14 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.971e-05/1.253, allocations: 35.69 kB / 1.261 GB, free: 19.11 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000315/1.254, allocations: 321.5 kB / 1.261 GB, free: 18.96 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/1.254, allocations: 140.5 kB / 1.261 GB, free: 18.87 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.246e-05/1.254, allocations: 44.75 kB / 1.261 GB, free: 18.85 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002194/1.254, allocations: 365.5 kB / 1.262 GB, free: 18.54 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003513/1.255, allocations: 174 kB / 1.262 GB, free: 18.54 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004569/1.255, allocations: 286.5 kB / 1.262 GB, free: 18.43 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007653/1.256, allocations: 470.8 kB / 1.263 GB, free: 18.34 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.256, allocations: 0 / 1.263 GB, free: 18.34 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009496/1.257, allocations: 0.5298 MB / 1.263 GB, free: 18.27 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.889e-05/1.257, allocations: 151 kB / 1.263 GB, free: 18.11 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.527e-06/1.257, allocations: 10.91 kB / 1.263 GB, free: 18.1 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/1.257, allocations: 2.531 kB / 1.263 GB, free: 18.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007525/1.258, allocations: 139.5 kB / 1.264 GB, free: 18.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003894/1.258, allocations: 0.6012 MB / 1.264 GB, free: 17.51 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007574/1.259, allocations: 87.25 kB / 1.264 GB, free: 17.48 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/1.259, allocations: 19.02 kB / 1.264 GB, free: 17.48 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 6.563e-06/1.259, allocations: 2.844 kB / 1.264 GB, free: 17.48 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000751/1.26, allocations: 472.5 kB / 1.265 GB, free: 17.46 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/1.26, allocations: 0 / 1.265 GB, free: 17.46 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.713e-06/1.26, allocations: 14.22 kB / 1.265 GB, free: 17.46 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/1.26, allocations: 128.6 kB / 1.265 GB, free: 17.46 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/1.26, allocations: 6.156 kB / 1.265 GB, free: 17.46 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005717/1.261, allocations: 79.41 kB / 1.265 GB, free: 17.44 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/1.261, allocations: 20.86 kB / 1.265 GB, free: 17.44 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.0003545/1.261, allocations: 307.7 kB / 1.265 GB, free: 17.25 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.597e-05/1.261, allocations: 64.66 kB / 1.265 GB, free: 17.21 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008788/1.262, allocations: 492.8 kB / 1.266 GB, free: 17.16 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/1.262, allocations: 5.562 kB / 1.266 GB, free: 17.16 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/1.262, allocations: 1.609 kB / 1.266 GB, free: 17.16 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007663/1.263, allocations: 0.7229 MB / 1.266 GB, free: 16.71 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/1.265, allocations: 1.29 MB / 1.268 GB, free: 16.34 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/1.265, allocations: 6.75 kB / 1.268 GB, free: 16.34 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006875/1.266, allocations: 133.8 kB / 1.268 GB, free: 16.33 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/1.266, allocations: 3.469 kB / 1.268 GB, free: 16.33 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.651e-05/1.266, allocations: 13.28 kB / 1.268 GB, free: 16.33 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003232/1.266, allocations: 0.6027 MB / 1.268 GB, free: 15.74 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.266, allocations: 1.531 kB / 1.268 GB, free: 15.74 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/1.268, allocations: 0.8067 MB / 1.269 GB, free: 15.5 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003095/1.268, allocations: 187.1 kB / 1.269 GB, free: 15.38 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.667e-05/1.268, allocations: 13.3 kB / 1.269 GB, free: 15.37 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005333/1.269, allocations: 47.44 kB / 1.269 GB, free: 15.37 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-05/1.269, allocations: 29.72 kB / 1.27 GB, free: 15.37 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.856e-05/1.269, allocations: 12.92 kB / 1.27 GB, free: 15.37 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000553/1.269, allocations: 352.1 kB / 1.27 GB, free: 15.28 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/1.269, allocations: 0 / 1.27 GB, free: 15.28 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001259/1.271, allocations: 371.9 kB / 1.27 GB, free: 15.23 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.0005195/1.271, allocations: 204.2 kB / 1.27 GB, free: 15.12 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001554/1.273, allocations: 0.6767 MB / 1.271 GB, free: 15.12 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.273, allocations: 4.125 kB / 1.271 GB, free: 15.11 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004403/1.273, allocations: 235.3 kB / 1.271 GB, free: 15.11 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/1.275, allocations: 366.8 kB / 1.272 GB, free: 15.08 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/1.278, allocations: 1.73 MB / 1.273 GB, free: 14.15 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008084/1.279, allocations: 0.9478 MB / 1.274 GB, free: 13.44 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009878/1.28, allocations: 209 kB / 1.274 GB, free: 13.41 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001933/1.28, allocations: 48.8 kB / 1.275 GB, free: 13.4 MB / 1.014 GB Notification: Performance of SimCode: time 8.02e-07/1.28, allocations: 3.438 kB / 1.275 GB, free: 13.4 MB / 1.014 GB Notification: Performance of Templates: time 0.02344/1.303, allocations: 11.87 MB / 1.286 GB, free: 12.67 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches